Relative imports in Python — for js people.

2 min readJul 10, 2022

My background is js. It’s where I feel at home.

I am working in python lately and generally am finding it good (great number of packages — especially in data science and ML — with good tutorials) but the environment system, imports, package management etc are not as intuitive or as simple.

1st Misconception — terminology is the same

In js, you can do relative imports fairly simply — to get functions from one file into another.