Include a plain text repr for when notebook is untrusted. #1577
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue(s):
Close #1568
Demo:
Compare cell 12:
on main: https://github.com/stac-utils/pystac/blob/v1.13.0/docs/quickstart.ipynb

on this branch: https://github.com/jsignell/pystac/blob/plain-repr/docs/quickstart.ipynb

Description:
Borrowing logic from https://github.com/pydata/xarray/blob/5d9aa6e22955ed49d52659667adfe7abec6848b6/xarray/core/formatting_html.py#L296-L316
Note: I am using the same repr that you get if you just call
print
on an object. If we want to spruce that up we can in a separate PR.PR Checklist:
pre-commit run --all-files
)pytest
)