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
Metadata
Release files for swanintro 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swanintro-1.0.0.tar.gz | 480.4 kB | Without provenance | Details for swanintro-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swanintro-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for swanintro-1.0.0-py3-none-any.whl |
Total release size: 959.6 kB
Release files / swanintro-1.0.0.tar.gz
| Download URL | swanintro-1.0.0.tar.gz |
|---|---|
| Size | 480.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ffff81d51fb685664f4bac35ef9025d1c38a081daadb8a30db525db2d1f1c4a
|
|
BLAKE2b-256 checksum How to use checksums |
142d552fc28cb62bf6b5f13267d79f095567ae870be829928f8dab406e9b9307
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / swanintro-1.0.0-py3-none-any.whl
| Download URL | swanintro-1.0.0-py3-none-any.whl |
|---|---|
| Size | 479.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46d9c6e47323c69c4a501f9248f0aa68f284af489f5b2961989ee9009614c691
|
|
BLAKE2b-256 checksum How to use checksums |
c83e9ef4621fa690039cea9f68bd4a990f8583c8b35a78349e66faad03074f13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for swanintro 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.