When using Jupyter Notebook on Windows 10 and starting multiple notebooks, each would open on the next available port (the first would be on port 8888, the next on 8889, etc.). I installed Anaconda on Windows Subsystem for Linux (WSL) and have had no issues, except when I try to start another notebook, it opens the same page wherever my previous notebook was started. Manually setting the port on startup like jupyter notebook --port 8889 works, but now I'm spoiled with letting jupyter figure it out for me.
I had to set an alias for the default browser, which is a Windows executable (export BROWSER='/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe'). Additionally, I've generated a notebook configuration file, but I haven't figured out if it's doing anything.
Thank you!
I'm not exactly sure what your question is but I may be able to help you with your config file and default browser.
The following is my jupyter_notebook_config.py file:
c = get_config()
c.NotebookApp.browser = 'chrome.exe -incognito --app=%s'
c.NotebookApp.open_browser = True
chrome.exe is the windows executable file for google chrome which is put on my $PATH variable as follows:
export PATH=/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application:$PATH
The -incognito flag starts chrome in incognito mode. This results in the nice incognito dark theme and insures that the chrome extensions don't interfere with anything
The --app=%s flag is REALLY great, it starts the web page in "application mode" which removes the tab bar from the chrome window.
P.S. I'm also annoyed about the port issue and haven't found a nice work around.
Hope this helps!
Related
I am visual studio code Version: 1.63.2 (Universal).
I am connected to a linux server where my code is located (jupyter notebook). When i open the notebook and select the python kernel, i can only find the default python kernels (from the server). I cannot find the kernels that i created which is necessary to run the notebooks.
Note: The required kernel is linked to a virtual environment on the kernel.
Please help me in linking the remote kernel to my notebook on vscode so that i can work locally on the notebooks located in remote server.
I needed to install the python extension on the remote server.
You can find the answer in the second method here.
https://stackoverflow.com/a/62871909
I did a little differently:
Ctrl+Shift+P, Preferences: Open Remote Setting (SSH:your_address)
Set Python: Default Interpreter Path to your virtual environment Python path
Done
i've stumbled upon this post, since i had a similar issue.
working remotely on a linux server, even if i selected the right interpreter (via shift+ctrl+P "Select Interpreter to start Jupyter server") the kernel remained unactive.
i've checked the installed dependencies inside the venv and tried to switch virtual environment to make it work.. kept on reloading the server, reloading the window.. no way.
eventually, a tiny fancy detail arouse my attention: the "Jupyter server : remote" label in the bottom right.
and tadaa : that was my issue. I've selected "default", letting VSCode starting a server on the local (remote) host, and then the interpeter / kernel was enabled.
hope it can help anyone stuck on the same issue. jupyter server location detail
I'm trying to run jupyter notebook on a remote desktop, which is highly secured (i.e. I had to activate scripting on internet explorer to be able to log in into outlook).
I am really new to this remote desktop thing and I would like to know why is this happening and if it has a solution. As a finance student, I really struggle with this stuff.
I used miniconda to run this. Also, this is shown in the terminal before opening the jupyter notebook window:
"[W 09:21:35.153 NotebookApp] Terminals not available (error was DLL load failed while importing winpty: The specified procedure could not be found.)"
What is shown when I open a notebook
Best regards,
I'm not sure Internet Explorer supports jupyter notebooks, try with another browser if you can.
The default browser for my Jupyter Notebook was Internet Explorer and it was working fine with that. I have windows 10. I changed the default browser to Firefox by following steps in this website :
https://support.anaconda.com/hc/en-us/articles/360024044333-Change-default-browser-in-Jupyter-Notebook
However now the notebook does not start automatically in Firefox and it tells me to copy and paste:
Copy/paste this URL into your browser when you connect for the first
time,
Can anyone tell me how to open Jupyter Notebook automatically in Firefox since above were the steps recommended by anaconda website. By the way after copying and pasting the link in the Firefox I can open notebook fine. I just need to know how to ask notebook to open automatically in Firefox like it was working in Internet Explorer.
c.NotebookApp.browser = u'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
make sure you remove the hash(#) before the c.Notebookapp, and your escape key
I want to be able to edit my ipynb files in an IDE like VSCode or Pycharm instead of having to open the files using the browser login. Any suggestions?
For clarity:
remotehost:
jupyter notebook --no-browser --port=####
local:
ssh -N -L ####:localhost:#### me#remotehost
http://localhost:8899/?token###
All working fine.
In PyCharm 2019.1 you can do the following:
open the file by double-clicking on it
Click on the + sign, and click on Insert Code Cell
Add code to your cell, and then click on the Play button to run the cell. Select Run Cell to execute your code.
Notice that the result of the execution of your cell will be shown in the right side of the PyCharm window. You can keep adding more cells as shown above.
I really hope this helps.
I have recently installed jupyter notebook on Centos 7. I have been trying to get it launched on my browser from past 2 days and have tried every answer on stack overflow. It stopped showing " No web browser found " when i type it on the command terminal. But when i copy and paste the link onto the google chrome browser it's showing, This site can't be reached.
How will i resolve this issue?
If you follow carefully the instructions on this post, you'll solve your problem.
I went through the same situation and followed these steps.
https://techknight.eu/2016/01/03/setup-jupyter-notebook-centosrhel-7/
The key is to :
Modify the configuration .py file with your desired values (specially the IP on wich the notebook will run).
Allow the port you're gonna use throug the CentOS firewall
In any case, if you break the configuration and you need a fresh start, you can always do:
jupyter notebook --generate-config
And the file will regenerate with default values.
Good Luck