-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ipython notebook --browser= switch does not work on windows #249
Comments
What do you get from: import webbrowser
webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe") |
In An IPython session
The file IS there, however:
I realised that in my original report, I had mixed back and forward slashes in the second command so in
Doesn't work. Same error as reported originially.
|
Looking at the docs for the webbrowser module, it looks like you're supposed to pass a name like 'chrome' instead of a path: https://docs.python.org/3/library/webbrowser.html |
@mikecroucher does it work if you do |
Closing for inactivity and issue in webbrowser module anyway. |
For the sake of completeness: this can be made to work by registering Chrome in the webbrowser module first. |
Just add ''%s" or "%s --new-window" after the path, like: c.NotebookApp.browser = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s" The latter one will just make new window. It should work. |
I have Google Chrome installed on 64bit Windows 7. It is not the default browser. I do
ipython notebook --browser="C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
which gives
Same result if I do
I've tried all sorts of ways of specifying the path to the browser but none of them work. I am aware of other methods to select the browser used but feel that this method should work too.
The text was updated successfully, but these errors were encountered: