Not able to generate a standalone html from a notebook
See original GitHub issueDescribe the bug
Jupyter-Book cannot build a standalone page.
To Reproduce
Steps to reproduce the behavior:
- Generate a jupyter notebook;
- Run
jupyter-book build notebook.ipynb
;
Expected behavior
Jupyter-book should generate a standalone html page, instead it freezes here:
$ jupyter-book build Untitled1.ipynb
Running Jupyter-Book v0.9.1
Source Folder: /home/raphael
Config Path: None
Output Path: /home/raphael/_build/_page/Untitled1/html
Running Sphinx v3.2.1
Environment
-
Python Version [e.g. 3.7.1]: 3.7.9
-
Package versions or output of
jupyter-book --version
: Jupyter Book: 0.9.1 MyST-NB: 0.10.2 Sphinx Book Theme: 0.0.39 MyST-Parser: 0.12.10 Jupyter-Cache: 0.4.2 NbClient: 0.5.1 -
Operating System: Ubuntu 20.04 and Windows 10.
Additional context
I can use jupyter-book for a ‘complete’ project, everything works fine in this case.
The problem only happens when trying to build a standalone page.
I have also tried to run with $ jupyter-book build -W -n -vvv --keep-going Untitled1.ipynb
, the output is in the jblog.txt file.
jblog.txt
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Hi there @emdupre ! I have tried the command, but it returned an error:
I have left the build running here and after a long time it produced this log: sphinx-err-qd5hij84.log
At the end it has this message:
jupyter_client.kernelspec.NoSuchKernel: No such kernel named conda-env-rs-py
I think that maybe something in my conda env could cause this (maybe nb_conda_kernels), so I am going to try on a clean env.ahhh - this feels like it is related to the fact that
conda
tends to create lots of custom kernels. Maybe the kernel used to execute the book isn’t the same as the kernel embedded in the notebooks themselves.This feels related to https://github.com/executablebooks/meta/discussions/222 as well 🤔