Skip to content

Instantly share code, notes, and snippets.

@pierdom
pierdom / fix_python_rocket_icon_mac.md
Last active January 24, 2019 18:22
[Matplotlib and Jupyter on Mac: rocket icon] Avoid Python rocket icon on Mac dock when running Python scripts that use Matplotlib (very frequent when running Jupyter Notebook). The problem occurs because Python thinks that something interactive (e.g., a GUI) is going on, while we are simply plotting in-line in Jupyter. The fix below tells Matplo…

Change import matplotlib.pyplot as plt to:

import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
  • My default:
vim ~/.zshrc
  ZSH_THEME="clean"
  HIST_STAMPS="dd.mm.yyyy"
  • iTerm2 default:
@iamatypeofwalrus
iamatypeofwalrus / roll_ipython_in_aws.md
Last active January 22, 2024 11:18
Create an iPython HTML Notebook on Amazon's AWS Free Tier from scratch.

What

Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.

What are we using? What do you need?

  • An active AWS account. First time sign-ups are eligible for the free tier for a year
  • One Micro Tier EC2 Instance
  • With AWS we will use the stock Ubuntu Server AMI and customize it.
  • Anaconda for Python.
  • Coffee/Beer/Time