pprzetacznik / IElixir

Jupyter's kernel for Elixir programming language
Apache License 2.0
357 stars 44 forks source link

Supports inline PNG images by sending an appropriate display_data (a)… #46

Closed piisgaaf closed 5 years ago

piisgaaf commented 5 years ago

… output as base64 encoded, or (b) file based.

The code introduces two forms: (a) :"this is an inline image" for base64 encoded in the output, (b) {:"this is an inline image", src: } for images stored in the file system

If the file does not exist it passes the error to Jupiter. The magic 'ans' is not affected by the inline images.

This enables inlines plots using Gnuplot in a similar way is done by '%matplotlib inline' for ipython.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-3.5%) to 50.746% when pulling c4ddb8793c5e6409a4f217f2d2075694ad24f3bf on piisgaaf:inlines into d0b91caf36d5a6e32dc250c3822f556291705c41 on pprzetacznik:master.

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-3.5%) to 50.746% when pulling c4ddb8793c5e6409a4f217f2d2075694ad24f3bf on piisgaaf:inlines into d0b91caf36d5a6e32dc250c3822f556291705c41 on pprzetacznik:master.

pprzetacznik commented 5 years ago

@piisgaaf Thanks! Nice job!

piisgaaf commented 5 years ago

Hi Piotr!

You’re more than welcome!

IElixir is an awesome product! It finally let me use elixir in Jupiter notebooks! Many thanks for creating IElixir!

Regards, Pieter

On 6 May 2019, at 12:37, Piotr Przetacznik notifications@github.com<mailto:notifications@github.com> wrote:

@piisgaafhttps://github.com/piisgaaf Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/pprzetacznik/IElixir/pull/46#issuecomment-489576819, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABVGUK5IXMU6UEKWL4VHDCLPUAC5BANCNFSM4HK3WA3A.