Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 18615
Kernel: Python 3

Setup scripts to run on a new Jupyter instance

todo: execute this notebook on jupyter start up

Setup scripts to run on a new Jupyter instance

todo: execute this notebook on jupyter start up

step: install dependencies

!pip install ipympl python-frontmatter qgrid pbx_gs_python_utils !jupyter nbextension enable --py --sys-prefix qgrid
!pip uninstall -y pandas #matplotlib !pip install matplotlib !pip install pandas

step: setup git

Enable this enviroment to push to your GitHub fork of this repo

note don't run this on the local docker machine

# !mkdir /home/jovyan/.ssh # # add github ssh signature to known_hosts # !echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" >> /home/jovyan/.ssh/known_hosts # !ssh-keygen -f /home/jovyan/.ssh/id_rsa -t rsa -N '' # !cat /home/jovyan/.ssh/id_rsa.pub # !git config --global user.email "[email protected]" # !git config --global user.name "oss_bot" # !git remote set-url origin [email protected]:OpenSecuritySummit/oss2019.git
# !git status # !git add {file} # note: need to add a number of the jupyter notebook/linux tmp folders (like .ssh and .bash and .jupyter) to .gitignore # !git commit -m 'files created/changed in mybinder' # ### note: command below didn't work , looks like mybinder is blocking ssh # !git push origin master