-
Notifications
You must be signed in to change notification settings - Fork 235
Use "# %%" as code block separators in examples #2662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
b0c847b
Update code block separator in example 'timestamp.py'
yvonnefroehlich f8967c3
Update code block separator in example 'rgb_image.py'
yvonnefroehlich 95f4b64
Update code block separator in example 'quoted_lines.py'
yvonnefroehlich 52ceba7
Update code block separator in example 'country_polygons.py'
yvonnefroehlich 216b25a
Update code block separator in example 'tilemaps.py'
yvonnefroehlich ff4405a
Update code block separator in example 'multi_parameter_symbols.py'
yvonnefroehlich 0ddc58a
Update code block separator in intro '01_first_figure.py'
yvonnefroehlich 4cf0c8e
Update code block separator in intro '02_contour_map.py'
yvonnefroehlich 2a3e9b0
Update code block separator in tutorial 'coastlines.py'
yvonnefroehlich 22ce481
Update code block separator in tutorial 'frames.py'
yvonnefroehlich b97760c
Update code block separator in tutorial 'lines.py'
yvonnefroehlich a20980f
Update code block separator in tutorial 'plot.py'
yvonnefroehlich 0dee6d9
Update code block separator in tutorial 'regions.py'
yvonnefroehlich 56e1f91
Update code block separator in tutorial 'text.py'
yvonnefroehlich b09e0fd
Update code block separator in tutorial 'insets.py'
yvonnefroehlich b6c1e3a
Update code block separator in tutorial 'vectors.py'
yvonnefroehlich 9e98491
Update code block separator in tutorial 'cartesian_histograms.py'
yvonnefroehlich 03fbd7e
Update code block separator in tutorial 'working_with_panel.py'
yvonnefroehlich af43904
Update code block separator in tutorial 'date_time_charts.py'
yvonnefroehlich a366801
Update code block separator in tutorial 'contour_map.py'
yvonnefroehlich 1818644
Update code block separator in tutorial '3d_perspective_image.py'
yvonnefroehlich bc1991e
Update code block separator in tutorial 'earth_relief.py'
yvonnefroehlich d33671b
Update code block separator in tutorial 'configuration.py'
yvonnefroehlich 39d9d75
Update code block separator in tutorial 'grid_equalization.py'
yvonnefroehlich c11feb2
Update code block separator in tutorial 'subplots.py'
yvonnefroehlich 4544663
Use two empty lines before subsections
yvonnefroehlich 4f694ac
[format-command] fixes
actions-bot c06f8ef
Merge branch 'main' into update-codeblock-separators
yvonnefroehlich b9452cf
Use '# %%' also at the beginning of the code
yvonnefroehlich 0979bcd
Use '# %%' also at the beginning of the code for the projections
yvonnefroehlich 91b1f0d
Update code block separator in 'contry_polygons.py' and 'frames.py'
yvonnefroehlich f0d719d
Merge branch 'main' into update-codeblock-separators
yvonnefroehlich 3b7fa73
[format-command] fixes
actions-bot f263161
Merge branch 'main' into update-codeblock-separators
yvonnefroehlich d375ec5
Use 'correct' order in case 'sphinx_gallery_thumbnail_number' is used
yvonnefroehlich c2bf93e
Remove blank line
yvonnefroehlich ed85e0a
Add blank lines
yvonnefroehlich 2a9c466
Move 'sphinx_gallery_thumbnail_number' to the end of the script
yvonnefroehlich d3d5b3b
Move 'sphinx_gallery_thumbnail_number' to the end of the script in ga…
yvonnefroehlich d24a45c
Move 'sphinx_gallery_thumbnail_number' to the end of the script in ga…
yvonnefroehlich de695a1
Update codeblock separator in 'azim' projections
yvonnefroehlich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
| the vertical exaggeration factor. | ||
| """ | ||
|
|
||
| # %% | ||
| import pandas as pd | ||
| import pygmt | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ | |
| sample dataset via ``cmap=True``. | ||
| """ | ||
|
|
||
| # %% | ||
| import pygmt | ||
|
|
||
| fig = pygmt.Figure() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| selected via the ``histtype`` parameter. | ||
| """ | ||
|
|
||
| # %% | ||
| import numpy as np | ||
| import pygmt | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| histograms. | ||
| """ | ||
|
|
||
| # %% | ||
| import pygmt | ||
|
|
||
| # Load sample compilation of fracture lengths and azimuth as | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
| :meth:`pygmt.Figure.shift_origin`. | ||
| """ | ||
|
|
||
| # %% | ||
| import numpy as np | ||
| import pygmt | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
| value of -2000 m via the ``below`` parameter. | ||
| """ | ||
|
|
||
| # %% | ||
| import pygmt | ||
|
|
||
| fig = pygmt.Figure() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
| direction and altitude. | ||
| """ | ||
|
|
||
| # %% | ||
| import pygmt | ||
|
|
||
| # Define region of interest around Yosemite valley | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| the ``maskvalues`` parameter. | ||
| """ | ||
|
|
||
| # %% | ||
| import pygmt | ||
|
|
||
| fig = pygmt.Figure() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ | |
| :doc:`Line fronts example </gallery/lines/linefronts>`. | ||
| """ | ||
|
|
||
|
|
||
| # %% | ||
| import numpy as np | ||
| import pygmt | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ | |
| ``unit=True`` allows to set the unit for *p* to km. | ||
| """ | ||
|
|
||
| # %% | ||
| import pygmt | ||
|
|
||
| fig = pygmt.Figure() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ | |
|
|
||
| """ | ||
|
|
||
| # %% | ||
| import numpy as np | ||
| import pygmt | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ | |
| :doc:`Line styles example </gallery/lines/linestyles>`. | ||
| """ | ||
|
|
||
| # %% | ||
| import numpy as np | ||
| import pygmt | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ | |
|
|
||
| """ | ||
|
|
||
| # %% | ||
| import numpy as np | ||
| import pygmt | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ | |
|
|
||
| """ | ||
|
|
||
| # %% | ||
| import pygmt | ||
|
|
||
| fig = pygmt.Figure() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ | |
| parameters. | ||
| """ | ||
|
|
||
| # %% | ||
| import numpy as np | ||
| import pygmt | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.