A Jupyter/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.
Prerequisites
- JupyterLab >=2.0.0,<3.0.0
Installation
Using pip
:
pip install jupyter-archive
jupyter lab build
Using conda
:
conda install -c conda-forge nodejs jupyter-archive
jupyter lab build
This will install both the server extension and the Jupyterlab extension needed by the plugin.
You can also install the labextension via Jupyterlab's extension manager GUI. Keep in mind that if you use the GUI, you'll still need to install the jupyter-archive
server extension via pip
or conda
.
Development
Install dependencies with conda:
conda env update -f environment.yml
For a development install (requires npm version 4 or later), do the following in the repository directory:
jlpm
jlpm build
jupyter labextension link .
# Install the server extension
pip install -e .
jupyter serverextension enable --py jupyter_archive
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 --no-browser --NotebookApp.token=''
Test the server extension:
pytest -v jupyter_archive/tests/
License
Under BSD license. See LICENSE.
Authors
- Hadrien Mary: @hadim
- Frédéric Collonval: @fcollonval
Release a new version
- Install rever and twine:
conda install rever twine
- Run:
rever <VERSION>
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-2.3.1.tar.gz
.
File metadata
- Download URL: jupyter-archive-2.3.1.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e968e32e41a272ece20fff3548808ae91a7f66743ce8cfa06aadd5dbe4975865 |
|
MD5 | 1135067e9d3913df3f9a1eff63bb8048 |
|
BLAKE2b-256 | 38bd28e0465e453bfcb13b4e6d9f3e794db2919812696ace37e538130873d736 |
File details
Details for the file jupyter_archive-2.3.1-py3-none-any.whl
.
File metadata
- Download URL: jupyter_archive-2.3.1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13ce3414807c0bf9f65aecbe50d0131d6889a8cfdc61869595056cfb8292b2e8 |
|
MD5 | 48be8d5481e2a630003fe2582be0438a |
|
BLAKE2b-256 | 530bc7e47d6067931ae9446785114e78ab6860b8e793d16dcac130fff18a206a |