You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/compat.md
+10-4
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
3
3
Some packages require a little extra help to work nicely with PythonCall.
4
4
5
-
Some of these are "fixes" that are silently applied for you, and some are just extra functions to bridge a gap. We aim to keep these as minimal as possible.
5
+
Some of these are "fixes" that are silently applied for you, and some are just extra
6
+
functions to bridge a gap. We aim to keep these as minimal as possible.
6
7
7
8
## Stdlib
8
9
@@ -58,6 +59,11 @@ PythonCall.fix_qt_plugin_path
58
59
59
60
## IPython
60
61
61
-
If Python is running an IPython kernel, then:
62
-
- Currently disabled: Julia's `Base.stdout` is set to Python's `sys.stdout`.
63
-
- A `PythonDisplay` and `IPythonDisplay` are pushed onto Julia's display stack, so that `display(x)` goes to IPython if possible.
62
+
The `juliacall.ipython` IPython extension adds these features to your IPython session:
63
+
- The line magic `%jl code` executes the given Julia code in-line.
64
+
- The cell magic `%%jl` executes a cell of Julia code.
65
+
- Julia's `stdout` and `stderr` are redirected to IPython.
66
+
- Calling `display(x)` from Julia will display `x` in IPython.
67
+
68
+
Enable the extension with `%load_ext juliacall.ipython`.
69
+
See https://ipython.readthedocs.io/en/stable/config/extensions/.
0 commit comments