Skip to content
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

notebook: Print a warning (but do not abort) if no webbrowser can be found. #2010

Merged
merged 1 commit into from Jun 23, 2012

Conversation

bfroehle
Copy link
Contributor

Closes gh-2006.

@@ -569,7 +570,8 @@ def start(self):
b = lambda : browser.open("%s://%s:%i%s%s" % (proto, ip,
self.port, self.base_project_url, url),
new=2)
threading.Thread(target=b).start()
if browser:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost perfect, I'd just move this if clause above the lambda so that we don't even bother declaring b when browser is None.

@bfroehle
Copy link
Contributor Author

Sure. Force pushed an update. I avoided it before because the indentation got pretty funky.

@fperez
Copy link
Member

fperez commented Jun 23, 2012

Great, thanks. Merging now.

fperez added a commit that referenced this pull request Jun 23, 2012
notebook: Print a warning (but do not abort) if no webbrowser can be found.

Closes gh-2006.
@fperez fperez merged commit e96a127 into ipython:master Jun 23, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
notebook: Print a warning (but do not abort) if no webbrowser can be found.

Closes ipythongh-2006.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't crash when starting notebook server if runnable browser not found
2 participants