Last active
July 19, 2019 15:40
-
-
Save BoZenKhaa/a7770b90f9cf13e29272894c407513cb to your computer and use it in GitHub Desktop.
Tips for jupyter imports
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 modules when they change | |
%load_ext autoreload | |
%autoreload 2 | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import matplotlib | |
import sys | |
import os | |
from pathlib import Path | |
# Progress bars for jupyter | |
from tqdm import tqdm_notebook as tqdm | |
# Debugging in jupyter | |
from IPython.core.debugger import set_trace | |
# Show all columns in pandas dataframes | |
from IPython.display import display | |
pd.options.display.max_columns = None | |
# Importing modules in pycharm, not good, better read this https://stackoverflow.com/questions/19885821/how-do-i-import-modules-in-pycharm | |
module_path = os.path.abspath(os.path.join('./sim_results_tools')) | |
if module_path not in sys.path: | |
sys.path.append(module_path) | |
from sim_results_tools.misc_funtions import haversine_np, getFromDict, remove_duplicates_ordered | |
from sim_results_tools.log_import import count_log_files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment