jupyter-fairly

A JupyterLab extension for seamless integration of Jupyter-based research environments and research data repositories.

https://github.com/itc-crib/jupyter-fairly

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.4%) to scientific vocabulary

Keywords

jupyterlab research-data research-data-management research-data-repository
Last synced: 6 months ago · JSON representation ·

Repository

A JupyterLab extension for seamless integration of Jupyter-based research environments and research data repositories.

Basic Info
Statistics
  • Stars: 8
  • Watchers: 6
  • Forks: 2
  • Open Issues: 8
  • Releases: 7
Topics
jupyterlab research-data research-data-management research-data-repository
Created over 4 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.md

License: MIT

Jupyter Fairly

A jupyterLab extension for the fairly package, and the seamless integration of Jupyter-based research environments and research data repositories.

This extension is composed of a Python package named jupyter_fairly for the server extension and a NPM package named jupyter-fairly for the frontend extension.

Requirements

  • JupyterLab >= 3.0 < 4
  • fairly == 0.4.1

This is the last version that supports JupyterLab 3.x.

Install

To install the extension, execute:

bash pip install jupyter_fairly

Configurations are stored in .fairly/config.json in the user's home directory. This is where the extension stores access tokens for data repositories.

To add an access tokens, use the Fairly menu in the JupyterLab main menu bar.

Fairly Menu

Uninstall

To remove the extension, execute:

bash pip uninstall jupyter_fairly

Troubleshoot

If you are seeing the frontend extension, but it is not working, check that the server extension is enabled:

bash jupyter server extension list

If the server extension is installed and enabled, but you are not seeing the frontend extension, check the frontend extension is installed:

bash jupyter labextension list

Contributing

Development install

Note: You will need NodeJS to build the extension package.

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

```bash

Clone the repo to your local environment

Change directory to the jupyter_fairly directory

Install package in development mode

pip install -e ".[test]"

Link your development version of the extension with JupyterLab

jupyter labextension develop . --overwrite

Server extension must be manually installed in develop mode

jupyter server extension enable jupyter_fairly

Rebuild extension Typescript source after making changes

jlpm build ```

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

```bash

Watch the source directory in one terminal, automatically rebuilding when needed

jlpm watch

Run JupyterLab in another terminal

jupyter lab ```

With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

By default, the jlpm build command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:

bash jupyter lab build --minimize=False

Development uninstall

```bash

Server extension must be manually disabled in develop mode

jupyter server extension disable jupyterfairly pip uninstall jupyterfairly ```

In development mode, you will also need to remove the symlink created by jupyter labextension develop command. To find its location, you can run jupyter labextension list to figure out where the labextensions folder is located. Then you can remove the symlink named jupyter-fairly within that folder.

Testing the extension

Server tests

This extension is using Pytest for Python code testing.

Install test dependencies (needed only once):

```sh pip install -e ".[test]"

Each time you install the Python package, you need to restore the front-end extension link

jupyter labextension develop . --overwrite ```

To execute them, run:

sh pytest -vv -r ap --cov jupyter_fairly

Frontend tests

This extension is using Jest for JavaScript code testing.

To execute them, execute:

sh jlpm jlpm test

Integration tests

This extension uses Playwright for the integration tests (aka user level tests). More precisely, the JupyterLab helper Galata is used to handle testing the extension in JupyterLab.

More information are provided within the ui-tests README.

Packaging the extension

See RELEASE

Citation

Please cite this software using as follows:

Garcia Alvarez, M., Girgin, S., & Urra Llanusa, J., Jupyter-fairly: a JupyterLab extension for the fairly pacakage [Computer software]

Acknowledgements

This research is funded by the Dutch Research Council (NWO) Open Science Fund, File No. 203.001.114.

Project members:

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Jupyter-fairly
message: Please cite this software using these metadata.
type: software
authors:
  - given-names: Manuel
    family-names: Garcia Alvarez
    email: m.g.garciaalvarez@tudelft.nl
    affiliation: Delft University of Technology
    orcid: 'https://orcid.org/0000-0003-1579-9989'
  - given-names: Serkan
    family-names: Grigin
    email: s.girgin@utwente.nl
    affiliation: University of Twente
    orcid: 'https://orcid.org/0000-0002-0156-185X'
  - given-names: Jose
    family-names: Urra Llanusa
    email: j.c.urrallanusa@tudelft.nl
    affiliation: Delft University of Technology
    orcid: 'https://orcid.org/0000-0002-9334-3998'

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 34
  • Total pull requests: 44
  • Average time to close issues: 4 months
  • Average time to close pull requests: 3 days
  • Total issue authors: 3
  • Total pull request authors: 4
  • Average comments per issue: 0.94
  • Average comments per pull request: 0.16
  • Merged pull requests: 39
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • manuGil (27)
  • jurra (6)
  • aecryan (1)
Pull Request Authors
  • manuGil (32)
  • jurra (9)
  • J535D165 (1)
  • dependabot[bot] (1)
