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
+16-4
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@ Some packages require a little extra help to work nicely with PythonCall.
5
5
Some of these are "fixes" that are silently applied for you, and some are just extra
6
6
functions to bridge a gap. We aim to keep these as minimal as possible.
7
7
8
-
## Stdlib
8
+
## Python standard library
9
9
10
10
Whenever a Python exception is displayed by Julia, `sys.last_traceback` and friends are set. This allows the post-mortem debugger `pdb.pm()` to work. Disable by setting `PythonCall.CONFIG.auto_sys_last_traceback = false`.
11
11
12
-
## Tabular data & Pandas
12
+
## Tabular data / Pandas
13
13
14
14
The abstract type [`PyTable`](@ref) is for wrapper types around Python tables, providing the
15
15
[Tables.jl](https://github.com/JuliaData/Tables.jl) interface. `PyTable(x)` is shorthand
@@ -39,7 +39,7 @@ We also provide a simple MatPlotLib backend: `mpl.use("module://juliacall.matplo
39
39
Now you can call `plt.show()` to display the figure with Julia's display mechanism.
40
40
You can specify the format like `plt.show(format="png")`.
41
41
42
-
## GUIs (including MatPlotLib)
42
+
## Python GUIs (including MatPlotLib)
43
43
44
44
### Event loops
45
45
@@ -66,4 +66,16 @@ The `juliacall.ipython` IPython extension adds these features to your IPython se
66
66
- Calling `display(x)` from Julia will display `x` in IPython.
67
67
68
68
Enable the extension with `%load_ext juliacall.ipython`.
69
-
See https://ipython.readthedocs.io/en/stable/config/extensions/.
69
+
See [the IPython docs](https://ipython.readthedocs.io/en/stable/config/extensions/).
70
+
71
+
## Asynchronous Julia code (including Makie)
72
+
73
+
Asynchronous Julia code will not normally run while Python is executing, unless it is in a
74
+
separate thread.
75
+
76
+
This can be fixed by calling `jl.yield()` periodically from Python code, allowing the
77
+
Julia scheduler to run.
78
+
79
+
When working at the Python REPL, you may call `juliacall.interactive()` which will allow
80
+
Julia async code to run while the prompt is showing. This will allow interactive plots such
0 commit comments