I'm running a Google Colab notebook on a local Jupyter instance, which I'm running in a Docker container, following these instructions from Google.
It works great, except the notebook has all its paths hardcoded to Colab's working folder for the kernel, which is /content
. However, in Jupyter, the working folder is /workspace
. If I try to change to move out of the /workspace
folder in the notebook it triggers an exception.
How can I modify Jupyter to change its /workspace
folder to be /content
?
As I'm using Docker, an ideal solution would be either with either an environment variable, a one-time shell command or a command line argument to jupyter
.