Jupyter notebook will not open from command prompt - windows-10

I am trying to work with Jupyter notebook on Windows 10 (64-bit). I downloaded Anaconda3 5.0.1. Now I should be able to open the jupyter notebook from the command prompt by typing jupyter notebook. However I get the following error:
The only way I am able to open jupyter notebook is from the Anaconda navigator. However, I would like to change the directory from which the notebook opens and none of the solutions here How to change the Jupyter start-up folder work if I cannot open jupyther from the command prompt. I have already tried uninstalling and reinstalling anaconda, but that did not change anything.

This error is because you didn't set environment after installing Anaconda.
Go through following steps to solve this issue
Search in start "Edit the system environment variable" and open it.
Click environment variables button
Go to there and add 2 directory path where you installed Anaconda
i.e. 1. C:\ProgramData\Anaconda3
2. C:\ProgramData\Anaconda3\Scripts
Hope this will solve your error :)

If you have:
Jupiter installed directly from Python (not anaconda)
PATH already configured (in case of not, you can do it manually from Windows system advanced menu)
try with: py -m jupyter notebook
It should work ;)

Related

Jupyter Notebook Doesnt open

Im having troubles opening Jupyter or Anaconda Navigator.
Each time I click on the shortcut, the kernel black window opens and closes so fast that I just cant see what it shows and nothing happens.
In case of Anaconda Navigator, the black window appears and closes twice and nothing happens either.
Hope you can help me.
I already tried uninstalling and reinstalling. I wanted to do it again but now the Anaconda Uninstaller doesnt appear :(
did you try running it from the command line ? (cmd/bash)
You can use the command jupyter notebook and it should normally lunch the notebook if everything is correctly installed.

Jupyter not working in VSCode Virtual Envirronemnt

I am new to jupyter and right from start I am trying to run it in VSCode and that too with a virtual environment. I hope that is not too much for you guys.
So here are steps I did;
I installed python and vscode
Added Paths in windows and all virtual environment things work fine
For data processing I created new virtual environment 'DataProcessingVenv'
I opened this venv in Terminal in VSCode and installed Pandas
I did pip install Jupyter
I did pip install ipykernel
next did ipython kernel install --user --name=DataProcessingVenv
In VSCode I created new notebook
pressed Ctrl+Shift+P and selected interpreter as /DataProcessingVenv/Scripts/Python.exe
Now I am trying to read a csv present in same fodler where notebook is present but somehow it is not working. I really don't know what is wrong and where, even don't know if I have provided all required info to solve the issue. Please guide me it some more info is required or if I can do something to solve the issue. I am attaching the current image in VSCode with error at the end.
So at the end the solution was simple. But it took time to learn. I just had to run all previous cells in Jupyter to make the current cell work.

Jupyter Notebook and pandas installation?

currently i am doing course on Data Science on coursera but i dont know how to install jupyter notebook environment as well as pandas library can anyone show me how it is done?
For fulfilling above requirement please install Anaconda(data science toolkit) in you system which comes with all the packages/modules which includes Pandas,Numpy and Jupyter notebook.
Anaconda comes with follow packages check out the link
Anaconda Download Link
How to install Video Guide link
I recommend you download & install Anaconda Navigator
Once you install & launch it, you can then download Jupyter notebook from the dashboard of anaconda navigator
If you want to create a new environment, say new_env, then there is an option for creating a new environment aswell. Just select if you want to use Python or R, and which version you want and a new environment is created
Assuming you are using windows, search for Anaconda Prompt from the windows start and activate the new_env by doing: activate new_env
When the new_env is activated, just follow the instructions here for installing pandas
You can also check this like out: Installing Jupyter Notebook

Anaconda only comes with anaconda prompt

I used to have the whole anaconda package on my Windows 10 computer (an HP Envy) until recently, Windows 10 updated and the update caused problems so I restored the previous version of windows (keep in mind, I installed Anaconda about 3 updates ago so restoring should not have caused a problem). A few days later, I tried to use Jupyter but "jupyter notebook" no longer launched Jupyter when typed into PowerShell. I tried uninstalling and reinstalling with all different preferences (i.e. me only, all users, PATH, no PATH, etc.) but it still installs as only the anaconda prompt. When I type conda --version in PowerShell, my error says "The term conda is not recognized" ...
Does anyone have any suggestions? I really need to use Jupyter. Thanks!

Terminal unavailable in Jupyter

I installed Jupyter notebook with Python 3, It works fine and I point to my python3 from the New. Then I close it and when I open it again the option terminal is changed to Terminal unavailable and python3 is appeared as python[root]. Any idea why?
This link says it's because windows does not have TTY-based terminal support
https://github.com/jupyter/notebook/issues/172

Resources