Jupyter notebook not recognised even after installing anaconda and notebook - python

I installed anaconda in Ubuntu 18.04, then I installed Jupyter notebook using the command:
conda install -c conda-forge notebook
And it the notebooks were opening on using command Jupiter notebook , however, then I installed some packages like python3.8-dev and gcc and after installing them, the command Jupiter notebook is no more recognized. I have even tried reinstalling anaoconda and notebook but that doesn't help. And even worse is that command prompt is not even recognizing python as a command though python3 is already installed. How to cure this?

The command is jupyter notebook and not jupiter notebook

Related

Jupyter Lab - Kite is installed but its not working

i've been trying to install Kite in JupyterLab v2.2.6. I have dowloaded and installed Kite, have node.js 15.0.1 and i've run the console commands:
pip install jupyter-kite
jupyter labextension install "#kiteco/jupyterlab-kite"
i have no problems with either and when i check in jupyter extension manager it tells me that it is installed
Kite missing some dependencies error message in jupyterlab
Update for macOS Catalina users, try upgrading JupyterLab > 2.2.9:
Open Terminal:
$ conda install -c conda-forge jupyterlab=3.0.3
Open Kite copilot:
-->
Home
-->
Redo Setup
Open Terminal:
$ pip install "jupyterlab-kite>=2.0.2"
As of this post, Kite works with:
jupyterlab 3.2.7
jupyterlab-kite 2.0.2
JupyterLab:
conda install -c conda-forge jupyterlab=3.2.7
or
pip install jupyterlab==3.2.7
Kite:
pip install jupyterlab-kite>=2.0.2 (only PyPI)
jupyter labextension install "#kiteco/jupyterlab-kite"
Note also that as of this post, there is no Kite extension for VS Code that is compatible with .ipynb. The VS Code Kite extension is compatible with .py .go .js .jsx .vue only.
In addition, you can no longer download the Kite engine from the Kite website.
Adam has posted the installers here.
macOS
Windows
Linux
I had the same problem and for me the following worked:
Reinstalled Anaconda and then I updated the provided JupyterLab version in the (base) terminal. (You would like to update your JupyterLab in the respective virtual environment you are using Anaconda with.)
conda install -c conda-forge jupyterlab==2.2.9
The JupyterLab version in your Anaconda should show 2.2.9 after you restart Anaconda. After this, download node.js and install it on you computer. Then follow the instructions in your Kite desktop app to install the Jupyter Kite extension via the (base) terminal:
pip install jupyter-kite
jupyter labextension install "#kiteco/jupyterlab-kite"
Open your Kite desktop app and click on Redo Setup under the Home section.
In your JupyterLab Kite: Initializing should appear down in the left corner.

Tensorflow module not found by Jupyter notebook

Problem: Jupyter says "Module not found" when I try to import Tensorflow on Mac.
Background:
Virtualenv 16.7.9 installed & activated (venv)
Python 3.7.6 installed
PIP 19.3.1 installed
Tensorflow 2.1.0 installed using PIP as per official install instructions
At the command line, I can activate venv, start python3 then import tensorflow and display the tensorflow version correctly. But Tensorflow won't import from within Jupiter. And if I try to change the kernel within a Jupyter notebook, only Python3 is listed.
On other threads, people recommend using anaconda, but I've used PIP to install Tensorflow as recommended in the above link.
Any ideas?
Install a Jupyter Kernel
You need to install a kernel inside the env and then use Jupyter.
ipython kernel install --user --name=.venv
Then restart jupyter, click new, you should see .venv in your kernel list.

jupyter notebook installation issue using pip

