nicolaskruchten / pivottable

Open-source Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop.
https://pivottable.js.org/
MIT License
4.35k stars 1.08k forks source link

Offline use (python bindings) #1272

Open soerenwolfers opened 3 years ago

soerenwolfers commented 3 years ago

Tried using pivottable in our company. Unfortunately, we don't have internet access for most purposes, so the Python package doesn't work.

Would it be possible to provide an offline option? Alternatively, could someone just tell me how to best set this up myself?

chutzimir commented 2 years ago

We are using it offline and it is pretty straightforward. In our HTML head we have:

<script type="text/javascript" src="cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.js"></script>
<script type="text/javascript" src="cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="raw.githubusercontent.com/nicolaskruchten/pivottable/v2.23.0/dist/pivot.css">
<script type="text/javascript" src="raw.githubusercontent.com/nicolaskruchten/pivottable/v2.23.0/dist/pivot.js"></script>

And all we have to do is download the above mentioned files in the following locations:

wget --mirror \
cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.js \
cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.js \
raw.githubusercontent.com/nicolaskruchten/pivottable/v2.23.0/dist/pivot.js \
raw.githubusercontent.com/nicolaskruchten/pivottable/v2.23.0/dist/pivot.js.map \
raw.githubusercontent.com/nicolaskruchten/pivottable/v2.23.0/dist/pivot.css \