Not a conda environment - jupyter-notebook

i am trying to launch conda from the terminal on windows.
From the relevant folder ('Desktop > Course'), i installed the jupyter notebook ('pip install jupyter notebook') and 'nb_conda' ('conda install nb_conda'). Then i open the jupyter notebook by entering the command 'jupyter notebook'.
So far so good.
But when i go in the 'Conda' tab on the jupyter notebook, after 2 second i get the message ''EnvironmentLocationNotFound: Not a conda environment: Desktop > Course'
Why is that ?

It worked for me as well on Windows 10.
Some time ago, I installed Python. Later on, I installed Anaconda to run pandas_datareader, etc. It didn't work. Reinstallation didn't help, either. Then I cleaned all installation of Python and Anaconda and started from scratch.
I made a fresh new installation of Anaconda:
Then I ran the command line as admin
I proceed:
conda update conda
conda update anaconda-navigator
I went to "Environments" in the Anaconda Navigator
Then clicked on "Update Index" in the middle top
I waited for it to finish
Then, I went back to "Home" and launched the Jupyter
It seems like the environment was inconsistent, at least that was the message of conda update.

Not saying this is the right answer but this worked for me:
I went to "Environments" in the Anaconda Navigator
Then clicked on "Update Index" in the middle top
Waited for it to finish and went back to "Home"
Was able to launch Jupyter Notebook just fine.

There are two solutions-
1 - (not personally recommended) This is because you have probably not created the conda environment. For creating a new environment with all the dependencies look here- https://github.com/Anaconda-Platform/nb_conda
2 - (personally recommended) Install the complete anaconda distribution from here- https://github.com/Anaconda-Platform/nb_conda (check for windows and download for the python of your choice). After that either you can create a virtual environment and launch your jupyter from there or directly launch from the base environment. This will take care of all the dependencies and also it will help in all your future endeavors.
While following 2nd suggestion, make sure to uninstall all your previous python installations. Give it a fresh installation and while installation make sure to tick the box where it asks for adding conda to the system path.
Good Luck.

You could try using the command prompt from anaconda. This might solve your problem

I had the Not a conda environment error when re-installing conda while having the environment activated.

Related

How to add jupyterlab and notebook to Anaconda?

i have created a new environment and i installed the jupyterlab server and notebook . But i can't find the jupyterlab widget on the Anaconda navigator home , i mean i can start the jupyterlab server with the conda prompt , but sometimes i accidentally close it and all my work is gone.
Where i want to find the jupyterlab and notebook
in my base environment i can easily access to , because it has a shortcut on the menu home : here is an exemple :
my base environment
Did you maybe install the "wrong" version of Jupyterlab or Jupyter Notebook?
I did, and when I uninstalled that version, reinstalled a new version, the widget showed up.
I installed the version 3.4.2 of JupyterLab and the widget didn't show up.
Then I uninstalled it from conda prompt with conda uninstall jupyterlab, then reinstalled a stable version with conda install jupyterlab=3.3.2. Now the widget shows up.
Do you have checked https://www.geeksforgeeks.org/how-to-setup-conda-environment-with-jupyter-notebook/ or https://medium.com/#nrk25693/how-to-add-your-conda-environment-to-your-jupyter-notebook-in-just-4-steps-abeab8b8d084 ?
Otherwise, I can help in another way. You can also you deepnote for example. It is free, and you can save it using internet, and also share with your mates, friends... https://deepnote.com/

Cannot start jupyter notebook after deleting anaconda

What happened:
I have had Pip and Anaconda installed on my Mac. I tried to tidy up and decided to delete Anaconda since I assumed I only needed Pip for my Python programming.
My question:
I have been using jupyter notebook for my university project. Apparently, it had been installed by me using anaconda. Now that anaconda is gone, when I try running jupyter notebook, it is still looking in the deleted anaconda directory and throws the following error in the command line
/Users/username/anaconda3/bin/jupyter: No such file or directory
Furthermore, I now get this error when installing jupyter using pip3:
WARNING: The scripts jupyter, jupyter-migrate and jupyter-troubleshoot are installed in '/Users/username/Library/Python/3.8/bin' which is not on PATH.
Unfortunately, I barely have an idea of what I am doing when installing anything using the command line. Could you help me out in fixing the issue?

Installing RStudio using Anaconda Navigator in Windows 10

I tried to install RStudio from Anaconda Navigator GUI. I ran the Anaconda Navigator with administrator privileges. Once the installation is started, a pop-up appears to create 'rstudio' environment in C:\Users\bipin\Anaconda3\envs\rstudio. The installation went on for sometime. So when the installation was over, the button beneath RStudio icon shows 'Install'(instead of 'Launch'). Hence I went to the very folder(C:\Users\bipin\Anaconda3\envs\rstudio) to check for the installed files. I was startled to discover that the 'rstudio' folder was missing in the 'envs' folder.
I repeated the process several times, however the result was same.
Should I install R from 'https://cran.r-project.org/bin/windows/base/'?
I would appreciate feedback to rectify this issue.

Installing R Studio with Anaconda

I tried to install R Studio (version 1.1.456) using the anaconda navigator by simply clicking on the install button. It was taking more than an hour, so I just figured it should be stuck.
I then tried to install it through the anaconda prompt but now it has also been stuck for around 30 minutes here:
What can I do to get around this?
Thank you in advance!
For various reasons up-to-date RStudio versions are not availabe on any conda channel I know. #merv's answer is the easiest solution, if you are happy to work with an older version of rstudio. Here is another suggestion, where you install RStudio outside of conda, but configure it to use a particular R installation, which is maintained in your custom conda environment. Step by step, this is how you procede:
Install the latest RStudio from the official sources
Create your custom conda environment CUSTOMENV, including an installation of r-base
conda create -n CUSTOMENV -c conda-forge r-base'>=4.0.0' ... [further packages]
Activate the conda environment
conda activate CUSTOMENV
Start RStudio from console
rstudio &
Important Note: I strongly endorse #mfakaehler's answer since all RStudio builds on Conda have effectively been abandoned. Install RStudio natively and launch from activated environment.
Create a new env instead. E.g.,
conda create --name rstudio_env -c r rstudio
Best practice for Conda is to create new envs for each project rather than using a monolithic base env. Generally, I find that the less one installs in base the better their experience with Conda will be.

Issue running juypter notebook after installing Anaconda

I recently installed the latest version of Anaconda which i require for a course i am doing in data analytics.
I need to use jupyter notebook but it won't run for me ..i keep getting an error jupyter notebook not found.
In the anaconda prompt i ran command conda list and juypter is in the list. The version of juputer showing is version 4.4.0.
I tried then to launch jupyter notebook through anaconda navigator but no luck either. I did notice though that in Anaconda navigator the version of juypter notebook shows as 5.6.0. The conda list command shows version 4.4.0. Strange. I then decided from navigator to install version 4.4.0 of jupyter. This has allowed me to run jupyter notebook but i cant code in the notebook and it says kernel not connected. A lot of errors also showing in command prompt.
Any help would be much appreciated as i have uninstalled and reinstalled Anaconda over 14 times and im getting nowhere. Two assignments due in on the 11th November so getting quite worried. Im very new to programmjng and from a finance background.
Im running windows 7.
Kind regards
Rebecca

Resources