Skip to content

Commit

Permalink
Add files for JupyterLite (#118)
Browse files Browse the repository at this point in the history
* Add files for JupyterLite

* Update jupyterlite_contents

* use rtd jobs

* update author

* try without explicit config

* add piplite-urls

* update config

* try with the ipywidgets wheel

* install ipylab in notebooks

* update README.md

* lint
  • Loading branch information
jtpio authored Mar 30, 2023
1 parent 2b86b6e commit 2de9db4
Show file tree
Hide file tree
Showing 21 changed files with 104 additions and 353 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
dist
docs
coverage
**/*.d.ts
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
**/lib
**/package.json
ipylab/labextension
docs
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ipylab

![Github Actions Status](https://github.com/jtpio/ipylab/workflows/Build/badge.svg)
[![JupyterLite](https://jupyterlite.rtfd.io/en/latest/_static/badge-launch.svg)](https://ipylab.readthedocs.io/en/latest/lite/lab)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jtpio/ipylab/main?urlpath=lab/tree/examples/widgets.ipynb)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/ipylab.svg)](https://anaconda.org/conda-forge/ipylab)
[![pypi](https://img.shields.io/pypi/v/ipylab.svg)](https://pypi.python.org/pypi/ipylab)
Expand All @@ -22,6 +23,10 @@ Try it in your browser with Binder:

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jtpio/ipylab/main?urlpath=lab/tree/examples/widgets.ipynb)

Or with [JupyterLite](https://github.com/jupyterlite/jupyterlite):

[![JupyterLite](https://jupyterlite.rtfd.io/en/latest/_static/badge-launch.svg)](https://ipylab.readthedocs.io/en/latest/lite/lab)

## Examples

### Add Jupyter Widgets to the JupyterLab interface
Expand Down
21 changes: 21 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
extensions = ["myst_parser", "jupyterlite_sphinx"]

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

master_doc = "index"
source_suffix = ".md"

# General information about the project.
project = "ipylab"
author = "ipylab contributors"

exclude_patterns = []
highlight_language = "python"
pygments_style = "sphinx"

html_theme = "pydata_sphinx_theme"
html_static_path = ["_static"]

html_css_files = ["custom.css"]
24 changes: 15 additions & 9 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@

name: ipylab_docs
name: ipylab-lite
channels:
- conda-forge
- conda-forge
dependencies:
- python=3.9
- nodejs
- numpy
- sphinx
- nbsphinx
- jupyter_sphinx
- build
- python=3.11
- mamba
- pydata-sphinx-theme
- myst-parser
- ipywidgets>=8.0,<9
- jupyterlab>=3.5.0,<4
- nodejs=18
- pip:
- jupyterlite-sphinx
- jupyterlite-core==0.1.0b22
- jupyterlite-pyodide-kernel==0.0.5
- ..
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```{include} ../README.md
```
8 changes: 8 additions & 0 deletions docs/jupyter_lite_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"PipliteAddon": {
"piplite_urls": [
"../dist",
"https://files.pythonhosted.org/packages/py3/i/ipywidgets/ipywidgets-8.0.4-py3-none-any.whl"
]
}
}
5 changes: 0 additions & 5 deletions docs/source/_static/helper.js

This file was deleted.

194 changes: 0 additions & 194 deletions docs/source/conf.py

This file was deleted.

31 changes: 0 additions & 31 deletions docs/source/develop-install.rst

This file was deleted.

18 changes: 0 additions & 18 deletions docs/source/examples/index.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/source/examples/introduction.nblink

This file was deleted.

49 changes: 0 additions & 49 deletions docs/source/index.rst

This file was deleted.

Loading

0 comments on commit 2de9db4

Please sign in to comment.