From 461b8f9f6ed951c340455398d33a68bf2be722a3 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Fri, 4 Mar 2022 18:36:19 +0100 Subject: [PATCH] add ipython to dotfiles --- dots/ipython/.link | 2 ++ dots/ipython/00-matplotlib.ipy | 7 +++++++ dots/ipython/01-autoreload.ipy | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 dots/ipython/.link create mode 100644 dots/ipython/00-matplotlib.ipy create mode 100644 dots/ipython/01-autoreload.ipy diff --git a/dots/ipython/.link b/dots/ipython/.link new file mode 100644 index 0000000..de9e6b2 --- /dev/null +++ b/dots/ipython/.link @@ -0,0 +1,2 @@ +TASKNAME="Configure Ipython" +LINKTO=".ipython/profile_default/startup" diff --git a/dots/ipython/00-matplotlib.ipy b/dots/ipython/00-matplotlib.ipy new file mode 100644 index 0000000..a082a50 --- /dev/null +++ b/dots/ipython/00-matplotlib.ipy @@ -0,0 +1,7 @@ +try: + %config InlineBackend.figure_formats = ['svg'] + %matplotlib inline + import matplotlib.pyplot as plt + plt.style.use('ggplot') +except Exception: + pass diff --git a/dots/ipython/01-autoreload.ipy b/dots/ipython/01-autoreload.ipy new file mode 100644 index 0000000..35104b7 --- /dev/null +++ b/dots/ipython/01-autoreload.ipy @@ -0,0 +1,2 @@ +%load_ext autoreload +%autoreload 2