我的ipython笔记本在同一时间从终端删除的给定文件夹中,他迷路了。
做pwd
或cd
会给我:
OSError: [Errno 2] No such file or directory
ERROR: Internal Python error in the inspect module.
Below is the traceback from this internal error.
Unfortunately, your original traceback can not be constructed.
如何在不重新启动内核的情况下解决这个问题? (我想这将解决问题。)
答案 0 :(得分:0)
问题解决了:
import os
os.chdir("/Full/path/from/root/to/my/existing/folder")