Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Jupyter with Windows Subsystem for Linux

Using the Ubuntu bash terminal on Windows 10 (installation instructions here), I installed Anaconda and have been using Jupyter notebooks without a problem. Unfortunately, Jupyter is unable to locate a runnable browser from within the subsystem, so I have to copy and paste the link it outputs in the terminal - but that is workable. The main issue comes when I try to open multiple notebooks. Normally, Jupyter would detect that a port (8888 by default) is already being used and make a new one, but it seems to fail to detect this so that when I use the link it generates, I end up looking at the first notebook I opened instead of the new one.

Any idea what the issue might be? And, if not, how I can manually get around this?

like image 656
Grayscale Avatar asked Jun 15 '18 20:06

Grayscale


People also ask

Can you run jupyter from WSL?

You can run the jupyter notebook from anywhere (i.e., from the Linux or Windows filesystem). The WSL will act as a jupyter server accessible at localhost with port 8888.

Can I use Windows Subsystem for Linux?

You can now install everything you need to run Windows Subsystem for Linux (WSL) by entering this command in an administrator PowerShell or Windows Command Prompt and then restarting your machine. This command will enable the features necessary to run WSL and install the Ubuntu distribution of Linux.

Can I use Jupyter Notebook in Linux?

On Linux systems, Jupyter Notebook can be installed both through its command line interface and its graphical user interface. The command line interface rests on its Terminal. To install Jupyter, you would first have to install or update Python and then install Python notebook.

Can you use Jupyter Notebook from remote server?

you can run jupyter notebook --no-browser --ip="<remote server ip>" on your remote machine terminal. And access notebooks using http://:8888/?token=<> from your browser on local machine.


1 Answers

try:

jupyter notebook --no-browser
like image 134
Faymek Feng Avatar answered Oct 16 '22 18:10

Faymek Feng