Skip to content

Commit

Permalink
Disable other kernels, add more examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Jul 6, 2022
1 parent dd5d20c commit da88e55
Showing 5 changed files with 30 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -31,6 +31,6 @@ clean:
rm -rf $(BUILDDIR)/*

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
$(SPHINXBUILD) -vv -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
4 changes: 3 additions & 1 deletion docs/environment.yml
Original file line number Diff line number Diff line change
@@ -20,5 +20,7 @@ dependencies:
- sphinx_rtd_theme
- pip:
- jupyterlite==0.1.0b9
- jupyterlite-sphinx
- jupyterlite-xeus-python
# Until jupyterlite-sphinx>0.4.9 is released, install from a commit hash to get the jupyterlite_contents config option
# - jupyterlite-sphinx
- https://github.com/jupyterlite/jupyterlite-sphinx/archive/944ccf4ee977627dbf75b5ae1994c08718566c76.zip
9 changes: 9 additions & 0 deletions docs/jupyter-lite.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"jupyter-lite-schema-version": 0,
"jupyter-config-data": {
"disabledExtensions": [
"@jupyterlite/javascript-kernel-extension",
"@jupyterlite/pyolite-kernel-extension"
]
}
}
15 changes: 9 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -25,13 +25,15 @@
]

jupyterlite_config = "jupyterlite_config.json"
jupyterlite_dir = "."
jupyterlite_contents = "examples"

intersphinx_mapping = {
'ipython': ('http://ipython.org/ipython-doc/dev/', None),
'nbconvert': ('https://nbconvert.readthedocs.io/en/latest/', None),
'nbformat': ('https://nbformat.readthedocs.io/en/latest/', None),
'jupyter': ('https://jupyter.readthedocs.io/en/latest/', None),
}
# intersphinx_mapping = {
# 'ipython': ('http://ipython.org/ipython-doc/dev/', None),
# 'nbconvert': ('https://nbconvert.readthedocs.io/en/latest/', None),
# 'nbformat': ('https://nbformat.readthedocs.io/en/latest/', None),
# 'jupyter': ('https://jupyter.readthedocs.io/en/latest/', None),
# }


# prolog based on https://github.com/spatialaudio/nbsphinx/blob/98005a9d6b331b7d6d14221539154df69f7ae51a/doc/conf.py#L38
@@ -89,6 +91,7 @@
'examples/Media widgets.ipynb',
'examples/Variable Inspector.ipynb',
'examples/Widget Alignment.ipynb',
'_contents'
]
pygments_style = 'sphinx'
todo_include_todos = False
9 changes: 8 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -23,9 +23,16 @@ experience.

.. todo: Add screenshot
`Try it fullscreen <lite/lab/?path=Widget%20List.ipynb>`_

.. image:: https://jupyterlite.rtfd.io/en/latest/_static/badge.svg
:target: ./lite/lab

You can try ipywidgets below, or open many other live examples in a new browser tab with
`JupyterLite <./lite/lab>`_ or `RetroLite <./lite/retro/tree>`_.

.. retrolite:: examples/Widget List.ipynb

`Try it fullscreen <lite/lab/?path=Widget%20List.ipynb>`_

Core Jupyter Widgets
--------------------

0 comments on commit da88e55

Please sign in to comment.