How to import local python module inside @python #685
Replies: 4 comments 1 reply
-
you can try "from common_utils import *" this will import all the funtions |
Beta Was this translation helpful? Give feedback.
-
I guess it can help you
|
Beta Was this translation helpful? Give feedback.
-
A much cleaner solution is to install whatever package I wanted into conda. Solved! |
Beta Was this translation helpful? Give feedback.
-
You can try a relative import instead in Python. So if it is in the same directory, you can try |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have a file common_utils.py
and inside my codon code, under the python decorator, i want to importa a function from common.
from common_utils import function does not seem to work
Beta Was this translation helpful? Give feedback.
All reactions