-
Notifications
You must be signed in to change notification settings - Fork 317
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
Fix missing templates by porting to nbconvert 6.* #1405
Conversation
- From jupyter#1373, thanks @gzagatti - I can't quickly find the latest version of jinja2 that requires this
- Solution from jupyter#1373, thanks to @gzagatti - I don't know how or why this works
…ml.j2 - Necessary when renaming templates
- nbconvert has changed the name of its basic.tpl to classic/index.html.j2. Found via looking into the source code.
- This seems to be about where these changes are. Could be slightly older but not too much.
Also fixes #1367. |
- Was the wrong variable name - Needed to be extended, not overwritten
I gave up on this. I got most of the problems fixed (took some work but wasn't too hard), but the feedback template has problems remaining. I will elaborate later, but at first it seems that, while nbconvert tries to preserve a backwards-compatible template, the interaction with nbgrader customizations doesn't really work properly. Before I could get there, I had to work around some problems with the nbconvert I will try to document my findings better later. We could use someone that understands the nbgrader feedback template customizations. |
Thanks for this! Please share your thoughts when you have the time to we kind think about how we could progress this. |
Here is what I remember:
If anyone wants to work on this, please do! Also feel free to fix up this PR and make it work, even if I don't have time to work on it. |
I have started trying to work on this too. So far have just fixed a few broken tests but haven't actually looked at the template stuff yet. Here are my changes for reference: https://github.com/jhamrick/nbgrader/commits/fix-nbconvert Hopefully I'll have some more time tomorrow to look at this too. |
And I should say as well, thanks so much @rkdarst for the work you've put into trying to fix it so far! Hopefully we can figure out the last bit that's needed and remove this dependency on the old version of nbconvert... |
I think I've figured this out! The missing piece was that in the new version of nbconvert, it expects a file called I'll make a new PR shortly and hopefully all the tests will still pass with that. Thanks again for all the work you put into this @rkdarst , it was hugely helpful to have as a place to start from! |
Closing as this is superseded by #1421 |
nbconvert 6.* broke nbgrader somehow. This uses hints from #1373 to fix the problem. Individual commit messages describe what is happening, but basically I change some template names and fix a variable.
Previously it was pinned to solve the problem, but a pin is eventually going to cause un-installable software when combined with other things. This is one of the banes of my daily work, so we need to do something about that.
Closes: #1373, Closes: #1382
Review: