Skip to content

Commit

Permalink
adding binder link
Browse files Browse the repository at this point in the history
  • Loading branch information
robertour committed Jul 24, 2019
1 parent 9a6ece7 commit af986a3
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 12 deletions.
14 changes: 13 additions & 1 deletion R/politician/twitter.ipynb
@@ -1,5 +1,17 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"autogenerated": true
},
"outputs": [],
"source": [
"# Parameters: \n",
"params = 1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -80,7 +92,7 @@
"mimetype": "text/x-r-source",
"name": "R",
"pygments_lexer": "r",
"version": "3.6.0"
"version": "3.4.4"
}
},
"nbformat": 4,
Expand Down
3 changes: 3 additions & 0 deletions README.md
@@ -1,3 +1,6 @@

[![Binder](https://notebooks.gesis.org/binder/badge_logo.svg)](https://notebooks.gesis.org/binder/v2/gh/gesiscss/smm_demo/master)

# smm_demo
Examples to complement of the SMM Monitor

Expand Down
57 changes: 57 additions & 0 deletions Untitled.ipynb
@@ -0,0 +1,57 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Standard data science libraries\n",
"import pandas as pd\n",
"import numpy as np\n",
"from scipy import stats\n",
"import featuretools as ft\n",
"# Visualization\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"plt.style.use('bmh')\n",
"# Options for pandas\n",
"pd.options.display.max_columns = 20\n",
"# Display all cell outputs\n",
"from IPython.core.interactiveshell import InteractiveShell\n",
"InteractiveShell.ast_node_interactivity = 'all'\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Standard data science libraries\n",
"import pandas as pd\n",
"import numpy as np\n",
"from scipy import stats\n",
"import featuretools as ft\n",
"# Visualization\n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns\n",
"plt.style.use('bmh')\n",
"# Options for pandas\n",
"pd.options.display.max_columns = 20\n",
"# Display all cell outputs\n",
"from IPython.core.interactiveshell import InteractiveShell\n",
"InteractiveShell.ast_node_interactivity = 'all'\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
55 changes: 55 additions & 0 deletions Untitled1.ipynb
@@ -0,0 +1,55 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%%html\n",
"<script>\n",
" // AUTORUN ALL CELLS ON NOTEBOOK-LOAD!\n",
" require(\n",
" ['base/js/namespace', 'jquery'], \n",
" function(jupyter, $) {\n",
" $(jupyter.events).on(\"kernel_ready.Kernel\", function () {\n",
" jupyter.actions.call('jupyter-notebook:run-all-cells-below');\n",
" jupyter.actions.call('jupyter-notebook:save-notebook');\n",
" });\n",
" }\n",
" );\n",
"</script>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"print('fde rw s')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
20 changes: 10 additions & 10 deletions url_without_extensions.ipynb → my_notebook.ipynb
@@ -1,17 +1,17 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": [
"%%HTML\n",
"<script type=\"text/javascript\">\n",
" politician = new URL(window.location.href).searchParams.get('politician')\n",
" var code = IPython.notebook.insert_cell_below('code');\n",
" code.set_text('politician = ' + politician);\n",
"</script>"
"Variable: x"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Variable: y"
]
}
],
Expand All @@ -35,5 +35,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 1
}
14 changes: 13 additions & 1 deletion python/politician/twitter.ipynb
@@ -1,5 +1,17 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"autogenerated": true
},
"outputs": [],
"source": [
"# Parameters: \n",
"params = 1"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -103,7 +115,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.7"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit af986a3

Please sign in to comment.