card2pub / ipython_start /startup.py
educrpg's picture
Update ipython_start/startup.py
eebf51b verified
raw
history blame contribute delete
431 Bytes
# This will run every time an IPython (or Jupyter) kernel starts
def hello():
print("Right on baby jaybird! Hello from IPython startup! ")
from git import Repo
import os
# https://jupyter-ai.readthedocs.io/en/latest/developers/index.html
if os.path.exists('./workstatml'):
pass
else:
Repo.clone_from(os.environ['GIT_URL'],'./workstatml')
def jello():
print("Right on baby raybird! Hello from IPython startup!")