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

Jupyter Notebook Support / Python API additions #35

Closed
2 of 3 tasks
cameronrutherford opened this issue Oct 11, 2023 · 5 comments
Closed
2 of 3 tasks

Jupyter Notebook Support / Python API additions #35

cameronrutherford opened this issue Oct 11, 2023 · 5 comments

Comments

@cameronrutherford
Copy link
Contributor

cameronrutherford commented Oct 11, 2023

For future ExaGO documentation, having .ipynb files available for reference is important. In addition, @abhyshr has discussed the desire to post-process ExaGO data in Python, which might require API changes.

To resolve the issue:

  • Create basic Jupyter notebook without MPI running OPFLOW example
  • Write OPFLOW output to disk with saveSolution, and then read that back into Python staying in JSON (maybe convert to dict...)
  • Add Python function that returns a dictionary of the OPFLOW output without needing to read/write to disk

These activities should be considered in the context of #32, as Jupyter notebooks are easy to render and document alongside Quarto.

@cameronrutherford
Copy link
Contributor Author

cameronrutherford commented Oct 18, 2023

https://zhauniarovich.com/post/2020/2020-06-clearing-jupyter-output/ - we should render #32 Quarto docs for our project in GitHub actions, and then use our exago spack version to generate our docs. Would be good to pre-clear our notebooks before commiting to repo so people have clean starting points

@cameronrutherford
Copy link
Contributor Author

Would be great to add a notebook/configuration to compare linear solvers using MA57, ReSolve and ReSolve GPU as backend to Ipopt. cc @pelesh

@cameronrutherford
Copy link
Contributor Author

Is it possible to run mpi4py within Jupyter? mpi4py/mpi4py#294

If so, lets get that working for a demo!

If not, need to resolve #16

@cameronrutherford
Copy link
Contributor Author

@abhyshr and @jaelynlitz can we close this out? Maybe we can make a new issue that better summarizes remaining work?

#85 made me realize we have closed out Jupyter and base example side of things, but it might be easier to just consolidate and move python API side of things to new issue since different end users might have different needs and ways to connect there data outputs...

@abhyshr
Copy link
Collaborator

abhyshr commented Nov 29, 2023

Good to close. We already have Jupyter notebooks in develop now.

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

2 participants