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

Add _repr_png_ for Jupyter #1058

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Add _repr_png_ for Jupyter #1058

merged 1 commit into from
Feb 15, 2023

Conversation

banesullivan
Copy link
Contributor

@banesullivan banesullivan commented Feb 15, 2023

A simple addition to quickly preview a tile source in Jupyter:

New Classic
Screen Shot 2023-02-14 at 9 40 26 PM Screen Shot 2023-02-14 at 9 40 42 PM

This is pretty standard for image-based libraries to create a user-friendly representation in Jupyter. See also python-pillow/Pillow#1090

Note that this returns an ImageBytes object from #902

@banesullivan banesullivan changed the title Add _repr_png for Jupyter Add _repr_png_ for Jupyter Feb 15, 2023
Copy link
Member

@manthey manthey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I'm imagining a _repr_html_ function that would embed a locally served tile viewer...

@banesullivan
Copy link
Contributor Author

That's where things get more fun! ... and ripe for complications. I'd like to open a separate issue for that

@banesullivan banesullivan merged commit 25ff88f into master Feb 15, 2023
@banesullivan banesullivan deleted the repr-png branch February 15, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants