Information popup for SWAN
Project description
SwanIntro
SWAN extension to show an information pop up to new users.
This extension is composed of a Python package named swanintro, which installs the nbextension and a NPM package named @swan-cern/swanintro
for the JupyterLab extension.
Requirements
- JupyterLab >= 2.0
Install
Note: You will need NodeJS to install the extension.
pip install swanintro
jupyter nbextension install swanintro --py
jupyter nbextension enable swanintro --py
jupyter lab build
Troubleshoot
If you are not seeing the frontend, check if it's installed:
jupyter labextension list
If it is installed, try:
jupyter lab clean
jupyter lab build
Contributing
Install
The jlpm command is JupyterLab's pinned version of
yarn that is installed with JupyterLab. You may use
yarn or npm in lieu of jlpm below.
# Clone the repo to your local environment
# Move to swanintro directory
# Install server extension
# This will also build the js code
pip install -e .
# Install and enable the nbextension
jupyter nbextension install swanintro --py --sys-prefix
jupyter nbextension enable swanintro --py --sys-prefix
# Link your development version of the extension with JupyterLab
jupyter labextension link .
# Rebuild JupyterLab after making any changes
jupyter lab build
# Rebuild Typescript source after making changes
jlpm build
# Rebuild JupyterLab after making any changes
jupyter lab build
You can watch the source directory and run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild the extension and application.
# Watch the source directory in another terminal tab
jlpm watch
# Run jupyterlab in watch mode in one terminal tab
jupyter lab --watch
Uninstall
pip uninstall swanintro
jupyter labextension uninstall @swan-cern/swanintro
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swanintro-1.0.0.tar.gz.
File metadata
- Download URL: swanintro-1.0.0.tar.gz
- Upload date:
- Size: 480.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ffff81d51fb685664f4bac35ef9025d1c38a081daadb8a30db525db2d1f1c4a
|
|
| MD5 |
6d0a09a13cfda9ad1df02833e18f7015
|
|
| BLAKE2b-256 |
142d552fc28cb62bf6b5f13267d79f095567ae870be829928f8dab406e9b9307
|
File details
Details for the file swanintro-1.0.0-py3-none-any.whl.
File metadata
- Download URL: swanintro-1.0.0-py3-none-any.whl
- Upload date:
- Size: 479.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46d9c6e47323c69c4a501f9248f0aa68f284af489f5b2961989ee9009614c691
|
|
| MD5 |
97cae203cf45148d64d61d1153d4642c
|
|
| BLAKE2b-256 |
c83e9ef4621fa690039cea9f68bd4a990f8583c8b35a78349e66faad03074f13
|