Skip to content
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

Merged
merged 47 commits into from
Aug 23, 2016
Merged

Image[] (again) #482

merged 47 commits into from
Aug 23, 2016

Conversation

poke1024
Copy link
Contributor

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.

@sn6uv
Copy link
Member

sn6uv commented Aug 16, 2016

I've closed #378 in favour of this one.

@sn6uv sn6uv added this to the 1.0 milestone Aug 16, 2016
@poke1024
Copy link
Contributor Author

in its current form, this now depends on #480

contents = stream.read()
stream.close()
with warnings.catch_warnings():
warnings.simplefilter("ignore")
Copy link
Member

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?

Copy link
Contributor Author

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.

@sn6uv sn6uv merged commit 86694ff into mathics:master Aug 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants