Running Jupyter notebook on fedora - jupyter-notebook

I've installed Jupyter Notebook on a Fedora 28 machine, using anaconda.
I am experiencing the most peculiar of problems: everything goes pretty smoothly, the notebook starts fine on my browser, but my kernels are not running, i.e. ipynb files give me a blank page. I do get a warning:
404 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured
I've read the article 'Jupyter can’t start a kernel' on the official documentation and followed their instructions, from this link:
http://jupyter-notebook.readthedocs.io/en/stable/troubleshooting.html#jupyter-can-t-start-a-kernel
But, it doesn't seem to fix the problem, although I think the problem must reside somewhere around there.
I have installed Jupyter Notebooks on several other machines with no problem whatsoever.
Cheers, you guys!

sudo dnf install mathjax fixed the issue for me in Fedora 28 package install (there are guides on how to do it at https://fedoralovespython.org/). They should have made mathjax a dependency in sudo dnf install python3-notebook.

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?

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.

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

404 GET error message MathJax

404 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured
I can't open a notebook because I continually receive this error message. I just installed Fedora in my laptop, installing things from scratch and have been failing with jupyter notebook installation, my main resource for work. I tried looking it up, spent hours trying to find a solution (reinstalled jupyter, made a virtual machine,tried a different browser, edited the jupyter-notebook-config.py file) and nothing seems to work. I have zero clue on how to interpret this error message. Can someone please help???
sudo dnf install mathjax fixed the issue for me in Fedora 28 rpm package install (there are guides on how to do it at https://fedoralovespython.org/). They should have made mathjax a dependency in sudo dnf install python3-notebook.

Jupyter Notebook on Windows 10

I am trying to open Jupyter Notebook on Windows 10 and I am having trouble. I already downloaded and installed it. When I click on the Jupyter Notebook icon in my start menu, a black terminal appears titles Jupyter Notebook. Then I just disappears after that like nothing happened.
Things I have done to combat this issue:
I downloaded VirtualBox with Ubuntu and downloaded the Linux version there. However, it stated it could not be installed since it was not a 64-bit system. I tried to download the 32 bit version but the download always failed.
Next I add the the link http://localhost/* to my Kapersky Internet anti-virus exceptions page thinking it was preventing Jupyter from opening. This didn't work and turning off the firewall completely also didn't work.
Any help would be great help!
There are several ways to use jupyter notebook under windows, especially windows 10 professional.
My favorite way is the lovely ubuntu subsystem of windows 10. You can install it directly from the app store, which is free for all windows 10 users. Then install jupyter notebook from the subsystem:
apt install python3-dev python3-pip
pip3 install jupyter
or you can just do
apt install python3-dev python3-pip jupyter
then just run
jupyter notebook
open any windows browser, copy paste the localhost.... thing from ubuntu terminal
then you can using jupyter notebook with a linux core.
As mentioned by #cricket_007, you have to run jupyter first before opening notebooks. From the terminal, run:
> jupyter notebook
After a few seconds, a server will start. If your dashboard does not open automatically, point your browser to http://localhost:8888. Note: if you installed Jupyter with Anaconda, there should be a shortcut you can click to do all of the above.
The dashboard will point to your default working directory. Place notebooks in this directory or navigate to your notebook's directory to open it through the browser.
Should you wish to change the default working directory, see more on configuring notebook paths in the docs.

Resources