0

enter image description here

Whats the issue here? refer to image

enter image description heres

  • 1
    OTM is not a python file, is a jupyter notebook file. Read [this](https://stackoverflow.com/questions/20186344/importing-an-ipynb-file-from-another-ipynb-file) SO question on how to import ipynb files – Parker Feb 20 '23 at 13:31

1 Answers1

0

The problem is that you are trying to import Jupyter Notebook as python module instead of regular py file. You can hook the Jupyter Notebook though as shown here: Importing Jupyter Notebooks as Modules.

KonradK
  • 33
  • 1
  • 5
  • 1
    There's a couple packages to make this easier. In particular, see about importnb [here](https://discourse.jupyter.org/t/package-for-importing-jupyter-notebooks-as-modules/12923/2?u=fomightez) and [here](https://stackoverflow.com/a/58086016/8508004). – Wayne Feb 20 '23 at 20:21