Code Monkey home page Code Monkey logo

Comments (7)

lesteve avatar lesteve commented on June 1, 2024

We were planning to do something similar in the medium-term in order to allow richer text explanations inside examples. I didn't know about plot2rst and we'll definitely take a closer look and see how this is implemented. I really like the idea of using strings for the rst parts as well to be honest!

from sphinx-gallery.

Titan-C avatar Titan-C commented on June 1, 2024

@florian-wagner Would you be an early adopter of sphinx-gallery for documenting strings in examples?
PR #36 already contains this feature.

from sphinx-gallery.

florian-wagner avatar florian-wagner commented on June 1, 2024

Sure, I will try it out asap.

Am 28.06.2015 um 10:28 schrieb Óscar Nájera:

@florian-wagner https://github.com/florian-wagner Would you be an
early adopter of sphinx-gallery for documenting strings in examples?
PR #36 #36
already contains this feature.


Reply to this email directly or view it on GitHub
#33 (comment).

from sphinx-gallery.

florian-wagner avatar florian-wagner commented on June 1, 2024

@Titan-C I have a minimal working example, which does exactly what I want. I will try to adapt it for my project.

I like that long output is collapsed. In this regard, it would be nice to set the number of maximum output lines as a configuration variable and one-line outputs still have the scrollbar appearing, which can be removed.

Thanks for implementing this feature!

from sphinx-gallery.

Titan-C avatar Titan-C commented on June 1, 2024

On Monday, June 29, 2015 02:06:03 AM Florian Wagner wrote:

@Titan-C I have a minimal working example, which does exactly what I want. I
will try to adapt it for my project. Is it possible to specify the
path/name of the examples folder(s) as config variables or do they have to
be at ../examples from the doc folder?
Yes you can.
http://sphinx-gallery.readthedocs.org/en/latest/advanced_configuration.html#changing-default-directories

I like that long output is collapsed. In this regard, it would be nice to
set the number of maximum output lines as a configuration variable and
one-line outputs still have the scrollbar appearing, which can be removed.

This is completely CSS styling. so you just need to override the default
.sphx-glr-script-out pre {
overflow-y: scroll;
max-height: 30em; }

You can see how to override CSS, in our conf.py as I override the gallery
default to work nicer with the read the docs template.
I prefer to override CSS that setting configuration variables for styling.

Thanks for implementing this feature!


Reply to this email directly or view it on GitHub:
#33 (comment)
44191

from sphinx-gallery.

Titan-C avatar Titan-C commented on June 1, 2024

PR #36 has changed the syntax for the documenting strings. Now they follow a more pythonic style in which they are comments in the code and not free strings.

from sphinx-gallery.

lesteve avatar lesteve commented on June 1, 2024

Closing this one, since it has been addressed by #36.

from sphinx-gallery.

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.