sparkmagic icon indicating copy to clipboard operation
sparkmagic copied to clipboard

%%pretty should be turned on for the whole notebook

Open winston-zillow opened this issue 3 years ago • 2 comments

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 avatar Jan 12 '22 00:01 winston-zillow

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

winston-zillow avatar Mar 29 '23 00:03 winston-zillow

@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?

devstein avatar Apr 04 '23 23:04 devstein