-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(backport): Use jupyterlite-sphinx to embed JupyterLite in docs (#…
- Loading branch information
1 parent
44fbb87
commit aa683bf
Showing
10 changed files
with
69 additions
and
60 deletions.
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
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 was deleted.
Oops, something went wrong.
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,8 @@ | ||
{ | ||
"jupyter-lite-schema-version": 0, | ||
"jupyter-config-data": { | ||
"enableMemoryStorage": true, | ||
"settingsStorageDrivers": ["memoryStorageDriver"], | ||
"contentsStorageDrivers": ["memoryStorageDriver"] | ||
} | ||
} |
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,27 @@ | ||
# --- | ||
# jupyter: | ||
# kernelspec: | ||
# display_name: Python (Pyodide) | ||
# language: python | ||
# name: python | ||
# --- | ||
|
||
# %% [markdown] | ||
# # `pyhf` in the browser | ||
|
||
# %% [markdown] | ||
# * To run the code, click on the first cell (gray box) and press <kbd>Shift</kbd>+<kbd>Enter</kbd> or click on the (Run) ▶ button to run each cell. | ||
# * Alternatively, from the `Run` menu select `Run All Cells`. | ||
# * Feel free to experiment, and if you need to restore the original code reload this browser page. Any changes you make will be lost when you reload. | ||
# | ||
# To get going try copying and pasting the "Hello World" example below! | ||
|
||
# %% | ||
import piplite | ||
|
||
# Install pyhf in the browser | ||
await piplite.install(["pyhf==0.7.1", "matplotlib>=3.0.0"]) | ||
# %matplotlib inline | ||
import pyhf | ||
|
||
# You can now use pyhf! |
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,3 @@ | ||
# Always pair ipynb notebooks in the current directory to py:percent files | ||
formats = ["ipynb", "py:percent"] | ||
notebook_metadata_filter = "-all,kernelspec" |
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