jupyter_sphinx_continue_linenos ignores jupyter_sphinx_linenos setting
See original GitHub issueSetting the following in conf.py
results in line numbers appearing even though jupyter_sphinx_linenos
is explicitly False
.
jupyter_sphinx_linenos = False
jupyter_sphinx_continue_linenos = True
Seems like it’s caused by this line in execute.py
:
if linenos_config or continue_linenos or node["linenos"]:
source["linenos"] = True
Maybe it should be the following?
if linenos_config or node["linenos"]:
source["linenos"] = True
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
How to use Jupyter notebooks in Sphinx - Read the Docs
JupyterLab provides a “Save Widget State Automatically” option in the “Settings” menu. You need to leave it checked so that widget state is...
Read more >How Jupyter Book and Sphinx relate to one another
Jupyter Book utilizes Sphinx heavily under the hood. ... You can see the Sphinx configuration file that Jupyter Book uses by running the...
Read more >Jupyter notebook does not rendered with sphinx
I am using sphinx to document a python project. ... I have a problem about how to render jupyter notebook. ... In config.py...
Read more >sphinx_extensions — Quantify-Core documentation
A sphinx extension that converts python Jupyter notebook scripts .rst.py ... to produce rst files that are ignored by sphinx and can be...
Read more >Welcome to Sphinx-Gallery's documentation! — Sphinx ...
Sphinx -Gallery is a Sphinx extension that builds an HTML gallery of examples from any set of Python scripts. A demo of a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@akhmerov seems that #113 closes this issue, but was not auto-closed because the commit message format was not recognized by GitHub.
I’m going to close now; if I am wrong please re-open.
Actually @akhmerov never mind. It looks like Sphinx does it relative to the first line as well, so we can hold off on that.