Having exactly the same problem, it was running fine previously!
I found a workaround for the moment:
Run from frappe-bench folder:
sudo apt install jupyter-notebook
sudo pip install jupyter
Now, I followed these directions:
[5 easy steps to start editing python notebooks over SSH - Willem's Fizzy Logic](http://Edit jupyter notebooks over SSH)
- From frappe-bench, run this:
jupyter notebook --no-browser --port=8080
You will get something like this:
[I 04:44:18.288 NotebookApp] Serving notebooks from local directory: /home/[frappe-user]/frappe-bench
[I 04:44:18.288 NotebookApp] The Jupyter Notebook is running at:
[I 04:44:18.289 NotebookApp] http://localhost:8080/?token=8b135cdc3344d6a46a70384848425d87a0c77d04f8a9c9e3
- Then, in another terminal tab, create an SSH tunnel with the safety of no commands to be run from terminal:
ssh -N -L 8080:localhost:8080 <remote_user>@<remote_host>
Do not close the terminal until done!
- Now, copy the URL shown by the output on the first command and paste into your browser:
http://localhost:8080/?token=8b135cdc3344d6a46a70384848425d87a0c77d04f8a9c9e3
Now, I only managed to get it running from within the apps folder.
Make sure you import module by module.
If you have a custom app, my_app, and have a python file:
/frappe-bench/apps/my_app/my_app/hello.py
And inside of this you have a function:
def hello_world():
text = 'Hello world text'
return text
You can import the function within Jupyter with:
from my_app.my_app.hello import hello_world
You can then run directly with:
hello_world()
You will get:
Out[5]: 'Hello world text'
Now you can run the rest of your functions properly. However, I have problems connecting to my site!