-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Image[] (again) #482
Image[] (again) #482
Conversation
I've closed #378 in favour of this one. |
…ht tags to <img>.
…d in the PyPy rework to come
in its current form, this now depends on #480 |
contents = stream.read() | ||
stream.close() | ||
with warnings.catch_warnings(): | ||
warnings.simplefilter("ignore") |
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.
What warnings are we ignoring here? Are they important?
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.
Not really. During the conversion of floating point to byte components (which are necessary for the png encoding), PIL outputs a warning that precision might be lost. Since this code only handles the display for the frontend, it doesn't matter.
This is a rebase of #378 to the Mathics branch.
It works perfectly in the classic Mathics web interface.
Combined with #480 and a small change, this will also work in Jupyter kernels.