Skip to content

Produce plots from within a jupyter notebook #25

@mobiuscreek

Description

@mobiuscreek

Description

As a python library, pyvolcans, was written to be used as a cli tool. Jupyter notebook is an easy way to showcase a library and it's commonly used as an interactive development environment (IDE). The following line when run from the terminal, behaves as expected:

pyvolcans Fuego --apriori Villarrica Llaima Pacaya Reventador Tungurahua --plot_apriori

It will correctly show two bar plots with: (1) the single-criterion and total (multi-criteria) analogy values between the target volcano and any a priori analogue volcano selected by the user, and (2) the percentage of better analogues (than each of the a priori analogues) available in the whole GVP database, for the specific target volcano chosen.

However, if the same function is run from within a jupyter notebook no bar plots will be shown. As a quick fix, pyvolcans should detect from what environment is called from (e.g. ipython) and should produce a plot in both cases.

Acceptance Criteria

  • Pyvolcans should produce bar plots irrespective of where it's running from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions