-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
MyST-NB
, for rendering Jupyter notebooks
- Loading branch information
Showing
4 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
# https://myst-parser.readthedocs.io/en/latest/syntax/tables.html#csv-tables | ||
# https://myst-nb.readthedocs.io/en/v0.13.2/use/formatting_outputs.html#stdout-and-stderr | ||
jupytext: | ||
text_representation: | ||
extension: .md | ||
format_name: myst | ||
format_version: '0.8' | ||
jupytext_version: 1.4.2 | ||
kernelspec: | ||
display_name: Python 3 | ||
language: python | ||
name: python3 | ||
--- | ||
|
||
# Cells | ||
|
||
Widget elements that are like "editors with output". | ||
|
||
## Sphinx native | ||
|
||
:::{code} sql | ||
SELECT * FROM sometable | ||
::: | ||
:::{csv-table} | ||
:header: > | ||
: "schema_name", "table_name", "sum(num_docs)" | ||
:widths: 15, 10, 30 | ||
|
||
"doc", "taxi_january", 5929248 | ||
"doc", "taxi_january_bestcompresion", 5929248 | ||
"doc", "taxi_january_nocolumnstore_bestcompression", 5929248 | ||
"doc", "taxi_january_nocolumnstore_noindex_bestcompresion", 5929248 | ||
"doc", "taxi_january_noindex_bestcompression", 5929248 | ||
"doc", "taxi_january_nocolumnstore", 5929248 | ||
::: | ||
|
||
|
||
:::{code} bash | ||
antrl4 | ||
::: | ||
:::{code} text | ||
Downloading antlr4-4.13.2-complete.jar | ||
ANTLR tool needs Java to run; install Java JRE 11 yes/no (default yes)? yes | ||
Installed Java in /root/.jre/jdk-11.0.24+8-jre; remove that dir to uninstall | ||
ANTLR Parser Generator Version 4.13.2 | ||
::: | ||
|
||
## IPython | ||
|
||
Using [MyST-NB]. | ||
|
||
```{code-cell} ipython3 | ||
import sys | ||
print("this is some stdout") | ||
print("this is some stderr", file=sys.stderr) | ||
``` | ||
|
||
|
||
[MyST-NB]: https://myst-nb.readthedocs.io/ |
This file contains 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 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