GithubHelp home page GithubHelp logo

Comments (6)

mgeier avatar mgeier commented on August 30, 2024

Thanks for the report!

Does #68 work for you?

from nbsphinx.

senyai avatar senyai commented on August 30, 2024

Yes it does! I tried User Guide - Basics.ipynb and User_Guide - Basics.ipynb at the same time and the images are at right places.

from nbsphinx.

mgeier avatar mgeier commented on August 30, 2024

Thanks for testing this!

The image file name also contains the cell number and the number within the cell output (there may be several outputs per cell).

I guess if you have an image in the same cell in both of the files in your edge case, it will cease to work, right?

from nbsphinx.

senyai avatar senyai commented on August 30, 2024

You guessed it right. I didn't understood the importance of cell numbers. Luckily, people don't name files that way, so nobody will blame you for this commit.

from nbsphinx.

mgeier avatar mgeier commented on August 30, 2024

Actually, I wanted to avoid this case, but I don't know how.

I tried to use %-encoding, like it's normally done in URLs, but this didn't work for some reason. Probably it's even a bug in Sphinx, because source names that contain %AB (where A and B are any hexadecimal characters) cannot be shown in the browser because Sphinx doesn't seem to escape those % signs.

If you know a way how to avoid this edge case, speak up!

Anyway, as you say, let's hope that people don't name their files in such a strange way ...

from nbsphinx.

mgeier avatar mgeier commented on August 30, 2024

I'm actually not sure if that's a bug or a feature of Sphinx, so I created an issue there: sphinx-doc/sphinx#3097.

from nbsphinx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.