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

Uploaded Source

Built Distribution

hydroshare_on_jupyter-0.1.3-py3-none-any.whl (413.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hydroshare_on_jupyter-0.1.3.tar.gz
  • Upload date:
  • Size: 387.1 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.3.tar.gz
Algorithm Hash digest
SHA256 902e8faa8c1ca88d549ad9122a0059c9cca317eaf571bc59b1e3f9cf96d13796
MD5 35e6d3fdbaa13ef10d27db58621ed605
BLAKE2b-256 0858e319f130105cb3e0a1ec9f67a112b5825e981eb9c5aa8087a7ed03de8a5e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hydroshare_on_jupyter-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 413.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c06cd77bcd22876e14730f683d5186bfd45b995e8fecdaaab961bdf585aa77f
MD5 b6acaa95f1c7c8a3d33d8e28c552f276
BLAKE2b-256 188d8dd8380b0729bbe42f13aaba4c10537ea9f6f388d974a7d8c7de2293115f

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