Jupyter notebook kernel keeps dying (no anaconda, ubuntu, cpu) - python

I setup jupyter notebook on a server(Ubunutu) to run but every 20-30min the kernel just dies and tries to restart.
I already googeled but I don't use anaconda, I don't get any specific error and it doesn't look like a specific function which fails so most 'solutions' do not apply to my case it seems.
The code runs on cpu.
However the code does work on my local machine (windows) running on gpu.
I also run the notebook with --debugger but I don't get any error it just says reconnect out of nowhere :(
Has anyone of you encountered a similar problem? It is hard to figure out what is going on without having any error messages :/
Thanks for your help!

Related

what to do if jupyter notebook hangs and does not allow me to undo the previous changes that caused memory issues?

I have previously been using jupyter notebook normally without any issue until when I tried to run a code intending to display a big dataframe (without knowledge that I could run out of memory). this suddenly crashed my jupyter notebook to the level if re-start it using anaconda, as I used to, it crashes telling me that I went out memory.
I have no idea how I can atleast undo the recent changes to the notebook so that it be back to then normal previous stage.
Can anyone help with what in this frustrating situation? thank you in advance!

D-Tale on Jupyter Notebook keeps running forever

I am using a Win10 Machine, python 3.7.3.
I recently started using the D-Tale python library for EDA on Jupyter Notebook.
The problem I am facing is that when I initialize it and run it the cell keeps running forever, which is only logical cause it's a process. But, cause of that I cannot run any cells below it. Am I doing something wrong?
I thought about creating a new notebook every time and running only D-Tale there, applying the code I need to a separate one. Any ideas from users who are familiar with this problem?
I really appreciate any help you can provide.

Plotting in VS Code-Server (Python)

I setup a Visiual Studio Code-Sever on a Raspbarry Pi. I access the server via Safari from my Ipad. I can run scripts but I can not output plots. It is obvious that plt.show() does not work so I tried jupyter, but the interactive window remains black after I run the cell. There is no error to report but vs code is trying to install jupyter once again, although it is installed in my virtual environment. Similar problems occur when I try to start the output pane of neuron (it is not showing up at all).
Does anyone have ideas or ever had similar errors? It seems that jupyter cannot be accessed correctly.
Best regards!

Jupyter Notebook not executing cells/code

For some reason today my Jupyter Notebook has decided it doesn't want to execute the code in cells. However this isn't consistent. I'll restart the kernal, it will work for a while, but then when it runs into an error it then won't execute any code in any other cells after that without a kernal restart.
I've seen a previous post on this but using jupyter troubleshoot only printed out all the packages and no useful information and I also don't appear to have nbextensions dubplicated anyway.
I'm using python 3.7.8 and Jupyter_client 6.1.6
Sorry I don't have much more information, but I'm not really sure what other information to give/look for.
What kind of errors do you mean by "when it runs into an error it then won't execute any code in any other cells after that without a kernal restart"?
I know that if you have In [*] instead of the run number of the cell for a long time probably you have an infinite loop in this cell or an open input (an input that waiting to your answer). Is this the situation?
This is a bug in Jupyter which is somehow connected to Qt, see this issue on Github
https://github.com/jupyter/notebook/issues/6526
It is probably rare...

Jupyter Notebook Kernel Crashing in VSCODE

I am interested in using VSCode's Jupyter notebook functionality and I am just trying to get to grips with it. I can start the kernel and run the notebook cells in VSCode.
After running particular cells it seems to crash with no warning and the code fails as the variables have been cleared. I have to reselect the kernel in the top right and start running the code again from the beginning until I get to the problem cells, and then the issue repeats itself.
I don't think it's anything to do with the Python code, it's some simple dataframe manipulation. I have tried the same notebook just running it in the browser and it works fine.I am running Jupyter through a venv with Python 3.7.6, MacOS Catalina (10.15.4), VSCode 1.45.1.
Something I noticed that might help indicate what is happening, is when it crashes I can run basic python statements in the notebook cells (without reselecting the kernel). But when I run my cell which tries to import tests from a .py file in the same folder or import data files using a relative path, it can't find them until I reselect the kernel. It seems like the cwd has changed? Can anyone assist with this?

Categories