python VS code jupyter notebook - python

Hey guys I am trying to use jupyter notebook in vs code but when I am installing jupyter Extention this message pop up "Extension host terminated unexpectedly."

The most probable cause is there is another extension that is causing this.
If you have live-server installed try removing it and then reinstalling Jupyter Notebook again.
As a last resort, try remove all other extensions and then install Jupyter Notebook extension.
Read more about it from here-
Stackoverflow

Related

Couldn't find kernel 'Python 3.7.0 64-bit' that the notebook was created with

When I loaded a Jupiter notebook in VS Code, I usually saw the message "Connecting to Jupiter kernel: connecting to kernel" .
Then all of a sudden VS Code stopped connecting to Jupiter server.
I installed notebook again using pip install notebook
Now my Jupiter notebooks seem to work, however, I do not see the message "Connecting to Jupiter kernel: connecting to kernel"
Instead, a message appears "Couldn't find kernel 'Python 3.7.0 64-bit' that the notebook was created with. Using the current interpreter."
It is annoying. How can I get rid of it?
P.S. I did not update Python itself and it is the same 3.7.0 64-bit version as before. The Python extension for VS Code is also the unchanged.
The notebook seems to run correctly, though.
It appears that there is some conflict with the initial creation of the notebook. If you save the notebook as a new file, it should clear the conflict.
You can Save as.. by using the shortcut Cmd + Shift + S or going to File and clicking Save as... Once you do that, you can change the name to a new file and try opening it again.

Jupyter notebook is not showing any files?

I was working on jupyter an hour back but now suddenly it has started showing no files when I first run jupyter.
I have made sure that its in my main directory where all my jupyter files are.
Kindly help me
If your jupyter notebook version is over 6.
Downgrade the version (5.7.5)
your jupyter notebook has authority of get list of files
if not, then open run jupyter notebook as administrator
It may causes a lots of different jupyter notebook error.
I'm sorry for not to give you a accurate answer

Jupyter Notebook not opening because of weird error

When I try to open jupyter notebook the result is:
Fata error in launcher: Failed to open executable
I tried to google it yet nothing has matched my error. I don't know what to do any more. I've tried reinstalling Python so many times and I still get this result. My Python is version 3.8.1 by the way.
Try to launch it with python -m jupyter notebook
If this works, check if you the scripts folder is in your PATH: for example I am running python 3.6 so i added C:\Program Files\Python36\Scripts to my PATH.

Internal Server Error in Jupyter Notebook

I'm working with jupyter notebook through SSH (anaconda and python are on my linux machine but output in jupyter notebook I see on windows machine).
I tried to install keras and tensorflow but something went wrong and I removed these packages. After that I can't open any of my notebooks (but the file system output is okay, I can see all the folders and files in jupyter notebook).
Can you please help me to solve it? I think maybe it happened when tensorflow was removed, some packages also were deleted?

Why does jupyter notebook server keeps crashing when .ipynb files are opened?

I was able to use jupyter notebook 4 days ago. The only thing that changed was there was a firefox version update.
After that the server crashes everytime .ipynb files are opened. Even the directory will have a server error. I tried it both on Firefox and Google Chrome, both browsers will crash the server.
My only kernel is python3 and it always says "Kernel Busy". I tried resetting my pc and the jupyter notebook, but nothing seems to work.
The console showed:
The last 2 lines are causing the crash but I don't know how to fix it
When I type conda install jupyter in the anaconda prompt, I get something before it finishes as shown below. Maybe it might have a cause as to why it is having issues:
I created a new python environment and installed python, matplotlib, pandas, jupyter and it still crashes
Please uninstall and re-install all the below items:
ipykernel
ipython
jupyter_client
jupyter_core
traitlets
ipython_genutils
Additionally, if you're going to install with conda, follow below command.
run conda clean -tipsy
This command will clean up conda caches before you start.
Reference:
https://github.com/jupyter/notebook/issues/1892
Do you let Jupyter start the browser? If so, disable that and start the browser manually. I don't see how the zmq error messages could be related to the browser startup, but since you say that the only change was a browser update, that's worth a shot.
Check which version of pyzmq is installed. If Jupyter Notebook and the kernel are in different conda envs, check both and make sure they are on the same version and build. Try upgrading or downgrading to different versions. According to Anaconda issue 8932, there are problems with pyzmq on Windows. And a new build for win32 was released about two weeks ago - though I would expect win64 builds to be used nowadays.
I also found some recommendations for a similar error message to yours in Spyder issue 6097. The first one is to try without firewall and/or antivirus. You might have picked up a new firewall rule unknowingly. Trying different versions of pyzmq is also mentioned there.
I am sharing this solution in case someone needs it in the future.
I have just faced the same problem a hour ago. This was the message I was getting in the terminal. And the jupyter keeps restarting.
ModuleNotFoundError: No module named 'html.entities'; 'html' is not a package
[I 00:44:32.436 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
After Searching through the internet when I can not find the solution. I fixed it by removing the .HTML files I had in the directory. After moving those file jupyter started working parfectly.
I just had a similar problem - for me, it was casued by a non-existing %temp% directory (I have %temp% mapped to a ram disk, and the temp folder on it wasn't created yet).
Creating the folder pointed to by %temp% solved the issue.
All my environments were working totally fine but suddenly after restarting the system, the jupyter notebook from an environment was not opening or it was suddenly crashing. Tried form anaconda prompt but getting "Unable to create Process...
All my DL dependencies were on this environment and I didn't want to create new environment completely installing all the required dependencies.
Solution: I opened the Anaconda Navigator and cloned old_env to new_env and it worked magically. I could able to open the jupyter notebook successfully and all dependencies were working fine. Hope it helps

Categories