Open NightMachinery opened 1 year ago
:async no
is much better for testing this problem, as it will print the actual time taken.:session /jpy:127.0.0.1#6035:orgk1/
, the problem is not present:
#+begin_src jupyter-python :kernel py_base :session emacs_py_1 :async no :exports both
takes 1.2s.
I was port-forwarding /jpy:10.2.32.22#6035:orgk1/
to the localhost from a remote server, so I also tested using /jpy:10.2.32.22#6035:orgk1/
directly. This was still slow. Note that VSCode connects to this same server and has no issues.
This block takes around ~8s to complete. (I manually measured it using a CLI stopwatch.)
The same block completes in ~1s in VSCode, and it will indeed show ~1s if you measure the time using a tool like
pytictoc
.So the problem is that somehow emacs-jupyter makes getting the already produced output to the cell results slow.
This makes using emacs-jupyter with code that produces a lot of plots very difficult.