On my windows PC, i have Anaconda installed, but today i could not open Jupyter Notebook correctly. When i use these commands to set up an enviornment, i can open the Jupyter notebook.
conda activate [name_of_the_environment]
jupyter notebook
The error occurs when internet explorer opens the Jupyter notebook, because i can't access to my ipynb files or any other. The page just stays like this (in blanc, like it does not end loading):
Internet explorer general site
Trying to open a file
I am not having any connection problems and this happens regardless of the file size.
I also tried updating Anaconda, but it didn´t work.
Code written in the terminal:
Code
Related
I have already download and installed the Anaconda. However, I have a blank page when I open the Jupyter Notebook. I dont know what happen.
Jupyter Notebook: 6.4.5
MacOs: 12.2.1
I use Google Chrome and solved my problem by reading the official Jupyter Notebook page in the section "Jupyter fails to start".
https://jupyter-notebook.readthedocs.io/en/latest/troubleshooting.html
In my case, one of my Chrome extensions was messing with Jupyter, I disabled them all and reactivated them one by one until I found which one was messing up.
I try to run this code in my own computer: https://github.com/ThaiPham27/Depression_Detection_DNN
I've downloaded the zip file but I have no idea how can I run this code in Jupyter notebook and get the output. I couldn't find any complete guide for that.\
I have Python 3.9 on Windows 10.
you can only run notebook file on Jupyter Notebook, and the extension of notebook files is ".ipynb"
And you need to have jupyter notebook on your system, or you can download Anaconda package for that.
P.S: I also briefly looked into the notebook, seems like it was setup for Google Colab as it is using some CSV from google drive.
I've been searching for a way to open jupyter notebooks by double clicking on .ipynb files in Windows explorer, and I've installed nbopen since visiting this stackoverflow answer.
Jupyter notebooks run fine on my computer, and I can open a server if I navigate to the correct folder in anaconda prompt and type for instance jupyter notebook or nbopen file.ipynb.
However, when double clicking on .ipynb files (or "open with" nbopen.exe) I get the error messages displayed in the screenshot below. Apologies for the lack of a text version - the window disappears very quickly and I've only captured this by means of well-timed screenshot taking (incidentally, any tips on how to capture short-lived error messages like this in future would be appreciated). After the window has disappeared, nothing further happens
To try to resolve the error I have reinstalled nbopen but no success. I have also tried opening the .ipynb files with jupyter-notebook.exe, which duplicates this error message after from notebook import notebookapp.
The default python version (i.e. the first result for python --version) on my PC is Python 3.8.5.
I've been trying to figure out how I can open a .ipynb file on double-click on a Mac, so the file opens with Anaconda and then automatically opens Jupyter Notebook with the file contents.
I have tried creating an application through Automator that opens with a jupyter_lab command, but the issue is that Jupyter lives in Anaconda, so this method is not working. See these articles for my steps: https://samedwardes.com/2020-01-31-open-ipynb-with-double-click/ and Open an ipython notebook via double-click on osx
I have also tried installing nbopen with the following:
python3 -m pip install nbopen
This works, and then I can run nbopen file.ipynb through the terminal, but I want to be able to bypass this step and do it while in file explorer, physically looking at the file instead.
I have ran the recommended command for osx to integrate it with file manager ./osx-install.sh but I just get zsh no such file or directory and can't really find any help with figuring out why this is pushing back an error.
Any suggestions?
I have this "convenience issue" as well, and didn't go for the nbopen route, but instead, I just made a batch script (I named it jupyter-notebook.bat) that calls certain conda functions, and pretty much initiates things like how double clicking works. In the script, I just have this:
call "C:\Users\XYZ\Anaconda3\Scripts\activate.bat"
call conda activate myEnvironment
call python C:\Users\XYZ\Anaconda3\Scripts\jupyter-notebook-script.py %1
Lastly you just need to configure that every .ipynb opens up using your jupyter-notebook.bat script.
For consistency, I placed the script in my Anaconda folder. And if you also have nb_conda_kernels installed in your base environment, you'd have access to the other environment you've created as well from there.
I am using Python 3.4 version and when I am trying to open the jupyter Notebook the explorer does open but it displays a link in the explorer like this and after that nothing happens.I am not able to view anything in the explorer
http://localhost:8823/tree?token=27c7f7543497392b736e1f2b74f1d6af93c2065dcbe67c61
What should I do to see the proper jupyter notebook? thanks in advance
You can just retype the url to
http://localhost:8823
If it still show nothing, try to run it on another non empty directory
jupyter notebook --notebook-dir="C:\another directory"
I typed jupyter notebook list on the annaconda prompt , it then gave me a list of all the currently running servers.
i copied one of the servers in the chrome window and it worked