问题描述
当我尝试打开我的.ipynb
时,出现以下错误.同一目录中的其他笔记本也可以正常工作.
UI错误:
Close without saving?
File "cloner.ipynb" has unsaved changes, close without saving?Close without saving?
File "cloner.ipynb" has unsaved changes, close without saving?
浏览器控制台错误:
serverconnection.js:192 GET http://localhost:8890/api/contents/cloner.ipynb?type=notebook&content=1&1586015957921 400 (Bad Request)
handleRequest @ serverconnection.js:192
makeRequest @ serverconnection.js:76
get @ index.js:477
get @ index.js:170
(anonymous) @ context.js:498
Promise.then (async)
_revert @ context.js:497
initialize @ context.js:190
(anonymous) @ manager.js:445
Promise.then (async)
_createOrOpenDocument @ manager.js:445
open @ manager.js:274
openOrReveal @ manager.js:298
_handleOpen @ listing.js:824
_evtDblClick @ listing.js:900
handleEvent @ listing.js:543
context.js:582 Uncaught (in promise) TypeError: Failed to execute 'text' on 'Response': body stream is locked
at Context._handleError (context.js:582)
at context.js:540
_handleError @ context.js:582
(anonymous) @ context.js:540
async function (async)
_handleError @ context.js:582
(anonymous) @ context.js:540
async function (async)
(anonymous) @ context.js:536
Promise.catch (async)
_revert @ context.js:533
initialize @ context.js:190
(anonymous) @ manager.js:445
Promise.then (async)
_createOrOpenDocument @ manager.js:445
open @ manager.js:274
openOrReveal @ manager.js:298
_handleOpen @ listing.js:824
_evtDblClick @ listing.js:900
handleEvent @ listing.js:543
Pip管理的软件包版本:
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Name: jupyterlab
Version: 2.0.1
Summary: The JupyterLab notebook server extension.
我尝试删除.ipynb_checkpoints
文件夹,并在git中跟踪所有这些内容.
就我而言, jupytext 使我无法打开ipynb文件,因为我使用其他编辑器而不是对应的python文件编辑了ipynb文件. /p>
所以我大呼了rm CORRESPONDING.py
,然后我可以打开ipynb文件.
When I try to open my .ipynb
, I get the following error. Other notebooks in the same directory work just fine.
UI Error:
Close without saving?
File "cloner.ipynb" has unsaved changes, close without saving?Close without saving?
File "cloner.ipynb" has unsaved changes, close without saving?
Browser console errors:
serverconnection.js:192 GET http://localhost:8890/api/contents/cloner.ipynb?type=notebook&content=1&1586015957921 400 (Bad Request)
handleRequest @ serverconnection.js:192
makeRequest @ serverconnection.js:76
get @ index.js:477
get @ index.js:170
(anonymous) @ context.js:498
Promise.then (async)
_revert @ context.js:497
initialize @ context.js:190
(anonymous) @ manager.js:445
Promise.then (async)
_createOrOpenDocument @ manager.js:445
open @ manager.js:274
openOrReveal @ manager.js:298
_handleOpen @ listing.js:824
_evtDblClick @ listing.js:900
handleEvent @ listing.js:543
context.js:582 Uncaught (in promise) TypeError: Failed to execute 'text' on 'Response': body stream is locked
at Context._handleError (context.js:582)
at context.js:540
_handleError @ context.js:582
(anonymous) @ context.js:540
async function (async)
_handleError @ context.js:582
(anonymous) @ context.js:540
async function (async)
(anonymous) @ context.js:536
Promise.catch (async)
_revert @ context.js:533
initialize @ context.js:190
(anonymous) @ manager.js:445
Promise.then (async)
_createOrOpenDocument @ manager.js:445
open @ manager.js:274
openOrReveal @ manager.js:298
_handleOpen @ listing.js:824
_evtDblClick @ listing.js:900
handleEvent @ listing.js:543
Pip-managed package versions:
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Name: jupyterlab
Version: 2.0.1
Summary: The JupyterLab notebook server extension.
I tried deleting my .ipynb_checkpoints
folder, and am tracking all this stuff in git.
In my case, jupytext kept me from opening ipynb file becuase I edited ipynb file with another editor and not corresponding python file.
So I excuted rm CORRESPONDING.py
, then I could open the ipynb file.
这篇关于在JupyterLab中打开.ipynb时出错-“关闭而不保存?"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!