-
Notifications
You must be signed in to change notification settings - Fork 551
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
Upgrade nbconvert #1015
Upgrade nbconvert #1015
Conversation
for more information, see https://pre-commit.ci
accidentally removed?
now that it's a dependency of dev-requirements
eb5ec52
to
b2fed1e
Compare
this is now handled upstream
avoids super-deprecated nose
08b6195
to
5346159
Compare
6c7a227
to
2c55978
Compare
@martinRenou this mostly works now, but the lab template's font-awesome 5 is conflicting with the font-awesome 4 used on the nbviewer page, erasing the icons: Not sure if there's a simple fix for that. |
db4a3d2
to
47bfe99
Compare
47bfe99
to
3a56973
Compare
Thanks a lot for pushing on this @minrk !
In Voila we do the following, maybe that will fix the nbviewer case:
I am not sure where to add this though. I wonder if this should go directly in nbconvert. |
Replace ImportError with ModuleNotFoundError, and cleanup a number of types
One another big problem is that some notebooks completely fail. For example, IRuby from the main page:
|
@@ -138,7 +138,7 @@ Pass `-d` or `--debug` to `invoke less` to create a CSS sourcemap, useful for de | |||
|
|||
```shell | |||
$ cd <path to repo> | |||
$ python -m nbviewer --debug --no-cache | |||
$ python -m nbviewer --debug --no-cache --host=127.0.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think listening on 0.0.0.0 by default is a security problem. Well, here on macos, it present me from doing so without root access so It's ok-ish, but i'd like to fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slides are also quite broken.
For example you can compare with https://nbviewer.org/format/slides/github/astrojuanlu/talk-dataframes/blob/main/slides.ipynb
930b404
to
4545153
Compare
25492da
to
fc85656
Compare
44a7d59
to
f08008d
Compare
So there are indeed 2 reveal. One done by nbconvert, and one by nbviewer. Really this is crazy that we are embedding a full nbconvert with The new nbconverts are really backward in term of reusing the templates... |
MathJax.Hub.Rerender(Reveal.getCurrentSlide()); | ||
} | ||
var idx = Reveal.getIndices(); | ||
$('#menubar').headroom((!idx.h && !idx.v) ? 'pin' : 'unpin'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is the part we can't do without changes to nbviewer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's about as far as I we can reasonably take it in a single PR. It works, but there is still alot of work to do.
I think we should leapfrog nbconvert 6.x and go directly to 7.x, I'm going to create a 1.x branch that is the current main, and suggest main become 2.x. |
If that makes it easier, by all means! |
It's more on the communication side, there will be likely so much change between 1.x and main, that it does make sens to bump major version number. This also let us re-do a 1.x at one point if ever necessary. I've push a 1.x branch, and I'm going to merge this and keep iterating, once this is merged, main should not be considered stable as a number of notebook likely won't render yet, and reveal is still partially broken . |
Thanks a lot for pushing on this! |
Would it be possible to get another I think the latest release should fix an issue where SVG images are not displayed correctly: jupyter/nbconvert#1863. |
Revive #1003 and merge with #1014
closes #1003
closes #1014
closes #959