npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@chameleoncloud/jupyterlab_zenodo

v2.0.0

Published

JupyterLab extension for uploading to Zenodo

Downloads

5

Readme

jupyterlab-zenodo

A Zenodo extension for JupyterLab.

Installation

This is part of a two-part extension: the JupyterLab extension (UI) and the Notebook server extension (which interfaces with Zenodo). In order to use this extension, both parts must be enabled. The following instructions should be run in your terminal.

To install the server extension:

pip install jupyterlab_zenodo

To enable the server extension:

jupyter serverextension enable --py jupyterlab_zenodo

To install the lab extension:

jupyter labextension install @chameleoncloud/jupyterlab_zenodo

Customization

You can add a series of (optional) custom features by adding lines to your jupyter_notebook_config.py file.

ZenodoConfig.access_token

You can create a default Zenodo access token so that users don't need their own. This token will be used for any user of the Jupyter Notebook, so it should probably be created under a dedicated account for your deployment.

c.ZenodoConfig.access_token = '<your token>'

ZenodoConfig.upload_redirect_url

If you want to perform additional processing on the upload after it is published to Zenodo, you can specify a post-create redirect location. By setting <your-url> below, users will be redirected to that site (with an added "doi" query parameter for the created Zenodo artifact) when the upload is successfully published.

c.ZenodoConfig.upload_redirect_url = '<your-url>'

ZenodoConfig.update_redirect_url

Similar to upload_redirect_url, this allows you to redirect users to a custom URL after a new version of an existing artifact is successfully published. A "doi" and "previous_doi" query parameter will be added to the URL for you.

c.ZenodoConfig.update_redirect_url = '<your-url>'

ZenodoConfig.community

Set a default Zenodo community. All depositions published with this extension will automatically be associated with the community <your community>.

c.ZenodoConfig.community = '<your community>'

ZenodoConfig.database_location

Information about previous uploads to Zenodo on a user's server will be stored in <database-location> in a SQLite database. This defaults to /work/.zenodo/.

c.ZenodoConfig.database_location = '<database-location>'

ZenodoConfig.database_name

Set a custom SQLite3 database name. This defaults to zenodo.db.

c.ZenodoConfig.database_name = '<database_name>'

Development

To work with the extension without publishing directly to Zenodo, use Zenodo sandbox. Indicate that you're in a development environment and provide a default sandbox token in jupyter_notebook_config.py:

c.ZenodoConfig.dev = True
c.ZenodoConfig.access_token = '<your sandbox token>'

Testing

The server side of this extension comes with a set of integration tests. They can be used as follows:

  1. Create a Zenodo sandbox access token
  2. Run ZENODO_ACCESS_TOKEN=<token> make tests from the root in your terminal, using the sandbox access token as <token>.