econ-ark / DARKolo

fusion projects combining of Dolo/DolARK and Econ-ARK
4 stars 8 forks source link

Render latex in model __repr__ in notebook #23

Open sbenthall opened 3 years ago

sbenthall commented 3 years ago

Bufferstock DARKolo model is not printing the dolo version into rendered LaTeX in notebook in Seb's local setup.

albop commented 3 years ago

What kind of output do you need ? Currently, dolo converts equations to latex, only to include it into its html representation. With a template of what you want, it should be easy enough

sbenthall commented 3 years ago

Aha; I see. How does it detect when to output the HTML representation?

albop commented 3 years ago

Jupiter calls the method ' _reprhtml'.

Objets Can provide several représentations of themselves with _reprhtml , _reprsvg, etc. and Jupiter chooses which one to présent to thé user.

Le mar. 19 janv. 2021 à 21:23, Sebastian Benthall notifications@github.com a écrit :

Aha; I see. How does it detect when to output the HTM representation?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/econ-ark/DARKolo/issues/23#issuecomment-763109097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDSKIMNIO7XNTJIPMPWCTS2XS4PANCNFSM4WEHUUVQ .

llorracc commented 3 years ago

@albop, basically we were trying (and failing) to use dolo's own tools to produce the model representation. I suspect that the right course for us will be just to adopt wholesale whatever you've done with Dolo. But we need to be able to make it work first (at least after importing dolang, etc).

albop commented 3 years ago

I'll have look today

On Wed, Jan 20, 2021 at 5:23 AM Christopher Llorracc Carroll < notifications@github.com> wrote:

@albop https://github.com/albop, basically we were trying (and failing) to use dolo's own tools to produce the model representation. I suspect that the right course for us will be just to adopt wholesale whatever you've done with Dolo. But we need to be able to make it work first (at least after importing dolang, etc).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/econ-ark/DARKolo/issues/23#issuecomment-763320777, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDSKLAZ5IATDIXQ4H4PHDS2ZLELANCNFSM4WEHUUVQ .