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

Monkeypatch IPythonHandler to find nbclassic's jinja templates #77

Merged
merged 3 commits into from
Oct 27, 2021

Conversation

Zsailer
Copy link
Member

@Zsailer Zsailer commented Oct 25, 2021

Fixes jupyterlab/jupyterlab#11345 and jupyterlab/jupyterlab#11350.

Because notebook (or nbclassic's) HTML templates were merged with jupyter-server's in #63 and the templates share the same name, the jupyter_server templates were getting clobbered.

This properly namespaces them by monkeypatching where IPythonHandlers pulls it's templates.

This also fixes an issue with a missing base_url in some of nbclassic's handlers.

@Zsailer Zsailer changed the title add base_url to notebook paths Monkeypatch IPythonHandler to find nbclassic's jinja templates Oct 27, 2021
@Zsailer Zsailer marked this pull request as ready for review October 27, 2021 18:05
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@blink1073 blink1073 added the bug Something isn't working label Oct 27, 2021
@blink1073 blink1073 merged commit 48ae58c into jupyter:master Oct 27, 2021
@jtpio
Copy link
Member

jtpio commented Oct 28, 2021

Nice, thanks for the fix!

aaraney pushed a commit to aaraney/nbfetch that referenced this pull request Jan 14, 2022
aaraney pushed a commit to hydroshare/nbfetch that referenced this pull request Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser check is failing
3 participants