holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 34 forks source link

vpython #321

Open username9852 opened 11 months ago

username9852 commented 11 months ago

Earlier this fall I could use vpython code to show animations on the ipad using carnets plus with scipy. This doesn't work anymore. It could be something I did or it could be related to the update end october. A simple example like

from vpython import* sphere()

works fine on my pc jupyter notebook, but causes a bunch of errors on carnets plus. I checked %pip list and vpython 7.6.4 is installed. If anyone knows a solution, I'd appreciate it.

holzschu commented 11 months ago

That seems to be related to the switch to Notebooks v7, which relies on Jupyterlab under the hood. But the solutions given on the vpython site (install an additional package named jupyterlab_vpython) do not work either. I'm looking into it.

holzschu commented 11 months ago

Looking at the vpython code, the error occurs just after a line that has been corrected in the repository, but the change has not yet been propagated to the pip repository: https://github.com/vpython/vpython-jupyter/commit/6acbfc759474e6ede98eab1f6659895957d214a6

The commit message says "Updated for Jupyter Notebook 7".

The solution seems to be, either wait for vpython to release this version (their last update, 7.6.4, was two years ago) or manually install the development version.

username9852 commented 11 months ago

Thank you