From 4b8ed94012af1fb4f4752b5d199f79c6bcfd4c59 Mon Sep 17 00:00:00 2001 From: Alen Date: Mon, 25 Sep 2023 21:32:05 +0400 Subject: Add basic IPython config and startup scripts --- dot_ipython/profile_default/startup/95_imports.py | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dot_ipython/profile_default/startup/95_imports.py (limited to 'dot_ipython/profile_default/startup/95_imports.py') diff --git a/dot_ipython/profile_default/startup/95_imports.py b/dot_ipython/profile_default/startup/95_imports.py new file mode 100644 index 0000000..a4857ac --- /dev/null +++ b/dot_ipython/profile_default/startup/95_imports.py @@ -0,0 +1,32 @@ +"""Some useful imports.""" + + +import sys +import pickle +import json +from collections import ( + Counter, + defaultdict, +) +from itertools import ( + count, + product, + starmap, +) +from pathlib import Path + +try: + from devtools import debug as _debug + + def dprint(*args, **kwargs): + _debug(*args, **kwargs) + +except ModuleNotFoundError: + pass + +try: + import yaml +except ModuleNotFoundError: + pass + +_summarise_startup() -- cgit 1.4.1-2-gfad0