almond icon indicating copy to clipboard operation
almond copied to clipboard

Add support for rich display of Python objects in ScalaPy

Open kiendang opened this issue 3 years ago • 2 comments

Demo here

https://nbviewer.jupyter.org/github/kiendang/examples/blob/645332825d02aa244506b116867e38f7597beca6/notebooks/scalapy/scalapy_rich_display.ipynb

kiendang avatar Jun 30 '21 12:06 kiendang

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

So the scripts/validate-examples.sh script fails for the scalapy display example. On my local machine the script also fails but when I run the notebook normally it works fine. It fails here

https://github.com/shadaj/scalapy/blob/6e4f09dbed07ea5bf55f2cd086c7929276c08b8b/core/jvm/src/main/scala/me/shadaj/scalapy/interpreter/CPythonAPI.scala#L20

java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native

Is there anything with the script that makes JNA not work? Googling suggests it's because tmp dir mounted with noexec but I don't really know what that means/whether it's correct.

kiendang avatar Jul 19 '21 22:07 kiendang

Superseded by #854.

kiendang avatar Aug 21 '22 02:08 kiendang