同样 ,
In [142]: s.undefAll()
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-142-07129f4f0db4> in <module>
----> 1 s.undefAll()
~/anaconda3/lib/python3.9/site-packages/dolphindb/session.py in undefAll(self)
988 def undefAll(self) -> None:
989 """Release all objects in the Session."""
--> 990 self.run("undef all")
991
992 def clearAllCache(self, dfs: bool = False) -> None:
~/anaconda3/lib/python3.9/site-packages/dolphindb/session.py in run(self, script, *args, **kwargs)
475 if "fetchSize" in kwargs.keys():
476 return BlockReader(self.cpp.runBlock(script, **kwargs))
--> 477 return self.cpp.run(script, *args, **kwargs)
478
479 def runFile(self, filepath: str, *args, **kwargs):
RuntimeError: <Exception> in run: Couldn't send script/function to the remote host because the connection has been closed
In [143]: s.isClosed()
Out[143]: False