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
Related
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.
I tried to open it in multiple ways but still not working. sometimes opening the jupyter notebook via manually typing jupyter.org in the search bar gives an error of binding.
You just need to configure your default browser as Google Chrome.
To do so,
Go to your start button and click on the search tab
Then key in "default", and click on "Default App"
Click on the web browser category and choose your preferred browser.
You can also refer to this if the above fails.
https://stackoverflow.com/a/47793764/15299683
Go to search and type Jupyter notebook and click on the application and there will be a black window that will pop up once it loads, kindly look for URLs that will appear once the window loads
URL might look like this= https:/local host.....
copy one of the URLs and then paste it in the chrome then you should be able to open jupyter notebook in chrome. Try this this will work
(OR)
Please scroll down to Web browser and Select Google Chrome. If promted, Click on OK else just close the settings tab and return to your command or anaconda prompt and type jupyter notebook as usual. A new jupyter notebook tab should open in Google Chrome now.
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
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!
I am trying to open the Chrome extension page ("chrome://extensions/") in Chrome as the last step of a local script (so I can finally reload an extension there).
Unfortunately I am failing with this. :-(
-> Python 2.7 for win 8.1 x64
import webbrowser
webbrowser.get().open("chrome://extensions/")
This with Chrome as standard browser only results in windows telling me not knowing how to handle this:
And when I call Chrome directly via...
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s").open_new_tab("chrome://extensions/"))
... or ...
import subprocess
subprocess.Popen([r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe', 'chrome://extensions/']).wait()
... or when I try to open the URL via windows run dialog ...
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "chrome://extensions/"
... it always just opens a new window with the New Tab page, while a HTTP(S) URL opens these calls correctly.
Has anyone an idea how to open this chrome-specific page?
I believe that by default accessing/passing chrome url's is disabled/sandboxed outside of chrome, but there are cli switches that can be passed to chrome that you can use to change this??
List of Chrome switches here
Extension code docs, this might help you if all you are trying to do is reload an extension. Instead of doing it through the chrome:// URI