Top Labels
Issue Labels
enhancement (15) bug (9) help wanted (4) documentation (2) good first issue (2) dependencies (2) experiment (2) question (1)
Pull Request Labels
documentation (14) enhancement (13) bug (5) dependencies (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 49 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
pypi.org: jupyter-fairly

A JupyterLab extension for seamless integration of Jupyter-based research environments and research data repositories

  • Homepage: https://github.com/ITC-CRIB/jupyter-fairly
  • Documentation: https://jupyter-fairly.readthedocs.io/
  • License: BSD 3-Clause License Copyright (c) 2023, Manuel G. Garcia, Serkan Girgin, Jose Urra All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  • Latest release: 0.4.2
    published almost 2 years ago
  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 49 Last month
Rankings
Dependent packages count: 7.0%
Downloads: 16.2%
Forks count: 17.3%
Average: 18.1%
Stargazers count: 19.5%
Dependent repos count: 30.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

docs/requirements.txt pypi
  • Babel ==2.10.3
  • Jinja2 ==3.1.2
  • MarkupSafe ==2.1.1
  • Pygments ==2.13.0
  • Sphinx ==5.1.1
  • alabaster ==0.7.12
  • asttokens ==2.0.8
  • attrs ==22.1.0
  • backcall ==0.2.0
  • beautifulsoup4 ==4.11.1
  • bleach ==5.0.1
  • certifi ==2022.6.15
  • charset-normalizer ==2.1.1
  • debugpy ==1.6.3
  • decorator ==5.1.1
  • defusedxml ==0.7.1
  • docutils ==0.17.1
  • entrypoints ==0.4
  • executing ==1.0.0
  • fastjsonschema ==2.16.1
  • idna ==3.3
  • imagesize ==1.4.1
  • ipykernel ==6.15.2
  • ipython >=7.34
  • jedi ==0.18.1
  • jsonschema ==4.14.0
  • jupyter-client ==7.3.4
  • jupyter-core ==4.11.1
  • jupyterlab-pygments ==0.2.2
  • lxml ==4.9.1
  • matplotlib-inline ==0.1.6
  • mistune ==2.0.4
  • nbclient ==0.6.7
  • nbconvert ==7.0.0
  • nbformat ==5.4.0
  • nbsphinx ==0.8.9
  • nest-asyncio ==1.5.5
  • packaging ==21.3
  • pandocfilters ==1.5.0
  • parso ==0.8.3
  • pexpect ==4.8.0
  • pickleshare ==0.7.5
  • prompt-toolkit ==3.0.30
  • psutil ==5.9.1
  • ptyprocess ==0.7.0
  • pure-eval ==0.2.2
  • pyparsing ==3.0.9
  • pyrsistent ==0.18.1
  • python-dateutil ==2.8.2
  • pytz ==2022.2.1
  • pyzmq ==23.2.1
  • requests ==2.28.1
  • six ==1.16.0
  • snowballstemmer ==2.2.0
  • soupsieve ==2.3.2.post1
  • sphinx-copybutton ==0.5.0
  • sphinx-rtd-theme ==1.0.0
  • sphinxcontrib-applehelp ==1.0.2
  • sphinxcontrib-devhelp ==1.0.2
  • sphinxcontrib-htmlhelp ==2.0.0
  • sphinxcontrib-jsmath ==1.0.1
  • sphinxcontrib-qthelp ==1.0.3
  • sphinxcontrib-serializinghtml ==1.1.5
  • stack-data ==0.5.0
  • tinycss2 ==1.1.1
  • tornado ==6.2
  • traitlets ==5.3.0
  • urllib3 ==1.26.12
  • wcwidth ==0.2.5
  • webencodings ==0.5.1
.github/workflows/python-publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
jupyter_fairly/package.json npm
  • @babel/core ^7.0.0 development
  • @babel/preset-env ^7.0.0 development
  • @jupyterlab/builder ^3.1.0 development
  • @jupyterlab/testutils ^3.0.0 development
  • @types/jest ^26.0.0 development
  • @typescript-eslint/eslint-plugin ^4.8.1 development
  • @typescript-eslint/parser ^4.8.1 development
  • eslint ^7.14.0 development
  • eslint-config-prettier ^6.15.0 development
  • eslint-plugin-prettier ^3.1.4 development
  • jest ^26.0.0 development
  • mkdirp ^1.0.3 development
  • npm-run-all ^4.1.5 development
  • prettier ^2.1.1 development
  • rimraf ^3.0.2 development
  • stylelint ^14.3.0 development
  • stylelint-config-prettier ^9.0.4 development
  • stylelint-config-recommended ^6.0.0 development
  • stylelint-config-standard ~24.0.0 development
  • stylelint-prettier ^2.0.0 development
  • ts-jest ^26.0.0 development
  • typescript ~4.1.3 development
  • @jupyterlab/application ^3.6.1
  • @jupyterlab/apputils ^3.6.1
  • @jupyterlab/coreutils ^5.1.0
  • @jupyterlab/services ^6.1.0
  • @jupyterlab/settingregistry ^3.6.1
jupyter_fairly/ui-tests/package.json npm
  • @jupyterlab/galata ^4.3.0 development
jupyter_fairly/yarn.lock npm
  • 1059 dependencies
jupyter_fairly/pyproject.toml pypi
  • fairly >=0.2.1
  • jupyter_server >=1.21,<3
  • jupyterlab ==3.5.0
  • python-dotenv >=1.0.0
jupyter_fairly/binder/environment.yml pypi
jupyter_fairly/setup.py pypi