Jupyter Notebook cannot open in Ubuntu WSL2 - python

Error Image
I keep trying to use the jupyter notebook command and this error pops up. Could someone help?

Don't worry about it, you can just paste one of the displayed links in your browser and you'll be able to access it without issue.
The error only means powershell couldn't find the file that is used to automatically opens the notebook.

Related

I cannot run python on vscode because my computer believes that my .py file is untrusted

Previously I had python running just fine in VSCode but recently something has gone wrong and I'm not sure how to resolve it.
When I open a .py file (downloaded from an email) in VSCode I get a message saying that this source is not trusted. I then followed through the suggestions and made the file trusted and I get a box saying that all extensions are enabled. However, when I try and run it, the box is still blurred out
This is the error I get when I try and run the whole file, not just the cell.
Does someone know how to get this up and running first? Thanks
See the comment and say it is .ipynb file, you only need to enter the trusted file name on the command line of Jupiter notebook
"$ jupyter trust 'filename'.ipynb"
This is a link to instructions:https://jupyter-notebook.readthedocs.io/en/stable/notebook.html#trusting-notebooks

Trusting a notebook is not working in PyCharm

I want to run a Jupyter notebook in PyCharm but on cells that are executing javascript, I get the message, that the notebook is not trusted.
When I click the "Trusted" checkbox, the arrow appears for a second and then disappears again. The notebook stays untrusted. Also using the command-line interface for Jupyter with
jupyter trust notebook.ipynb
doesn't work.
When I open the notebook on the browser with the same kernel running, it works just fine.
I also want to add that I have three projects open at the same time. When I just open the project, which is containing the notebook, I can click the "Trusted" checkbox and it will stay checked, but still, the javascript cells will not execute.
Maybe that's a bug, but probably I messed up some settings? Can you help me find out, which settings I can change and if there are other options to get the notebook trusted within the IDE?
Have a nice day!
I had the same problem when I moved the notebook's directory. What solved it for me in PyCharm was to copy and paste the notebook's content into a new file.
I came across this issue when specifying %matplotlib notebook.
Changing this to %matplotlib inline got the plotting to work.
Not fully understanding the issue or how this solves it but it is sufficient for my application.

.ipynb Notebook more than 5 MB not opening on Jupyter Notebook python

I am trying to open my old notebook that I made last week. The size of the notebook is 7 MB. When I try to open it, it gives a pop up saying: "error loading notebook" and it closes. I am attaching a screenshot as well.
I checked the console while it was trying to open and here is the log of it:
I was able to open this yesterday without any problem. I checked by opening this notebook on visual studio code just to make sure there is nothing wrong with the notebook and it was opening. This problem is there only for files that are heavy or more than 5 MB.
Does anyone know what can be the issue?

Cannot run python code using Jupyter notebook

I am following this tutorial to install the notebook on google cloud. It shows a wrong user interface and I cannot see blocks when I edit the file and cannot run either.
The mistake is that I open a .py file directly. Instead, we should create a new notebook by clicking new.

Jupyter Notebook error. No such file or directory C:.../HOME

I have installed Anaconda2, and today decided to update to Anaconda3. I installed Anaconda3 at the same time as I uninstalled Anaconda2.
Now, Jupyter Notebook shows this error and quits every time I try to start it.
The path in the error message is: "C:\Users\Hongyi\Documents\%HOME%"
What is causing Jupyter Notebook to quit?
Okay it looks like I found a solution.
Jupyter started running after I created the appropriate folder in the appropriate path.
In my case, it is creating a folder named %HOME% (with percent signs), in the path shown in the error message.
Now Jupyter is up and running.
Thank you guys for your thoughts and suggestions.
After readed this solution I tried another one (a comfortable one for me):
Open the location of the "Jupyter Notebook" shortcut (right click > More > File location) and right click again > Properties. In the Destination field (Sorry if the label is another ... the thing is that my Windows is in Spanish and I don't remember how it's labeled this field in English) just change the %HOME% at the end for a path to your "Work Folder" (if you have not created one then just create it). And this way It works also.

Categories