A Jupyterlab extension to make, download and extract archive files.
Project description
jupyter-archive
A Jupyterlab extension to make, download and extract archive files.
Features:
- Download selected or current folder as an archive.
- Supported formats: 'zip', 'tar.gz', 'tar.bz2' and 'tar.xz'.
- Archiving and downloading are non-blocking for Jupyter. UI can still be used.
- Archive format can be set in the JLab settings.
- Alternatively, you can choose the format in the file browser menu (the format setting needs to be set to
null
). - Decompress an archive directly in file browser.
- Notebok client extension not available. Contributions are welcome.
This extension is composed of a Python package named jupyter-archive
for the server extension and a NPM package named @hadim/jupyter-archive
for the frontend extension.
Requirements
- JupyterLab >= 3.0
Install
pip install jupyter-archive
Or
conda install -c conda-forge jupyter-archive
Uninstall
pip uninstall jupyter-archive
Or
conda remove jupyter-archive
Contributing
Development install
Note: You will need NodeJS to build the extension package.
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
# Change directory to the jupyter-archive directory
# Install package in development mode
pip install -e .
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm run build
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm run watch
# Run JupyterLab in another terminal
jupyter lab
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
By default, the jlpm run build
command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
jupyter lab build --minimize=False
License
Under BSD license. See LICENSE.
Authors
- Hadrien Mary: @hadim
- Frédéric Collonval: @fcollonval
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
File details
Details for the file jupyter-archive-3.0.0.tar.gz
.
File metadata
- Download URL: jupyter-archive-3.0.0.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 535126a0a9fd63c65eec875cb1827011d8f178594e261d40f7d4fb4c1a934ee3 |
|
MD5 | 2f1cff744b09831d5034f23a7d341104 |
|
BLAKE2b-256 | 4022c75e0f8ea19ef06ae09c1fb0b628bc53fdf2a603819eef7964f1561c4c83 |
File details
Details for the file jupyter_archive-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: jupyter_archive-3.0.0-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da606b572464a2fd1c879df78e981d5ded4f284ed095c0cbed995d9bca550f73 |
|
MD5 | ba33a05eac2928c174f09cba50f65b30 |
|
BLAKE2b-256 | d8dbce4c1e213b04e97efa784ae8ef525b67a3eb511df92dc596defe4b0815a3 |