-
Notifications
You must be signed in to change notification settings - Fork 241
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
Add support for rich display of Python objects in ScalaPy (rebased) #854
Add support for rich display of Python objects in ScalaPy (rebased) #854
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
I don't if that'll fix the issue seen in https://github.com/almond-sh/almond/pull/843… cc @kiendang |
Looks like the error was caught by JNA somehow not being able to load libpython. I did check and libpython was there, handled correctly by |
@alexarchambault Could help me squash bf7c893 and b75f6fa in #843 into "Add rich display for python objects in ScalaPy" as well? Or give me write to the branch I can do it myself. |
@kiendang Not sure I see what you mean, but I gave you write access to the repo just-in-case (this should allow you to re-run CI jobs for example). |
Ah this PR is from your fork which I don't have access to so cannot push change. Anw thanks! |
Was supposed to rebase the last two commits but I don't want to mess up your branch while you're still working on it. So we'll just rebase them when the PR's ready to merge. |
I still have no idea what actually causes the problem, but in case you're looking into it later, you can use JUPYTER_PATH=... jupyter console --kernel ... The example works fine when you run it interactively in a notebook, also works fine with |
ec05df8
to
706a4f0
Compare
I was able to run the example notebook manually in a Jupyter console fine on my Ubuntu machine (by running |
Hmm so still not sure why it fails while running non-interactively. Maybe try with ScalaPy 0.5.2 instead of 0.5.0 too? But I remember trying that locally a while back and still got the error. |
I think I found the issue. It originates from some JNA version mismatch. Ammonite and scala-compiler were pulling JNA Merging with Not sure why it only happens in non-interactive mode... Maybe Ammonite or scala-compiler were able to initialize JNA stuff in interactive mode (without a version mismatch for them), and then ScalaPy was using an already initialized JNA, so it wasn't having issues. |
scalapy/scalapy#294 would have helped debug this too I think (by not trapping the underlying JNA error). |
for jvm-repr. can be removed once it's published to central
7eb4f2e
to
161cf78
Compare
5a17fc1
to
73db690
Compare
🎉🎉🎉 |
Merging! |
No description provided.