Skip to main content

A JupyterLab extension for downloading, uploading, editing, and syncing your HydroShare resources without leaving Jupyter.

Project description

HydroShare on Jupyter

HydroShare on Jupyter brings HydroShare resource management to JupyterLab's development environment. Download, edit, upload, and synchronize your HydroShare resources without leaving Jupyter! Collaborate, iterate, and stay up to date with HydroShare on Jupyter.

Installation

In accordance with the python community, we support and advise the usage of virtual environments in any workflow using python. In the following installation guide, we use python's built-in venv module to create a virtual environment in which the tools will be installed. Note this is just personal preference, any python virtual environment manager should work just fine (conda, pipenv, etc. ).

# Create and activate python environment, requires python >= 3.7
python3 -m venv venv
source venv/bin/activate
python3 -m pip install --upgrade pip

# Install
python3 -m pip install hydroshare_on_jupyter

# Link extension to JupyterLab
python3 -m hydroshare_on_jupyter configure

# Launch JupyterLab and start collaborating!
python3 -m jupyter lab

Configuration

HydroShare on Jupyter looks for configuration information in environment variables first, then at the following path locations:

  1. ~/.config/hydroshare_on_jupyter/config
  2. ~/.hydroshare_on_jupyter_config

The first configuration file found is used if it exists. However, environment variables take precedence, meaning they override configuration file values if they are set.

HydroShare on Jupyter configuration files use KEY=VALUE semantics (example below). Only one configuration variable should be specified per line. Line comments can be created by starting a line with #.

Configuration Variables

  • DATA : directory where HydroShare resources are saved, default ~/hydroshare.
  • OAUTH : canonical HydroShare OAuth2 pickle file, default None. Allows bypassing login by using OAuth2 via HydroShare.

Example configuration file

# file: ~/.config/hydroshare_on_jupyter/config
DATA=~/Downloads

Note

By default, HydroShare on Jupyter saves HydroShare resources to ~/hydroshare. This means, if JupyterLab is started from a directory where ~/hydroshare is not a descendent (e.g. ~/Downloads), you will not be able to open the HydroShare resource files you download using HydroShare on Jupyter. To resolve this, either open JupyterLab from ~ or change the directory HydroShare on Jupyter saves resources to using the data DATA configuration variable.

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

hydroshare_on_jupyter-0.1.4.tar.gz (387.3 kB view details)

Uploaded Source

Built Distribution

hydroshare_on_jupyter-0.1.4-py3-none-any.whl (413.4 kB view details)

Uploaded Python 3

File details

Details for the file hydroshare_on_jupyter-0.1.4.tar.gz.

File metadata

  • Download URL: hydroshare_on_jupyter-0.1.4.tar.gz
  • Upload date:
  • Size: 387.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for hydroshare_on_jupyter-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e12448b9c910cdc69b35a2322f9dbd6ecef1b801acc929d71e061a0afc1c75fb
MD5 fb1c6b46393318398b6f863874d44db3
BLAKE2b-256 7d05d2b11329c07aaf2a4c241bda50932c604574e8174b3d84fc31edec207abb

See more details on using hashes here.

File details

Details for the file hydroshare_on_jupyter-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: hydroshare_on_jupyter-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 413.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for hydroshare_on_jupyter-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8f709ac1f88773b42f42ee39bfed038399f1bf3c9ebdfacc770d72136cb98bd5
MD5 95ec8801e18e61315cda2f14a76d6aba
BLAKE2b-256 bf87955ac58fcd7ecf5ae7f532db9819eea9c3a37a5b5e905a7194e20b1e260c

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