-
Notifications
You must be signed in to change notification settings - Fork 225
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
Add sphinx extension myst-nb to enable writing executable Markdown notebooks #3379
Changes from 5 commits
d0059c9
fba97ba
48951ba
c7324b1
a30f2ce
c9a8e90
90bb110
609d759
7a38068
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,7 @@ jobs: | |
build | ||
make | ||
pip | ||
myst-parser | ||
myst-nb | ||
panel | ||
sphinx | ||
sphinx-autodoc-typehints | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
--- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add metadata at the top so that myst-nb can recognize it as a MyST notebook. |
||
file_format: mystnb | ||
--- | ||
|
||
# Installing | ||
|
||
## Quickstart | ||
|
@@ -233,7 +237,11 @@ from Python. | |
To ensure that PyGMT and its dependencies are installed correctly, run the following | ||
in your Python interpreter: | ||
|
||
```python | ||
```{code-cell} ipython | ||
--- | ||
tags: [remove-stdout] | ||
--- | ||
|
||
import pygmt | ||
pygmt.show_versions() | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Would it be nicer to actually show the output of
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Readthedocs is showing the PyGMT version as |
||
|
@@ -242,7 +250,6 @@ fig.coast(projection="N15c", region="g", frame=True, land="tan", water="lightblu | |
fig.text(position="MC", text="PyGMT", font="80p,Helvetica-Bold,red@75") | ||
fig.show() | ||
``` | ||
![pygmt-get-started](https://github.com/GenericMappingTools/pygmt/assets/3974108/f7f51484-8640-4b58-ae5b-6c71e7150f7a){.align-center width="70%"} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to include the external image. |
||
|
||
You should see a global map with land and water masses colored in tan and lightblue | ||
respectively. On top, there should be the semi-transparent text "PyGMT". If the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these be more specific to point to a specific folder instead of using
**
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 90bb110.