Skip to content

Commit

Permalink
New bugfix release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ResidentMario committed Jul 2, 2017
1 parent 04f8e4b commit 1f34f27
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 52 deletions.
16 changes: 11 additions & 5 deletions notebooks/%%block-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"%run ../py-d3.py"
"%run ../py_d3/py_d3.py"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -233,7 +237,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": []
Expand All @@ -255,7 +261,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"version": "3.6.0"
}
},
"nbformat": 4,
Expand Down
14 changes: 10 additions & 4 deletions notebooks/%%d3-4.0-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"%run ../py-d3.py"
"%run ../py_d3/py_d3.py"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -49,6 +53,8 @@
"execution_count": 3,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [
Expand Down Expand Up @@ -239,7 +245,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"version": "3.6.0"
}
},
"nbformat": 4,
Expand Down
56 changes: 43 additions & 13 deletions notebooks/%%d3-demo-continued.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"This notebook demonstrates a few more D3 charts plotted inline using the `%%d3` line magic."
]
Expand All @@ -11,16 +14,21 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"%run ../py_d3.py"
"%run ../py_d3/py_d3.py"
]
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"**Circular Layout (Raindrops)**\n",
"\n",
Expand All @@ -31,7 +39,9 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [
{
Expand Down Expand Up @@ -214,7 +224,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"**Transform Transitions**\n",
"\n",
Expand All @@ -226,6 +239,8 @@
"execution_count": null,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true,
"scrolled": false
},
"outputs": [],
Expand Down Expand Up @@ -291,7 +306,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"**Streamgraph**\n",
"\n",
Expand All @@ -304,7 +322,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -402,7 +422,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"**Treemap**\n",
"\n",
Expand All @@ -413,7 +436,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -507,7 +532,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"**Radial Reingold–Tilford Tree**\n",
"\n",
Expand All @@ -518,7 +546,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -614,7 +644,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"version": "3.6.0"
}
},
"nbformat": 4,
Expand Down
92 changes: 78 additions & 14 deletions notebooks/%%d3-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,88 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"This notebook demonstrates a few D3 charts plotted inline using the `%%d3` line magic."
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"%run ../py-d3.py"
"%run ../py_d3/py_d3.py"
]
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"**Obligatory Hello World**"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"\n",
"<script>\n",
"requirejs.config({\n",
" paths: {\n",
" d3: \"//cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3\"\n",
" }\n",
"});\n",
"\n",
"require(['d3'], function(d3) {\n",
" window.d3 = d3;\n",
"});\n",
"</script>\n",
"<script>\n",
"_select = d3.select;\n",
"\n",
"d3.select1 = function(selection) {\n",
" return _select(\"#d3-cell-1\").select(selection);\n",
"}\n",
"d3.selectAll1 = function(selection) {\n",
" return _select(\"#d3-cell-1\").selectAll(selection);\n",
"}\n",
"</script>\n",
"<g id=\"d3-cell-1\">\n",
"\n",
"<g></g>\n",
"\n",
"<script>\n",
"d3.select1(\"g\").text(\"Hello World\");\n",
"</script>\n",
"</g>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%d3\n",
"\n",
Expand All @@ -44,7 +96,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"**Let's Make a Bar Chart Example**\n",
"\n",
Expand All @@ -55,7 +110,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -94,7 +151,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"**D3 Show Reel**\n",
"\n",
Expand All @@ -105,7 +165,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -695,7 +757,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"collapsed": true,
"deletable": true,
"editable": true
},
"outputs": [],
"source": []
Expand All @@ -718,7 +782,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"version": "3.6.0"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 1f34f27

Please sign in to comment.