Closed mrkn closed 3 years ago
CI fails due to network errors. I tried to re-run after some hours.
CI fails due to network errors. I tried to re-run after some hours.
It was not due to network errors, but my fault by missing apt update
before apt install
.
Introduce
to_iruby_mimebundle
method support like IPython's_repr_mimebundle
.The new display algorithm is below.
If the object to be displayed can respond to
to_iruby_mimebundle
, IRuby first tries to format the object by this method. Then, IRuby tries to format the object by the renderers registered in the registry into MIME-types that are not formatted byto_iruby_mimebundle
. Moreover, IRuby tries to format the object byto_xxx
method for the MIME-types that have not been formatted in the following list.text/html
byto_html
methodtext/markdown
byto_markdown
methodimage/svg+xml
byto_svg
methodimage/png
byto_png
methodapplication/pdf
byto_pdf
methodimage/jpeg
byto_jpeg
methodtext/latex
byto_latex
orto_tex
methodapplication/javascript
byto_javascript
methodIf none of MIME-type are formatted at this time, IRuby tries to format the object by
to_iruby
method.Finally, IRuby generates the
text/plain
format byinspect
method iftext/plain
format is not generated yet.