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
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_aprioriIt 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,
pyvolcansshould detect from what environment is called from (e.g. ipython) and should produce a plot in both cases.Acceptance Criteria