Confusing Jupyter Notebook packages on Anaconda: jupyter or notebook? - jupyter-notebook

I have been wondering about this for a while and cannot seem to find a reliable source to explain this.
I want to install Jupyter Notebook to my Conda environment, and when I search for it on https://anaconda.org/, there are 2 very popular packages available and both of them can open a working Jupyter Notebook with no problem.
https://anaconda.org/anaconda/jupyter
https://anaconda.org/anaconda/notebook
However, according to the Project Jupyter's official documentation, the pip command to install Jupyter Notebook is:
pip install notebook
And nowhere in the documenation, it mentions anything about this jupyter package.
Question
So what exactly is this jupyter package?
It does not have any license, no description, no references to the Project Jupyter website, and the package just looks unmaintained with version 1.0.0 for a while now.
Yet it has > 200k total downloads and when installed, it is able to open Jupyter Notebook properly.
I find it very confusing and easy to lead to dependencies problem in the future in Conda environment.

It's clear from the Project Jupyter instructions that the canonical package name for installing Jupyter Notebook is notebook. There are parallel jupyter and notebook packages in PyPI as well as the anaconda channel you mention. However, it is clear that notebook is regularly updated (as of writing, notebook on anaconda was last updated on 30 July 2022, jupyter on 22 January 2017!) The jupyter package on PyPI has the description "Jupyter metapackage. Install all the Jupyter components in one go." (However, I tested the jupyter anaconda package and it only runs notebook, not eg Jupyterlab.)
I would guess that the jupyter package is left over from when Project Jupyter was just notebooks, without other projects like Jupyter Lab and Jupyter Hub. Of course in installing one should follow the official instructions, since the older package is not kept up to date. The fact that it has a lot of downloads only shows (as does this question) that python package management and the Jupyter ecosystem are confusing for many...

Related

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 R Language on Jupyter Notebook

I've checked all the resources and tutorials from the internet and it seems all are requiring to install Anaconda just to build the R kernel.
Is there a way to add R kernel to my jupyter notebook without installing Anaconda? If so, how?
Thanks!
I've solved my problem, by installing R into my machine. Upon installing, run the application and I follow this tutorial, by just copying the stated command.
Here's the link for the installation of native R.

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

Install and run R kernel for Jupyter Notebook?

I have jupyter notebook installed, I also have R installed. Both work fine independently.
When I run jupyter with jupyter notebook, then try to open an ipynb file, I see
The only option in the dropdown is Python 3 (R is not an option).
Question
How do you open a jupyter notebook with an R kernel (on mac)?
Note
I tried jupyter notebook --runtime-dir /usr/local/bin/R but that was just guessing
Looks like the R kernel could be installed via pip?
Open any R session (e.g. in RStudio is fine, or open terminal/bash and type R to start an R session).
Install the kernel with:
install.packages("devtools")
devtools::install_github("IRkernel/IRkernel")
IRkernel::installspec()
Close and reopen the notebook and the R kernel will now be available.
If the R kernel does not appear as an option within a Jupyter notebook even after installing R, and one is using Anaconda, bringing up the conda prompt from the Start menu (Windows 10), and running the following commands may do the trick:
conda config --add channels r
conda install --yes r-irkernel
Credit to this post.

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