-
Notifications
You must be signed in to change notification settings - Fork 132
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
WARNING: Pygments lexer name 'ipython3' is not known #24
Comments
Hmm, for me this has always worked; the lexer should be part of the "IPython" package: http://ipython.readthedocs.org/en/stable/development/lexer.html. Can you try to re-install this package?
Yes, Sphinx searches the whole source directory (including subfolders) for notebook files and parses all of them, regardless of what's in your exclude_patterns = ['_build', '**.ipynb_checkpoints'] |
I had to add Adding Thanks! |
Good to know that you found a solution that works for you! But still, IMHO the |
FWIW: I'm also hitting this same warning when building the documentation of the the The fix proposed by @ostrokach :
also worked for me, warnings are gone. Thanks! |
The advise of
is not in the installation instructions yet, should it be added? I also receive this warning /Users/klay6683/Dropbox/src/pyciss/docs/examples.ipynb:: WARNING: Pygments lexer name 'ipython3' is not known multiple times for a single almost empty notebook and adding the above extension removed (masked?) that warning. |
@michaelaye If you get the warning even if you have the Adding the We can add a hint regarding the work-around to the docs (feel free to make a PR!), but it would be also very good to find the actual cause for the problem (and solve it). |
I'm getting the same warnings. I set up a fresh conda environment, installed all packages as described in http://nbsphinx.readthedocs.io/en/0.2.12/usage.html What do you mean by "a bug in its installation procedure"? |
expected behavior:
your observed behavior:
Therefore, I suspect there is a bug somewhere. For me, on Linux/Debian shows the expected behavior. |
So the reason might be a buggy Anaconda package: ContinuumIO/anaconda-issues#1430 |
Discussion of issue: spatialaudio/nbsphinx#24 (comment) Root cause: ContinuumIO/anaconda-issues#1430
Discussion of issue: spatialaudio/nbsphinx#24 (comment) Root cause: ContinuumIO/anaconda-issues#1430
* eliminate warning in getting_started.rst * all warnings are errors * use anonymous links instead of named links * fix indentation of list item * fix a variety of list item syntax issues * remove illegal excess indentation * several list item syntax fixes * variety of list item fixes and a link fix * remove extraneous character from string [] docs * favicons must end in ico * work around a bug in conda Discussion of issue: spatialaudio/nbsphinx#24 (comment) Root cause: ContinuumIO/anaconda-issues#1430 * fix link to tutorial * fix broken links * remove broken link to sample * remove more broken links to sample * remove references to sec-objects * fix bad reference syntax * two small fixes 1. Remove reference to sample 2. Move ico to correct directory * remove unnecessary html_extra_path entry * fix doctest skip syntax
…1691) * eliminate warning in getting_started.rst * all warnings are errors * use anonymous links instead of named links * fix indentation of list item * fix a variety of list item syntax issues * remove illegal excess indentation * several list item syntax fixes * variety of list item fixes and a link fix * remove extraneous character from string [] docs * favicons must end in ico * work around a bug in conda Discussion of issue: spatialaudio/nbsphinx#24 (comment) Root cause: ContinuumIO/anaconda-issues#1430 * fix link to tutorial * fix broken links * remove broken link to sample * remove more broken links to sample * remove references to sec-objects * fix bad reference syntax * two small fixes 1. Remove reference to sample 2. Move ico to correct directory * remove unnecessary html_extra_path entry * initial attempt * add missing file * improve hailType blurb * further improvements from tpoterba * Update hailType.rst * sphinx lists must not have leading space This triggers an error message: Error in "include" directive: no content permitted. because the one-space-indented text is assumed to be an argument to the `.. include` directive Also fix location of hailType.rst * use anonymous links instead of named links * simplify docs
* eliminate warning in getting_started.rst * all warnings are errors * use anonymous links instead of named links * fix indentation of list item * fix a variety of list item syntax issues * remove illegal excess indentation * several list item syntax fixes * variety of list item fixes and a link fix * remove extraneous character from string [] docs * favicons must end in ico * work around a bug in conda Discussion of issue: spatialaudio/nbsphinx#24 (comment) Root cause: ContinuumIO/anaconda-issues#1430 * fix link to tutorial * fix broken links * remove broken link to sample * remove more broken links to sample * remove references to sec-objects * fix bad reference syntax * two small fixes 1. Remove reference to sample 2. Move ico to correct directory * remove unnecessary html_extra_path entry * fix doctest skip syntax
…ail-is#1691) * eliminate warning in getting_started.rst * all warnings are errors * use anonymous links instead of named links * fix indentation of list item * fix a variety of list item syntax issues * remove illegal excess indentation * several list item syntax fixes * variety of list item fixes and a link fix * remove extraneous character from string [] docs * favicons must end in ico * work around a bug in conda Discussion of issue: spatialaudio/nbsphinx#24 (comment) Root cause: ContinuumIO/anaconda-issues#1430 * fix link to tutorial * fix broken links * remove broken link to sample * remove more broken links to sample * remove references to sec-objects * fix bad reference syntax * two small fixes 1. Remove reference to sample 2. Move ico to correct directory * remove unnecessary html_extra_path entry * initial attempt * add missing file * improve hailType blurb * further improvements from tpoterba * Update hailType.rst * sphinx lists must not have leading space This triggers an error message: Error in "include" directive: no content permitted. because the one-space-indented text is assumed to be an argument to the `.. include` directive Also fix location of hailType.rst * use anonymous links instead of named links * simplify docs
Examples built from Jupyter notebooks use ipython3 in RST code blocks. This means ipython must be installed for sphinx (particularly pygments) to pick up the correct lexer. See spatialaudio/nbsphinx#24
Examples built from Jupyter notebooks use ipython3 in RST code blocks. This means ipython must be installed for sphinx (particularly pygments) to pick up the correct lexer. See spatialaudio/nbsphinx#24
The issue described in spatialaudio/nbsphinx#24 seems to be resolved by ContinuumIO/anaconda-issues#1430
If you have widgets, you somehow have to provide the appropriate JavaScript files, which is done automatically if If none of your notebooks has any widgets but the warning is still shown, please let me know, because that may be a bug. And yes, if you want to have code highlighting in code cells, you'll have to install IPython, see https://nbsphinx.readthedocs.io/en/0.8.9/installation.html#Pygments-Lexer-for-Syntax-Highlighting. |
To address: ``` ConvertNumPyArrayToitkImage.ipynb:: WARNING: Pygments lexer name 'ipython3' is not known ``` per: - spatialaudio/nbsphinx#24 Also install ipywidgets for general use in the Superbuild.
To address: ``` ConvertNumPyArrayToitkImage.ipynb:: WARNING: Pygments lexer name 'ipython3' is not known ``` per: - spatialaudio/nbsphinx#24 Also install ipywidgets for general use in the Superbuild.
Hello, I have the same issue as @adamjstewart and my code highlight in the jupyter pages doesn't work and it broke a few days or weeks ago. |
A new issue appeared very recently, see #687. |
See spatialaudio/nbsphinx#24 and references/citations therein
It appears that this is necessary for Pygments' syntax highlighting to work with the executed notebooks: spatialaudio/nbsphinx#24
Also modified conf.py to fix ipython3 highlight issue spatialaudio/nbsphinx#24
It appears that this is necessary for Pygments' syntax highlighting to work with the executed notebooks: spatialaudio/nbsphinx#24
I get thousands of warnings:
when I run
make html
after adding'nbsphinx'
toextensions
.This happens even with an empty
index.rst
file (it seems to find my.ipynb_checkpoints
folder).The text was updated successfully, but these errors were encountered: