Skip to content

Maplotlib figures do not render #9

Closed

Description

@par2

After building, it seems my plots for matplotlib are not rendering. In place of the images are paths to files in the doctrees folder, e.g:

_build%5Cdoctrees%5Cnbsphinx%5Cshowcase_121_1.png

Those images do exist at these paths, but are not being rendered somehow make html. The errors says these files are not readable, which is odd since they are generated from the notebook. Any thoughts?

Activity

  1. par2 commented on Jan 16, 2016

    @par2
    ContributorAuthor

    UPDATE: It appears the mpl output cells do render on readthedocs. They do not render locally.

  2. mgeier commented on Jan 16, 2016

    @mgeier
    Member

    This problem only seems to occur on Windows (or it may be related to changes between Sphinx version 1.3.3 and 1.3.4) , see #6.

    What OS, what Sphinx version are you using?

  3. mgeier commented on Jan 16, 2016

    @mgeier
    Member

    I just saw that '%5C' means '\', so I assume it's a Windows problem.
    I'm trying to find a way to avoid this ...

  4. added a commit that references this issue on Jan 16, 2016
    96f8787
  5. mgeier commented on Jan 16, 2016

    @mgeier
    Member

    Can you please check if #10 fixes your problem?

  6. par2 commented on Jan 17, 2016

    @par2
    ContributorAuthor

    I wasn't sure how to check this properly, but I went ahead and edited nbsphinx.py in site packages. Looks like it resolved the issue. Images now render locally. Thanks. I think you can close this issue.

    P.S. This is an awesome extension. I love only having to edit notebooks rather than semi-manually convert, move and delete rst files..

  7. mgeier commented on Jan 17, 2016

    @mgeier
    Member

    Thanks for testing!

    I added an explanation how to properly check out and install different Git branches: https://github.com/spatialaudio/nbsphinx/blob/master/CONTRIBUTING.rst
    Please let me know if this is helpful to you.

    Thanks for the praise, I'm looking forward to further bug reports and suggestions!

  8. added a commit that references this issue on Feb 3, 2019
    2fe6e6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions