Comments (7)
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.
@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.
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.
@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.
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-directoriesI 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.
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.
Closing this one, since it has been addressed by #36.
from sphinx-gallery.
Related Issues (20)
- Thumbnail generation is not working for plotly plots HOT 1
- ENH: remove file calling mini-gallery from mini-gallery
- Support for async code
- Missing full stop in download note.
- FEA Integrate download links and binder/juputerlite buttons with `pydata-sphinx-theme` secondary sidebar HOT 2
- `minigallery` with multiple files: deduplicate and should not start new rows HOT 5
- How many sublevels are supported? HOT 10
- Sub-folder gallery TOC header missing in PST theme HOT 6
- Get access to comment-based configuration in the scraper HOT 3
- Scrapper for Sympy output HOT 6
- Ease running on just one file HOT 3
- Feature: Per-code-block options HOT 7
- Build error for epub HOT 5
- Allow configuration of sort orders in a way that does not mess with the sphinx cache HOT 4
- alternative to `! pip install ...` to update env HOT 3
- ENH: Allow a plain list as subsection_order configuration HOT 8
- WARNING: duplicate label computation times, other instance in ... HOT 3
- Adding a ipynb into existing sphinx-gallery HOT 1
- Unique Plotly IDs
- `minigallery` does not look at `.examples.new` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sphinx-gallery.