Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang in IPython when loading extension #268

Closed
jakobnissen opened this issue Feb 10, 2023 · 1 comment
Closed

Hang in IPython when loading extension #268

jakobnissen opened this issue Feb 10, 2023 · 1 comment

Comments

@jakobnissen
Copy link

jakobnissen commented Feb 10, 2023

When I type

In [1]: %load_ext juliacall.ipython

in IPython, the REPL simply hangs. I let it sit for about 10 minutes, but nothing happened, and there was no CPU usage.
In Jupyter, the extension loads, but it does not give me access to the cell magic, see screen shot

image

Versions:

  • Julia 1.8.5 and Julia 1.9.0-beta3 both show this
  • Python 3.10.9
  • PythonCall 0.9.10
  • Running on Linux
@cjdoris
Copy link
Collaborator

cjdoris commented Feb 28, 2023

OK I've looked into this. I believe there are a few things going on:

  1. There was a bug in how the extension was redirecting output from Julia to the IPython kernel. This is now fixed on the main branch (you can try reinstalling juliacall direct from the repo, or wait until I make a release).
  2. There was a bug in the documentation: the magic is actually called %%julia.
  3. It looks like you have set up Jupyter to load the juliacall.ipython extension automatically, which is fine.

Closing as I believe this should address everything, but feel free to comment if not.

@cjdoris cjdoris closed this as completed Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants