Did anyone notice the difference in loading .NET dlls between IPython/Jupyter notebook/(qt)console and normal python scripts using pythonnet?
Is this a bug/behavior caused on pythonnet or ipython side?
This works in ipython and python interactive console:
import clr
clr.AddReference(r"C:\path2dll\dotnetdll")
But in regular python scripts, the sys.path has to be appended with the path to DLL:
import clr
import sys
sys.path.append(r"C:\path2dll")
clr.AddReference("dotnetdll")
Possibly similar problem:
Permission denied on dl.open() with ipython but not with python