I am a super n00b beginner, I have been teaching myself python concepts for the last couple of months using juptyer notebook, and lessons in CFD & similar subjects that I am conceptually familiar with. My background is Mechanical Engineering.
In the lesson below I need to import functions from separate python files for brevity in implementing functions in later blocks of code. I understand this is like using modules? I'm just looking for a conceptual explanation here.
Basically my question is, how do I create my own modules and import them into Jupyter notebook? Do I use a script and save as a py file ? Where do I save it ? What is an interpreter? What is a decent text editor to use? Sorry I'm really beginner to CS concepts, any input would help.
image for block of code in question
jupyter notebook viewer lesson :
Code to save as py file and for import :
https://github.com/numerical-mooc/numerical-mooc/blob/master/lessons/03_wave/traffic.py
A thousand thanks & Cheers.