Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produce plots from within a jupyter notebook #25

Open
1 task
mobiuscreek opened this issue Oct 11, 2024 · 0 comments
Open
1 task

Produce plots from within a jupyter notebook #25

mobiuscreek opened this issue Oct 11, 2024 · 0 comments

Comments

@mobiuscreek
Copy link
Collaborator

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant