summary refs log tree commit diff
path: root/dot_ipython/profile_default/startup/95_imports.py
diff options
context:
space:
mode:
Diffstat (limited to 'dot_ipython/profile_default/startup/95_imports.py')
-rw-r--r--dot_ipython/profile_default/startup/95_imports.py32
1 files changed, 32 insertions, 0 deletions
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()