Python stopped running

I sometimes face the problems that python is not running at all.
One time, while I was working for a project and it suddenly stopped running any code. This sometimes solved when I open another browser, but, this time, it is lasting for a week and I was unable to do any of my project.
(Switching to Colab sometimes work, but for some reasons I don’t know, it failed to import piplite in Colab…)

It even doesn’t run the most simplest code like print(‘hello’) it never works.
What can I do when I face this type of problem?

image

I am using both Edge and Chrome browser and version is the most up to dated.

Thanks

1 Like

There’s a lot of ways to run JupyterLab and your post itself doesn’t tell us how you are using it.
I’m guessing what you show in your screenshot is JupyterLite because I see piplite mentioned.
It would have been better to include the upper right corner where there is an indicator of the specific kernel being used. Also that indicator of busy or not is important to using Jupyter.

I think what you are asking is already answered here at While using jupyterLite my notebook does not respond - #4 by fomightez .

Also:
If you are indeed using JupyterLite, you can now install things like numpy simple by the following:

%pip install numpy

There’s no need for two lines and a complex syntax to do this.

1 Like

Oh wow! Thank you fomightez!
You’re hero!