-
Notifications
You must be signed in to change notification settings - Fork 567
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
nbconvert raises NotImplementedError on Windows & Python 3.8 #1372
Comments
Or likely related to jupyter/nbclient#85, though since this is the actual application part, you might want to put the workaround here? I'm not too sure about that. |
Yup you beat me to typing that by a couple seconds! And I haven't seen any actual resolution for the async on windows issue, so work-around is the only path forward. I'll look at getting this with a couple other reported bugs into a release. |
@QuLogic I put a fix into 6.0.2 for this issue as it was done for papermill. If you're launching as a main application it should be resolved now. But if you're importing nbconvert as a library instead of executing it from the JupyterApp (usually as a CLI) you have to add the same work-around in your code's entry point, as due to the nature of the issue it's not possible for nbconvert to fix the python async problem once application code is up and running: # See https://bugs.python.org/issue37373 :(
if sys.version_info[0] == 3 and sys.version_info[1] >= 8 and sys.platform.startswith('win'):
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) |
We just shell out, so this has started working correctly on CI already. |
Should be fixed in 6.0.2 jupyter/nbconvert#1372 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Fixed in 6.0.2: jupyter/nbconvert#1372 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
That bug makes the ipynb to hmtl conversion in nbsphinx fail. The workaround is discussed in jupyter/nbconvert#1372
Sorry guys, noob question but I'm getting this exact issue on Windows 2019 running Python 3.9. How do I go about using the fixed which closed this ticket pls? I have already run
|
You're |
See for example, this matplotlib build.
This looks related to, e.g., jupyter/notebook#4613, jupyter/notebook#5047, jupyter/notebook#5094, or jupyterhub/jupyterhub#3123.
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_nbagg_01.ipynb
Nbconvert version: 6.0.1
The text was updated successfully, but these errors were encountered: