summary refs log tree commit diff
path: root/dot_ipython/profile_default/startup/95_imports.py
blob: a4857ac9bf867c4024eb487ce22620fc238ac152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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()