Open chipkent opened 3 weeks ago
@chipkent does this work for you in code studio? I get the same error there.
@chipkent I figured out why it didn't work for me in code studio. I needed to add:
import sys
sys.path.append("/data/storage/notebooks")
In the extension, this also holds true with the additional requirement that the folder you are using has to be known to the DH server. I have mine mapped via volumes
config in the docker compose file I run my server from.
In my case I map /local/path/to/my/dh/data/:/data
https://deephaven.io/core/docs/reference/community-questions/import-python-script/
mymod.py
print("IN MYMOD")
def myfunc(x): return x + 1
You will get an error: