-
- Downloads
Rewrite installation process to be fully Python-based
This allows using Jupyter's Python API to install the kernel. It returns the location of the newly installed kernelspec, which allows copying the kernel jar file into the kernelspec directory instead of the ProB home directory. This is cleaner and allows fully uninstalling the kernel using a single command. Additionally, we no longer depend on Guice to generate the kernel.json (we use Python's json module instead) and no longer use the deprecated Main.getProBDirectory method from ProB 2. The Python script for installing the kernel is bundled into the kernel jar as __main__.py, which allows running the jar file using Python. The installation can still be started using Java, in which case the jar re-executes itself using Python. Yes, this is a little bit cursed, but it works.
Showing
- CHANGELOG.md 1 addition, 0 deletionsCHANGELOG.md
- Makefile 5 additions, 5 deletionsMakefile
- README.md 8 additions, 7 deletionsREADME.md
- build.gradle 4 additions, 26 deletionsbuild.gradle
- src/main/java/de/prob2/jupyter/Main.java 30 additions, 189 deletionssrc/main/java/de/prob2/jupyter/Main.java
- src/main/resources/__main__.py 138 additions, 0 deletionssrc/main/resources/__main__.py
Loading
Please register or sign in to comment