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

PR: Display page in external browser when link in notebook is clicked #351

Merged
merged 1 commit into from
Jan 12, 2021

Conversation

jitseniesen
Copy link
Member

When the user clicks on a link in a notebook, the NotebookWidget calls createWindow() in order to open a new tab to display the link. This commit intercepts the call and creates a WebViewInBrowser object. When the URL in that object is set, the link is opened in an external web browser.

Fixes #185

…cked

When the user clicks on a link in a notebook, the NotebookWidget calls
createWindow() in order to open a new tab to display the link. This commit
intercepts the call and creates a WebViewInBrowser object. When the URL in
that object is set, the link is opened in an external web browser.
@jitseniesen jitseniesen added this to the v0.3.2 milestone Jan 9, 2021
@codecov-io
Copy link

Codecov Report

Merging #351 (2897f79) into master (37be02a) will decrease coverage by 0.01%.
The diff coverage is 87.50%.

Impacted Files Coverage Δ
spyder_notebook/widgets/client.py 74.13% <87.50%> (+1.01%) ⬆️

@jitseniesen jitseniesen merged commit 609102b into spyder-ide:master Jan 12, 2021
@jitseniesen jitseniesen deleted the external-browser branch January 12, 2021 10:04
@mmagnuski
Copy link

🎉

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

Successfully merging this pull request may close these issues.

opening links from spyder-notebook opens the notebook in browser asking for token
3 participants