How to add jupyterlab and notebook to Anaconda? - jupyter-notebook

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/

Related

Jupyter notebook view missing in Spyder ide even after install

Help, I am trying to use jupyter notebook in spyder , I've already installed the jupyter plugin via conda install spyder-notebook -c spyder-ide upon installation I restarted jupyter but the notebook tab is missing under the view tab in spyder.
Message of installation of notebook:
Screenshot of my views and panel tabs in spyder:
Unfortunately,
The Spyder notebook plugin is not yet compatible with Spyder 5 [...]. The latest version of spyder-notebook is compatible with Spyder 4.2[...]
See here. So either you can revert to Spyder 4.2 or wait for a solution. The issue is tracked here.

Not a conda environment

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.

How best to update / upgrade RStudio inside or underneath Anaconda Navigator?

The version of R Studio that is bundled with the latest release of the Anaconda distribution is over a year old RStudio in Anaconda Navigator, specifically version rstudio-1.1.456. If I check the Rstudio website current RStudio download, it says the latest version is RStudio-1.2.5033.exe.
I want to use the current RStudio release. Anaconda Navigator package manager doesn't give me an option to install any later versions. Also, Anaconda put my R-dedicated virtual environment (which I named Rdev') and installed R in a wierd place too:C:\Users\rlysakow.conda\envs\Rdev\Lib\R\bin`.
My judgement is that R and RStudio are basically UNIX programs that have been ported to Windows, and have all kinds of "leftover" Unix-izms and quirks in the way they reference files, directories, and scripts. Plus, Anaconda makes a lot of choices without always asking the user about where to put things.
It looks like to get a good RStudio update, I must update RStudio from within RStudio, but this will likely break a lot of Anaconda R functionality. RStudio doesn't use Anaconda Navigator's conda program to do the upgrade. The Anaconda Navigator's conda package index will likely not reflect the changes that RStudio makes.
Before I make a likely irreversible and breaking change to Anaconda, can anyone recommend a better way to do this Rstudio update and have Anaconda's package index correctly reflect changes that RStudio will make with executables and packages that it updates and installs?
Please do not recommend something like "ditch Anaconda and just use RStudio for all your R work", because that doesn't allow easy integration with Jupyter Notebook and the conda package manager inside Anaconda. I could install Jupyter Notebook separately, but then I have to manager that outside of Anaconda too. The end users of my application want to use Jupyter Notebook for their R work.

Installed package on Anaconda not accessible in Jupyter Notebook

I installed Anaconda on an external drive inode/directory/0C707E95707E84EC. I opened Anaconda-Navigator to install r-aer in base(root). So far so good. Then I start Jupyter Notebook from inode/directory/0C707E95707E84EC and am unable to access the aer library.
This all started last week. when I was unable to install aerand after a circus of affairs I finally ended up updating Anaconda and then having to delete and reinstall it. All I want to do is access aeron Jupyter Notebook. The image below (last image) shows library(raer); I have tried many different command versions, e.g. library("Raer")and variations thereof.
I know that AER is installed in Anaconda . Could this be a path issue?
calling library in Jupyter Notebook
for any file on desktop (win 10) Jupyter Notebook can see that file without specifying the path, try putting that file on desktop.
see this it could help:
specifying R library path for RKernel in Anaconda Jupyter notebook_Stack OverFlow

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