Run Jupyter notebook in an anaconda environment on Windows 10 - windows

I recently create a anaconda env by:
conda create -n tensorflow_env python=3.6
conda activate tensorflow_env
conda install -c conda-forge tensorflow
Then I install jupyter notebook in the tensorflow_env,
conda install jupyter
Then I run it with
jupyter notebook
I got a blank website:
Anyone knows what's going on here? I use windows 10. And the jupyter notebook works fine if I don't run it with in the tensorflow_env environment. But if I don't run the jupyter in that environment, I can't import tensorflow.

You may need to install additional package:
conda install nb_conda_kernels
and restart the Jupyter notebook server again.

Related

Orange3 install through Anaconda Prompt gets stuck on 'solving environment'

opened anaconda prompt as administrator,
first updated conda using
conda update conda
then tried installing Orange3 using
conda config --add channels conda-forge
conda install pyqt
conda install orange3
as per https://orangedatamining.com/download/#windows.
gave me the following problem:
it stays on this for at least an hour.
What am I missing or misunderstanding here?

anaconda can't install in jupyter notebook conda packages

everything was Ok with jupyter notebook, but then I tried to install by:
!conda install --yes --prefix {syz.prefix} psycopg2-binary and I got this error in jupyter EnvironmentLocationNotFound: Not a conda environment: C:\Users\Anonymous\{sys.prefix}
You can't mix virtualenv or venv with conda environements.
Learn conda basics here: Managing conda environments

jupyter not working from terminal [mac m1] zsh

I have installed Miniforge on my macbook air m1, and then did the following steps to successfully install jupyter and launch it:
chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh
sh ~/Downloads/Miniforge3-MacOSX-arm64.sh
source ~/miniforge3/bin/activate
mkdir data-science
cd data-science
conda create --prefix ./env python=3.8
conda activate ./env
conda install -y jupyter
conda install pandas numpy matplotlib scikit-learn tqdm
Then: I launched Jupyter this way:
jupyter notebook
Everything worked fine. But when I exited the terminal and opened again and typed:
jupyter notebook
I got this error: zsh: command not found: jupyter
What is the problem?
I know that this is a path problem, but even when I go to env environment, and I run jupyter notebook I get the same command error.
Im not sure but I think you need to reactivate the environment each time you restart the terminal sesion.
conda activate ./env
then run your code

pip command to downgrade jupyter notebook

I installed jupyter notebook with pip using python -m pip install jupyter and nbextensions using pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install
My current jupyter-notebook version is 6.1.6 which makes nbextensions to show blank tab as per this thread . However the solution is to downgrade the notebook to 6.1.5 version.
How do I do that using pip?
pip install notebook==6.1.5 will downgrade the jupyter notebook
You can specify a version number:
pip install jupyter-notebook==6.1.5

Unable to launch jupyter notebook from a newly created environment in anaconda

After creating a new environment, it is not recognizing jupyter notebook when i am trying to launch it from there. Able to launch it from base environment.
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
To activate this environment, use
$ conda activate ipl_score
To deactivate an active environment, use
$ conda deactivate
(base) E:>conda activate ipl_score
(ipl_score) E:>jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
(ipl_score) E:>
You can install jupyter notebook with conda or pip
pip
$ pip install notebook
conda
$ conda install -c conda-forge notebook
Start jupyter notebook using the command below in cmd
$ jupyter notebook
Jupyter Notebook has to be individually installed in every environment you create.
If you have Anaconda Navigator installed, open the navigator, select the ipl_score environment and install Jupyter Notebook.
You can also install jupyter notebook from the command line using pip or conda in the activated environment.
pip install notebook
conda install -c conda-forge notebook
You can follow the below article if you need more information
https://jupyter.org/install

Resources