ronvoluted / kaggle-nba

Team repository for the NBA Career Prediction Kaggle Competition from UTS Advanced Data Science for Innovation
https://kaggle.com/c/uts-advdsi-nba-career-prediction
MIT License
0 stars 0 forks source link

Small quality of life changes #7

Closed ronvoluted closed 3 years ago

ronvoluted commented 3 years ago

Main change is that if you're running the project through the Docker container, module imports will now work automatically. e.g. instead of adding this to every notebook:

import os
import sys

module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
    sys.path.append(module_path)

%load_ext autoreload
%autoreload 2

from module import function

You can just do:

from module import function

However if you are doing the former it will continue to work.