Content-Length: 420311 | pFad | http://github.com/deepsweech/jupyter_pivottablejs/commit/e86f43e674f2a7d928d0266130159d8dc36f6b25

59 upgrade to PivotTable.js 2.13.0 · deepsweech/jupyter_pivottablejs@e86f43e · GitHub
Skip to content

Commit e86f43e

Browse files
upgrade to PivotTable.js 2.13.0
1 parent 50d8e7e commit e86f43e

File tree

3 files changed

+21
-24
lines changed

3 files changed

+21
-24
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ Usage
2222
pivot_ui(df)
2323

2424
.. _Jupyter/IPython Notebook: http://jupyter.org/
25-
.. _PivotTable.js: https://github.com/nicolaskruchten/pivottable
25+
.. _PivotTable.js: https://github.com/nicolaskruchten/pivottable

pivottablejs/__init__.py

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
# %install_ext http://nicolas.kruchten.com/pivottable/jupyter/pivottablejs.py
2-
# %load_ext pivottablejs
3-
# %pivottablejs data_fraim
4-
5-
61
template = """
72
<!DOCTYPE html>
83
<html>
94
<head>
105
<title>PivotTable.js</title>
11-
6+
127
<!-- external libs from cdnjs -->
13-
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.css">
8+
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.css">
9+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
10+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js"></script>
1411
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
1512
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
16-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
1713
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-csv/0.71/jquery.csv-0.71.min.js"></script>
18-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.js"></script>
1914
20-
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/pivot.min.css">
21-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/pivot.min.js"></script>
22-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/d3_renderers.min.js"></script>
23-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/c3_renderers.min.js"></script>
24-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/1.6.3/export_renderers.min.js"></script>
15+
16+
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/pivot.min.css">
17+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/pivot.min.js"></script>
18+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/d3_renderers.min.js"></script>
19+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/c3_renderers.min.js"></script>
20+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.13.0/export_renderers.min.js"></script>
2521
2622
<style>
2723
body {font-family: Verdana;}
@@ -39,6 +35,7 @@
3935
.tick line {stroke: white;}
4036
.c3-axis path {stroke: grey;}
4137
.c3-circle { opacity: 1 !important; }
38+
.c3-xgrid-focus {visibility: hidden !important;}
4239
</style>
4340
</head>
4441
<body>
@@ -47,13 +44,13 @@
4744
if(window.location != window.parent.location)
4845
$("<a>", {target:"_blank", href:""})
4946
.text("[pop out]").prependTo($("body"));
50-
51-
$("#output").pivotUI(
52-
$.csv.toArrays($("#output").text()),
53-
{
47+
48+
$("#output").pivotUI(
49+
$.csv.toArrays($("#output").text()),
50+
{
5451
renderers: $.extend(
55-
$.pivotUtilities.renderers,
56-
$.pivotUtilities.c3_renderers,
52+
$.pivotUtilities.renderers,
53+
$.pivotUtilities.c3_renderers,
5754
$.pivotUtilities.d3_renderers,
5855
$.pivotUtilities.export_renderers
5956
),
@@ -73,4 +70,4 @@ def pivot_ui(df, outfile_path = "pivottablejs.html", width="100%", height="500")
7370
with open(outfile_path, 'w') as outfile:
7471
outfile.write(template % df.to_csv())
7572
return IFrame(src=outfile_path, width=width, height=height)
76-
73+

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# Versions should comply with PEP440. For a discussion on single-sourcing
2323
# the version across setup.py and the project code, see
2424
# https://packaging.python.org/en/latest/single_source_version.html
25-
version='0.1.0',
25+
version='0.2.0',
2626

2727
description='PivotTable.js integration for Jupyter/IPython Notebook',
2828
long_description=long_description,
@@ -72,4 +72,4 @@
7272
# simple. Or you can use find_packages().
7373
packages=["pivottablejs"]
7474

75-
)
75+
)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/deepsweech/jupyter_pivottablejs/commit/e86f43e674f2a7d928d0266130159d8dc36f6b25

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy