question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to generate a standalone html from a notebook

See original GitHub issue

Describe the bug

Jupyter-Book cannot build a standalone page.

To Reproduce

Steps to reproduce the behavior:

  1. Generate a jupyter notebook;
  2. 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:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
raphaeltimbocommented, Jan 22, 2021

Hi there @emdupre ! I have tried the command, but it returned an error:

$ jupyter-book build --builder singlehtml /home/raphael/Untitled1.ipynb
Usage: jupyter-book build [OPTIONS] PATH_SOURCE
Try 'jupyter-book build -h' for help.

Error: Invalid value for '--builder': invalid choice: singlehtml. (choose from html, dirhtml, pdfhtml, latex, pdflatex, linkcheck, custom)

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.

0reactions
choldgrafcommented, Jan 22, 2021

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 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 ways to export Jupyter Notebook to HTML - MLJAR
1. Download Jupyter Notebook as HTML · 2. Convert Jupyter Notebook to HTML with nbconvert · 3. Make interactive HTML from Notebook with...
Read more >
How to export standalone (HTML) Jupyter notebook with TOC ...
Note: To export the notebooks I am using the jupyter nbconvert --to html_ch Untitled. ipynb for collapsible headings and jupyter nbconvert --to ...
Read more >
Saving Bokeh Server Instance as Standalone Interactive ...
I'm in a project that uses many Graphical libraries in a python notebook. ... Standalone HTML output has no connection ever or at...
Read more >
Getting started with plotly in Python
This package contains everything you need to write figures to standalone HTML files. Note: No internet connection, account, or payment is required to...
Read more >
1. Creating Your First Page - Creating a Website - O'Reilly
For example, one common problem is having your document appear in the web browser without formatting and with all the HTML tags showing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found