Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
_build
*.docx
.DS_Store
19 changes: 11 additions & 8 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@

myst_enable_extensions = ["dollarmath", "amsmath"]

# Plolty support through require javascript library
# Plotly: ensure plotly plots render on GitHub Pages
# import os
# os.environ["PLOTLY_RENDERER"] = "notebook"

# https://myst-nb.readthedocs.io/en/latest/render/interactive.html#plotly
html_js_files = [
"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"
]
# Maybe still needed for older plotly versions
# html_js_files = [
# # "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"
# ]

# https://myst-nb.readthedocs.io/en/latest/configuration.html
# Execution
Expand All @@ -59,10 +63,9 @@
nb_merge_streams = True

# https://myst-nb.readthedocs.io/en/latest/authoring/custom-formats.html#write-custom-formats
nb_custom_formats = {
".py": ["jupytext.reads", {"fmt": "py:percent"}]
}

# nb_custom_formats = {
# ".py": ["jupytext.reads", {"fmt": "py:percent"}]
# }

# -- Options for HTML output -------------------------------------------------

Expand Down
Loading