I'm still struggling with making Thonny and Jupyter play nicely
together. Maybe somebody here can help. Here's where I am:
I've installed jupyter and jupyterlab via pip3 in the Thonny shell. I
can start JupyterLab by typing "!jupyter lab &" in the REPL. So far so
good, but there are two problems:
1) Since I want to give this version of Thonny to my students, I
installed it on a USB device (like they will do). However, JupyterLab
uses the C: drive as its working directory and cannot change to a
directory on another drive.
I found out how to change the working directory: by creating and editing
a Jupyter config file. But this config file, again, resides on C: which
I cannot touch on my students' machines. Furthermore, on every machine
USB drives get different device letters, so I wouldn't know what to put
into the path in the config file.
Obviously, this is mainly a Jupyter problem - but has anybody here
experienced the same thing and found a workaround?
2) Installing Jupyter seems to destroy the portability of Thonny: When I
move the Thonny folder to another directory (which is what my students
will do) Jupyter can't be started anymore. As soon as I put it back in
its original path it works again.
Again, this is surely not the fault of Thonny. But does anybody know to
work around this?
This shouldn't be so hard! All I want is to prepare a portable zip file
that includes Thonny and Jupyter and that my students can run both at
school and at home. How do other people do this?