You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use "# %%" as code block separators in gallery examples #2660
For gallery examples, it usually makes sense to split a long script into multiple blocks using block separators. The Sphinx-Gallery package supports three different "block separators/splitters"
more than 20 # characters, i.e., ###################################################
Activity
weiji14 commentedon Sep 6, 2023
Agree to use this 'percent' format, which was introduced by Spyder in 2013 according to https://jupytext.readthedocs.io/en/latest/formats-scripts.html#the-percent-format. For reference, the 3 different types of separators for code blocks in Sphinx Gallery is documented at https://sphinx-gallery.github.io/stable/tutorials/plot_parse.html#alternating-text-and-code.