question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rename files in tutorials?

See original GitHub issue

I have always been wondering why our tutorials are called plot_*, even though many tutorials do not produce a single plot. @hoechenberger pointed me to the reason, which is that this is just the default Sphinx naming scheme. However, we could change that (https://sphinx-gallery.github.io/stable/configuration.html#build-pattern). In fact, we only have plot_*.py files in our gallery folders, so we could easily create a rule that build all *.py files. WDYT?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
larsonercommented, Apr 13, 2021

note that we have some examples that do not contain plot_ (I think about the RSA decoding example).

These should be taken care of by my suggested _sgskip process above

Also I foresee that google will need to reindex everything. So we’ll have a lot of broken links. You can find many of my slides online and you will break on the URL they contain

It just occurred to me that I could write ~30 lines in conf.py to handle this by writing out plot_* HTML redirects for all of our examples. I think this should make Google and your slides happy, and also make it so that in the future if we want to change page locations we can trivially (in one line) add arbitrary redirects from old-to-new names.

1reaction
drammockcommented, Apr 13, 2021

The reason is long execution time. They are rendered by Sphinx from rst to html without running the py code or capturing output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Rename Files In Linux Using the Command Line
Here's how you can rename files on any Linux Distribution. ... In this tutorial, you'll learn how to rename folders in Linux. How...
Read more >
rename() Function For Renaming Files | C Programming Tutorial
How to use the rename () function to rename a file with C. Source code: https://github.com/portfoliocourses/c-example-code/blob/main/ rename.c ...
Read more >
Rename Files in Python - PYnative
In this tutorial, you will learn how to rename files and folders in Python. After reading this article, you'll learn: –.
Read more >
How to Rename File in R? Using file.rename()
How to rename a file name in R Programming? To rename a file name use file.rename() function, by using this you can rename...
Read more >
Tutorial for Renaming Files with WordPress | Meow Apps
When viewing your Media Libary in list mode, there is a “Renamer” column added to the screen. In the text field, you will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found