Skip to content

Instantly share code, notes, and snippets.

@sdaitzman
Created December 9, 2018 21:14
Show Gist options
  • Save sdaitzman/e95e714c42586b54a8eeecb612dc7475 to your computer and use it in GitHub Desktop.
Save sdaitzman/e95e714c42586b54a8eeecb612dc7475 to your computer and use it in GitHub Desktop.
# Imports
from IPython.display import clear_output
import os
import time
# Install Python libraries
!pip3 install pandas seaborn sympy beautifulsoup4 lxml pint scipy==1.1.0 numpy
# Removes code before re-downloading it
!rm -rf ./ModSimPy
!rm -rf ./modsim.py
# Grabs ModSimPy
!git clone https://github.com/AllenDowney/ModSimPy.git
!cp "ModSimPy/code/modsim.py" .
# Resets kernel to flush outdated libraries (especially SciPy)
clear_output()
print("Configured for ModSimPy. Restarting kernel.")
time.sleep(1)
os._exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment