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.

jupyter_sphinx_continue_linenos ignores jupyter_sphinx_linenos setting

See original GitHub issue

Setting 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:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jbwestoncommented, Apr 28, 2020

@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.

0reactions
seanpuecommented, Apr 20, 2020

Actually @akhmerov never mind. It looks like Sphinx does it relative to the first line as well, so we can hold off on that.

Read more comments on GitHub >

github_iconTop 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 >

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