Skip to main content

Tests

ckanext-plotly

CKAN Chart viewer / builder built around plotly.js and the Plotly react-chart-editor

This is a fork of USEPA/ckanext-plotly, adapted for the Fair3R CKAN portal (CNRS/IGBMC).

Requirements

Compatibility with core CKAN versions:

CKAN version Compatible?
2.7 and earlier no
2.8 not tested
2.9 yes

Installation

For example installing any non-Python dependencies or adding any required config settings.

To install ckanext-plotly:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate

  2. Install via pip:

    pip install ckanext-fair3r-plotly pip install -r requirements.txt

    Or, to install from source:

    git clone cd ckanext-plotly pip install -e . pip install -r requirements.txt

  3. Add plotly and/or plotly_explorer to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).

  4. Restart CKAN

Config settings

None at present

Developer installation

To install ckanext-plotly for development, activate your CKAN virtualenv and do:

git clone <url-of-this-repository>
cd ckanext-plotly
python setup.py develop
pip install -r dev-requirements.txt

Rebuilding the editor/explorer

The editor/explorer is built off of react-chart-editor. At present this being react based application necessitates some effort to export for use as a CKAN javascript asset. To accomplish this the following manual process is has been employed. A customized build process would be a great addition!

  1. Build the editor interface via npm:

    cd ckanext-plotly/editor_app/src
    npm run build
    
  2. Copy the built js and css bundles over to the CKAN location

    cp ../build/static/css/main*.css ../../ckanext/plotly/public/plotly_edit_app.css
    cp ../build/static/css/main*.css.map ../../ckanext/plotly/public/plotly_edit_app.css.map
    cp ../build/static/js/main*.js ../../ckanext/plotly/public/plotly_edit_app.js
    cp ../build/static/js/main*.js.map ../../ckanext/plotly/public/plotly_edit_app.js.map
    
  3. Edit the source map in the final line in plotly_edit_app.css and plotly_edit_app.js.map to point to the appropriate map file

Tests

docker exec -u ckan -it ckan-app pytest --ckan-ini=/plugins/ckanext-plotly/test.ini /plugins/ckanext-plotly/ckanext

Disclaimer

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

Metadata

Release files for ckanext-fair3r-plotly 0.0.2.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ckanext-fair3r-plotly 0.0.2.13
File Size Uploaded Provenance Actions
ckanext_fair3r_plotly-0.0.2.13.tar.gz 3.4 MB Without provenance Details for ckanext_fair3r_plotly-0.0.2.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ckanext-fair3r-plotly 0.0.2.13
File Interpreter ABI Platform Actions
ckanext_fair3r_plotly-0.0.2.13-py3-none-any.whl Python 3 none any Details for ckanext_fair3r_plotly-0.0.2.13-py3-none-any.whl

Total release size: 6.8 MB

Release files / ckanext_fair3r_plotly-0.0.2.13.tar.gz

Download URL ckanext_fair3r_plotly-0.0.2.13.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
c081fcb03abee494d160c7dcd584011bd46af081a0c5c04027a2c4fd255cfa2d
BLAKE2b-256 checksum
How to use checksums
839bcd0c472a8a553d87c4ef09ce2774d24b4d016dc58a2ca41b720fc7251749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / ckanext_fair3r_plotly-0.0.2.13-py3-none-any.whl

Download URL ckanext_fair3r_plotly-0.0.2.13-py3-none-any.whl
Size 3.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7a2b166f267aa3e5c798eafa6a1134dda60d618c72a4c2de8446edfe0e6698a9
BLAKE2b-256 checksum
How to use checksums
038b1aa9b4d3b453c4489973eea8778ffc72faeba9ee6e0474f885b856993283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for ckanext-fair3r-plotly 0.0.2.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page