![](/img/trans.png)
[英]Is it possible to have always running event loop in ipython similar to how it's done in jupyter notebook?
[英]Jupyter IPython - RuntimeError: This event loop is already running
沒有特別的原因,我在啟動 Jupyter IPython 時遇到了 « RuntimeError: This event loop is already running » 。 我被卡住了,無法運行任何 IPython Notebook。 請注意,我沒有使用 Anaconda。
可能是在更新了 Python 機器學習生態系統的一個庫(Scipy、NumPy、matplotlib、scikit-learn、pandas、Keras 等)之后,但我不記得是哪個庫了。
我試圖升級通常的嫌疑人,龍卷風和 ipykernel,但沒有成功。 此外,我沒有在自己的代碼中使用任何像 asyncio 這樣花哨的東西。
在嘗試了很多事情並且可能使情況變得更糟之后,我終於解決了問題。
sudo pip3 uninstall -y jupyter jupyter_core jupyter-client jupyter-console notebook qtconsole nbconvert nbformat
2) 重新安裝新的 Jupyterlab
sudo pip3 install jupyterlab
等等!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.