Spaces:
Sleeping
Sleeping
Create ipython_start
Browse files- ipython_start +13 -0
ipython_start
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This will run every time an IPython (or Jupyter) kernel starts
|
| 2 |
+
def hello():
|
| 3 |
+
print("Right on baby jaybird! Hello from IPython startup!")
|
| 4 |
+
|
| 5 |
+
from git import Repo
|
| 6 |
+
import os
|
| 7 |
+
|
| 8 |
+
if os.path.exists('./workstatml'):
|
| 9 |
+
pass
|
| 10 |
+
else:
|
| 11 |
+
Repo.clone_from(os.environ['GIT_URL'],'./workstatml')
|
| 12 |
+
def jello():
|
| 13 |
+
print("Right on baby raybird! Hello from IPython startup!")
|