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.0.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

jupyter_archive-2.0.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter-archive-2.0.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.7

File hashes

Hashes for jupyter-archive-2.0.0.tar.gz
Algorithm Hash digest
SHA256 cd98691698c5264125aaca4e44e059c0cb75391e9b42e29b353820d2516aecca
MD5 a93c353f11d9afa70b5d5564802254f7
BLAKE2b-256 9697f4c10025b55ca39e2101cb8b59cd3f5598d1952ff92a2ba27409b1e140b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jupyter_archive-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.7

File hashes

Hashes for jupyter_archive-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1cfa03c45e38c82d99d979ec81680cb79946d481408770f7d6de2611f8bfa26
MD5 9243a53d1891250f5452640c7a5cced2
BLAKE2b-256 d2f45cd18838dbb333dc5f5fc7dbe9af06f207ddf3da700299a78f2bf6818589

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