Skip to content

Commit db2c7f0

Browse files
committed
Mention %load_ext julia.magic in README [ci skip]
1 parent b4d20a6 commit db2c7f0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,27 @@ You can then use, e.g.,
138138
>>> from julia import Base
139139
```
140140

141+
### IPython magic
142+
143+
In IPython (and therefore in Jupyter), you can directly execute Julia
144+
code using `%%julia` magic:
145+
146+
```python
147+
In [1]: %load_ext julia.magic
148+
Initializing Julia interpreter. This may take some time...
149+
150+
In [2]: %%julia
151+
...: Base.banner(IOContext(stdout, :color=>true))
152+
_
153+
_ _ _(_)_ | Documentation: https://docs.julialang.org
154+
(_) | (_) (_) |
155+
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
156+
| | | | | | |/ _` | |
157+
| | |_| | | | (_| | | Version 1.0.1 (2018-09-29)
158+
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
159+
|__/ |
160+
```
161+
141162

142163
Troubleshooting
143164
---------------

0 commit comments

Comments
 (0)