Skip to main content

A Jupyter/Jupyterlab extension to make, download and extract archive files.

Project description

jupyter-archive

Binder Build Status Version PyPI Conda (channel only)

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.

jupyter-archive in action

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

Release a new version

  • Install rever and twine: conda install rever twine
  • Run: rever <VERSION>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-archive-2.2.0.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

jupyter_archive-2.2.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-archive-2.2.0.tar.gz.

File metadata

  • Download URL: jupyter-archive-2.2.0.tar.gz
  • Upload date:
  • Size: 25.6 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

Hashes for jupyter-archive-2.2.0.tar.gz
Algorithm Hash digest
SHA256 098f2fa49b12840cbd73871d8f5223a4c6959d02e03728d9d96fa5d40f1d98e8
MD5 b059ac84f9439ff1432039a5728ef0d1
BLAKE2b-256 46dfcf47dd7538e72f83a3d234fab8f0f16ca3be850439ee3f1300e12737d785

See more details on using hashes here.

File details

Details for the file jupyter_archive-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: jupyter_archive-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 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

Hashes for jupyter_archive-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19ef9190da46290b8921bd2efdbaae6c7db8efd80e0f1dbabad9bf85a07bc392
MD5 67c6a1b0947abd52917e848a4beb3355
BLAKE2b-256 946566418a7c2e6a7111add3cd501e9689a88ee9bcb2fc6f3fbe69f8e94b7c8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page