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

Uploaded Source

Built Distribution

hydroshare_on_jupyter-0.1.5-py3-none-any.whl (413.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hydroshare_on_jupyter-0.1.5.tar.gz
  • Upload date:
  • Size: 387.5 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.5.tar.gz
Algorithm Hash digest
SHA256 a0cdcf75691061d8e76a8fbbed877be945b23dd6612713bfdbdc1fff4761614e
MD5 c88c53739453e900bb994545c23b2c4d
BLAKE2b-256 66e64fd55f3f8cb340b2a502a3d78aeed68b96ba32fa4eb4787318ef0f4ffb94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hydroshare_on_jupyter-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 413.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5f01f5f7a0442a0e75d588af54feef09a7074486b358b879593262b089afef48
MD5 0daed3dc0d915b85a2d8482677399922
BLAKE2b-256 1052a0f698db1deaf1e93ee920a4c20a397bc73f4bb7c35344ef111d5ec14378

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