Last active
August 4, 2023 00:03
-
-
Save wassname/cca6fb087670f8766470ee6ce652f494 to your computer and use it in GitHub Desktop.
mikes notebook starter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# autoreload import your package | |
%load_ext autoreload | |
%autoreload 2 | |
## secrets | |
from dotenv import load_dotenv | |
load_dotenv() # take environment variables from .env. | |
## numeric, plotting | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
plt.style.use('ggplot') | |
## utils | |
from pathlib import Path | |
from tqdm.auto import tqdm | |
import logging, os, re | |
import collections, functools, itertools | |
## Logging | |
import logging | |
# logging.basicConfig(stream=os.sys.stdout, level=logging.INFO) | |
# logger = logging.getLogger('nb') | |
# logger.setLevel(logging.INFO) | |
from loguru import logger | |
# only if you want it shorter | |
logger.remove() | |
logger.add(sys.stderr, format="<level>{message}</level>", level="INFO") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment