Novice question: I have currently written a Python script and in the middle I define a class which I use. Nevertheless, I understand I can have the class saved separately so as to call it again and again in different scripts with no need to define it all the time.
The class reads:
class hello
"""
blah
"""
def __init__(self, blah)
return self
If I am in the directory dir
, and I have saved a Jupyter notebook my_notebook.ipynb
should the class be saved in the same directory as my_class.py
? And how do I call it in the notebook afterwards?