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

Update template name changed in nbconvert development version #344

Merged
merged 2 commits into from
Nov 3, 2019

Conversation

takluyver
Copy link
Contributor

@takluyver takluyver commented Nov 2, 2019

The template name is changing in nbconvert 6 - see jupyter/nbconvert#1056 .

I don't know if you want to do a hard change like this, or detect the nbconvert version and switch the name as appropriate. But the change breaks nbconvert building its own docs. - EDIT: it now gets the default template name from nbconvert.

@takluyver
Copy link
Contributor Author

And as soon as I opened the PR, I realised that was a bad way to do it. I've redone it to get the default template name from nbconvert, which should work with old and new nbconvert. If you're happy with that, feel free to squash the commits together.

@mgeier
Copy link
Member

mgeier commented Nov 3, 2019

Thanks for the nicely backwards-compatible fix!

@takluyver takluyver deleted the template-refactor branch November 3, 2019 20:56
@takluyver
Copy link
Contributor Author

Thanks - I've made a PR for nbconvert to use the development version of nbsphinx (jupyter/nbconvert#1133). You might want to wait until nbconvert 6 is out, just in case the templates get changed again.

@takluyver
Copy link
Contributor Author

(In principle what I did should work even if the name changes again, but you never know what could happen)

matthew-brett added a commit to matthew-brett/nb2plots that referenced this pull request Jan 2, 2020
matthew-brett added a commit to matthew-brett/nb2plots that referenced this pull request Jan 2, 2020
@kandersolar kandersolar mentioned this pull request Oct 6, 2020
5 tasks
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.

2 participants