I had a problem with jupyter notebook. Every time I started a notebook, kernel died.
So, I decided to uninstall jupyter notebook using pip:
pip uninstall jupyter notebook
After successful uninstallation, I installed again, using same pip:
pip install jupyter notebook
Then, as usually, I typed in cmd:
jupyter notebook
But got this error:
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
So I checked the location of IPython, and found out that now the right file, which I want to call is jupyter-notebook, which different from jupyter notebook by dash sign. If I run jupyter-notebook from cmd everything works.
Can anyone explain, what happened and why the file now called jupyter-notebook?
Thank You
Because pip uses the legacy Python 2.
Use pip3 to install:
pip3 install --upgrade pip
pip3 install jupyter
jupyter notebook #to start jupyter notebook
I highly recommend installing Anaconda.
Download Anaconda here.
Then use :
bash
to install it.
Good Luck.
A solution without installing Anaconda, or conda:
sudo easy_install pip==20.3.4
pip2 install virtualenv
virtualenv jupyter
source jupyter/bin/activate
pip2 install jupyter
jupyter notebook
This solution was tested on:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
It was run on 32bit Chromenotebook, with Firefox vs NetSurf installed on xenial
Jupyter notebook will be open automatically. However, everytime loging in on Jupiter again, at first source needs to be activated:
source jupyter/bin/activate
and then:
jupyter notebook
to start
I recommend that you always use conda instead of pip to install the Jupyter Notebook.
In your case, for example, I will recommend:
conda install jupyter notebook
and not pip install jupyter notebook I can see that most of the problems that you described there are environment related and hence you can often run into environment issues while using pip to install jupyter

Jupyter Notebook - Python 3 kernel

I have Jupyter Notebook installed and working. However it only has python 2 kernel.
I tried reinstalling Anaconda with Python 3.6 version of python, which worked fine (apart from deleting all my environments, etc.), but no change in relation to the kernels available for Jupyter.
I have tried installing jupyter using pip (the solution to this question), but I get the error message Requirement already satisfied: jupyter in c:\users\username\anaconda2\lib\site-packages
Any ideas?
Are you using pip3 install jupyter?
a more robust solution would be to isolate your environments with something like pipenv.
pip install pipenv
pipenv install --three
this will install a virtual environment with python3
install packages
pipenv install jupyter
activate the env
pipenv shell
start the notebook
jupyter notebook
You should be able to see the python3 option now.

-bash: jupyter: command not found

I installed a copy of Anaconda to play around with, but decided I liked Homebrew better, so I removed it. However, this seems to have messed up my install of Jupyter Notebooks, as I can no longer access it. I reinstalled it with pip install jupyter and when I run pip show jupyter I get:
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: jupyter#googlegroups.org
License: BSD
Location: /usr/local/lib/python2.7/site-packages
Requires: ipywidgets, nbconvert, notebook, jupyter-console, qtconsole, ipykernel
But when I run which -a jupyter I get nothing. I even tried uninstalling and installing python again via Homebrew and it still gives me the error, -bash: jupyter: command not found.
I have python installed correctly, which -a python gives:
/usr/local/bin/python
/usr/bin/python
Any ideas as to why it might not be working?
I'm on Mac and am using Zsh. For some reason, after I installed Python3, the following line:
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
was added to .zprofile instead of .zshrc.
I transferred the line to .zshrc and did source ~/.zshrc. That did the trick.
The below command seems to install only python files (under /usr/local/lib/python2.7/site-packages in your case):
pip install jupyter
You can run the jupyter as a Python's module like this:
python -m jupyter
To see all installed modules you can type the following command from the Python's shell:
help('modules')
As an alternative you can try to upgrade the package:
pip install --upgrade pip
pip install --upgrade jupyter
If you want to access the jupyter by simply typing jupyter in your shell then the path to the jupyter's binary file should be placed inside the PATH variable.
During the installation of Anaconda software the jupyter binary is placed under /usr/local/bin/jupyter (Ubuntu 14.04).
On Mac OS Mojave,
pip3 install jupyter
installs jupyter under
/Library/Frameworks/Python.framework/Versions/3.5/bin/
. Your version may be different from 3.5. You can then link to the binary there as follows.
ln -s /Library/Frameworks/Python.framework/Versions/3.5/bin/jupyter /usr/local/bin/
In the rare case that /usr/local/bin/ is not on your PATH, you may replace it above with some folder that is.
python -m notebook
should do the trick

Categories