Open alessandrozocca opened 2 years ago
I added a the start of a new preamble that would give the option of displaying svg files in all notebooks. Then with one line, the notebooks could be run and the svg files saved for import to the book. The first example is "refinery production" problem in Chapter 5. If this workflow makes sense, we can refine the font sizes.
If you're willing to add one line to each cell producing a desired graphic, then a meta data tag with a current date could be added to the figure which might help track versioning.
@jckantor : that's great stuff what you are collecting on mobook.py! the refinery production notebook runs like a charm on windows as well and the picture is indeed vectorized, the interactive saving gives choice of pdf or svg.
Great. I've added a a few functions to allow some flexibility in setting up a google colab session.
mobook.setup_pyomo() mobook.setup_solvers()
provides pyomo a small set of solvers. For mac and windows users, the these would check and test for pyomo and some solvers. If you only need a specific solver, then
mobook.setup_pyomo() mobook.setup_ipopt()
would do the job. Let me know what you think .. this is a work in progress.
draw.SetOutputPath( '/work in progress/MO book/results' )
currently displays an error (but maybe the full notebook just need to be re-run?)