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

Uploaded Source

Built Distribution

hydroshare_on_jupyter-0.1.2-py3-none-any.whl (412.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hydroshare_on_jupyter-0.1.2.tar.gz
  • Upload date:
  • Size: 386.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 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.2.tar.gz
Algorithm Hash digest
SHA256 32da8549ad2b0a58c98f1b0ac7e51c9bef57a1590b69b1426ff29ddb31044cca
MD5 006b54faf5755641c4873df96d6c6162
BLAKE2b-256 b8ae289e6b0fe599e7e923b68e9a4b6cb2bb462e22184b7843c4bb56d89bb351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hydroshare_on_jupyter-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 412.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 274195a20540c8b6cb63d594f27bd09e34ab0892474a9b8980d6988adb860cb2
MD5 a375f49a74bbc87ed76ceeb31c8fb00d
BLAKE2b-256 5aa884d72f7758472e069e6b0d987fab6f57b84e3959b20a78dca617fd19798f

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