Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

%%pretty should be turned on for the whole notebook #745

Open
winston-zillow opened this issue Jan 12, 2022 · 2 comments
Open

%%pretty should be turned on for the whole notebook #745

winston-zillow opened this issue Jan 12, 2022 · 2 comments

Comments

@winston-zillow
Copy link

Is your feature request related to a problem? Please describe.
Currently, one has to annotate any and all cells doing df.show() or similar with %%pretty to have the resulting table prettified.

Describe the solution you'd like

  1. By default turn on prettify for the whole notebook
  2. Add option to %%pretty to turn off the default
  3. Add options to %%pretty to toggle the prettification on a cell.
@winston-zillow
Copy link
Author

@devstein any thought on this suggestion? Basically the default should be to prettify the outputs

@devstein
Copy link
Collaborator

devstein commented Apr 4, 2023

@winston-zillow %%pretty is a cell magic (the %% prefix), so it should't operate on multiple cells.

I'm open to creating an equivalent notebook magic %pretty that operates over the entire notebook and a flag%%pretty --disable for disabling it on a specific cell.

Is this something you are open to contributing?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants