-
Notifications
You must be signed in to change notification settings - Fork 95
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
WID-14 Improve the HTML representation on a Traited obj in Jupyter lab #639
Conversation
It is a decision we made a long time ago, to keep the eq in both places. It might be that we need to revise this decision... |
I see, wasn't aware of that - in that case it of course makes sense. I guess the class docstring then would be shown for the component instance representation, to render e.g. the Alternatively one could keep the simulator representation as is (no equations) and show more details for the individual components separately. |
And one more thing - do you want to do some more improvements for the HTML representations in this PR, or just focus on the equations? |
Very good question. Could we delay answering until our next call 17 Jan? Then we can have a small demo with the current state, and we decide how to proceed... |
Of course. In the meantime, these might be relevant in the long-term: |
That might be a more generic strategy to follow (instead of the current code in this PR). |
c2442c2
to
5502e66
Compare
except ImportError: | ||
def display_html(doc, raw): | ||
return doc | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has a nice outcome on the Class HTML representation, but I am not convinced the ipython dependency is healthy, being here at the very core (where the MetaClass for HasTraits is defined).
@maedoc @i-Zaak what do you think ?
Is it useful to keep also this Class HTML representation for jupyter, or users will be ok with only the instance representations (see comments bellow with exemples)
With only one dependency in @i-Zaak would this outcome be ok ? |
…ocstring in a TR-TD, otherwise it will fail to display correctly in case of nested table.
I converted the description for each model from RST format to HTML and I managed to render the mathematical equations (which are present in it) using MathJax.