Skip to content

Instantly share code, notes, and snippets.

@jsecurity101
Created November 6, 2019 06:00
Show Gist options
  • Save jsecurity101/6f8dac3bc8b84f9a2750b74d5837e832 to your computer and use it in GitHub Desktop.
Save jsecurity101/6f8dac3bc8b84f9a2750b74d5837e832 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"import time"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def periodic_work(interval):\n",
" while True:\n",
" print(\"Notebook 1\")\n",
" %run Notebook1.ipynb\n",
" print(\"Notebook 2\")\n",
" %run Notebook2.ipynb\n",
" print(\"Notebook 3\")\n",
" %run Notebook3.ipynb\n",
" time.sleep(interval)\n",
" \n",
"periodic_work (60 * 1.00)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "PySpark_Python3",
"language": "python",
"name": "pyspark3"
},
"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": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment