Gallery example "choropleth map": Use code block separator "# %%"#2805
Gallery example "choropleth map": Use code block separator "# %%"#2805
Conversation
|
perhaps we should add a check to make sure that examples must have at least one # %% separators |
If this is something that can be added easily, I feel we should add such a check, as it's likely that we'll forget adding |
Could try to find a regex statement that checks for the presence of at least one |
This one-line command can be used to detect example files that don't have |
Description of proposed changes
Related to PR #2662, this PR aims to use the code block separator
# %%in the gallery example "Choropleth map".Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash commands are:
/format: automatically format and lint the code/test-gmt-dev: run full tests on the latest GMT development version