nicolaskruchten / jupyter_pivottablejs

Drag’n’drop Pivot Tables and Charts for Jupyter/IPython Notebook, care of PivotTable.js
http://nicolas.kruchten.com/content/2015/09/jupyter_pivottablejs/
Other
687 stars 88 forks source link

Subtotals using Subtotal.js on Jupyter #38

Open jorgelaranjo opened 6 years ago

jorgelaranjo commented 6 years ago

Hi

Is there a snippet of code, somewhere, of how to use an extension renderer such as Subtotal.js with PivotTablesJs on Jupyter?

nicolaskruchten commented 6 years ago

Unfortunately there's no easy way to do this other than forking this repo and adding the Subtotal code here https://github.com/nicolaskruchten/jupyter_pivottablejs/blob/master/pivottablejs/__init__.py#L21

jorgelaranjo commented 6 years ago

Hi Nicolas

Is this something you want to do or is a fork the best way to achieve it, perhaps for testing purposes? I'm assuming using %%HTML and <script> on Jupyter cells would not allow for proper testing?

nicolaskruchten commented 6 years ago

A fork is probably a better bet as I don't have a lot of time to dedicate to support for new features in this library :)

jorgelaranjo commented 6 years ago

I'll try to find a bit of time to implement the fork then. Time poor as well 👍