I start up Jupyter Notebook from the cmd and it works with no issues. But when I open the localhost, no folders are shown and it just says Server error: error. When I refresh, the folders show up, but immediately after Firefox tells me the script is unresponsive. After a few seconds, the entire browser crashes. What is happening, and is there any way I can fix this?
Related
I am connected to a remote server via the Remote - SSH extension on VSCode. When I am using an ipynb jupyter notebook file, and I try to Debug Cell the following simple cell,
from multiprocessing import Pool
pool = Pool(4)
I get the following error popup:
Invalid message: Session is already initialized
and simultaneously, a few of these messages on the bottom right of the VSCode window:
Failed to launch debugger for child process 16803
I believe this error is due to not being able to attach the debugger to the child processes, but I havent been able to resolve the issue. I tried setting "subProcess": true, in my launch.json, but that did not resolve anything. This error does not occur if I debug using 'Run and Debug' section of VSCode, nor does it happen if I use the pseudo notebook feature within .py files using #%% to create cells. It only happens in actual .ipynb files when debugging a cell.
Any suggestions are appreciated!
I'am trying to open Jupyter Notebook from Putty. I have a server where is installed Python and Jupyter. I followed all the steps from this post Remote access Jupyter notebook from Windows but it doesn't work. I got the error: This site can't be reached.
Any idea?
Thx
edit: I added a photo with the ps from putty and the error from browser. It's said:
This site can't be reached
.
The good old logout/reboot mechanisms work in this case too!
You can try closing the jupyter connection in the tunnel's connection, logout from the remote server, re-connect and try. Has worked a few times for me today.
If that doesn't work, there might be stale jupyter notebook processes on the remote server. Query for them and kill them and then logout-log back in and try.
If that still does not work, try implementing your code through ipython to check if Jupyter is working at all, even if its user interface isn't loading on your browser.
I have a jupyter lab running in a screen on a server, which I am starting with jupyter-lab --ip=my_ip --port=7778 --no-browser script.ipynb Then, I am opening it in my local browser via ssh. All printed output is retained, even when I close the browser window; e.g. if my script is finished running and produces output, I can close the browser window and the output will be there the next time I open the window.
However, I want to be able to start the execution of the script, leave it running on the server, close the browser window and leave it running, for example over night.
Is there an option I could use for that?
I have just started to use virtual environment and tried to create one for Jupyter Notebook, and almost succeeded but when I tried to open a new notebook it gave the error "unable to connect to kernel or server":
Refreshing the browser, clearing the browser cache , restarting anaconda etc also did't fix the problem!
Can you tell me how to fix it?
This happens most times, try restarting anaconda it should fix the server issues, also clear browser cache.
I am running a jupyter noteboook on AWS EC2 via
nohup jupyter notebook
Unfortunately my notebook went off, but when I reopen it, the notebook says:
kernel connected
I have a few print() commands in the script to see how the program is progressing. However th se has stopped (is by design of the jupyter notebook and cannot be changed yet). However, I wonder is there a way to check the progress of my program now? is it even still running giving me an output?
I have assigned the results to a variable and also at the end of long-running loop a command to export to csv...