widget-ts-cookiecutter
A highly opinionated cookiecutter template for ipywidget extensions.
File Explorer
Download Latest Version (.zip)- build.yml
- test_instantiate.py
- testconfig.yaml
- build.yml
- widget.css
- helper.js
- index.rst
- introduction.nblink
- conf.py
- develop-install.rst
- index.rst
- installing.rst
- introduction.rst
- environment.yml
- make.bat
- Makefile
- introduction.ipynb
- index.spec.ts
- utils.ts
- extension.ts
- index.ts
- plugin.ts
- version.ts
- widget.ts
- extension.js
- __init__.py
- conftest.py
- test_example.py
- test_nbextension_path.py
- __init__.py
- _frontend.py
- _version.py
- example.py
- .coveragerc
- .eslintignore
- .eslintrc.js
- .gitignore
- .npmignore
- .prettierignore
- .prettierrc
- .yarnrc.yml
- babel.config.js
- codecov.yml
- install.json
- jest.config.js
- LICENSE.txt
- MANIFEST.in
- package.json
- pyproject.toml
- pytest.ini
- README.md
- readthedocs.yml
- setup.py
- tsconfig.eslint.json
- tsconfig.json
- webpack.config.js
- {{cookiecutter.python_package_name}}.json
- .gitignore
- cookiecutter.json
- LICENSE
- pytest.ini
- README.md
# Installation Guide
git clone https://github.com/jupyter-widgets/widget-ts-cookiecutter
Downloads the entire project code from GitHub to your computer.
cd widget-ts-cookiecutter
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Python 3 Python is required to use pip.
pip install build twine
Installs the package published on PyPI directly β no need to clone the source.
pip install cookiecutter
Installs the package published on PyPI directly β no need to clone the source.
Pulled directly from this repo's README.
3. Node.js
Easyconda create -n {{ cookiecutter.python_package_name }}-dev -c conda-forge nodejs yarn python jupyterlab
Runs the Python script (or module).
yarn test
Type this command into your terminal and run it.
yarn run build
Type this command into your terminal and run it.
yarn run watch
Type this command into your terminal and run it.
npm login
Type this command into your terminal and run it.
Pulled directly from this repo's README.
4. Python
Easypip install -e ".[test, examples]"
Installs the Python libraries listed in requirements.txt (or similar).
jupyter labextension develop --overwrite .
Type this command into your terminal and run it.
jupyter nbextension install --sys-prefix --symlink --overwrite --py <your python package name>
Runs the Python script (or module).
jupyter nbextension enable --sys-prefix --py <your python package name>
Runs the Python script (or module).
jupyter lab
Launches Jupyter in your browser so you can open and run the notebook (.ipynb) files.
Pulled directly from this repo's README.
