[英]Jupyter Kernel dies from nbconvert but not on jupyter
我創建了一個簡單的內核,它包裝單元格的內容並在 jupyter 上的特定數據庫中將其作為 SQL 執行。
當我在安裝它的 jupyter notebook 上打開內核時,內核完全按預期工作,並且執行得很好。
但是當我嘗試使用 nbconvert 執行筆記本時,它會在回復之前引發以下關於內核已死的錯誤。
Exception in thread Thread-31:
Traceback (most recent call last):
File "/opt/anaconda/4.2.0/envs/py36/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/opt/anaconda/4.2.0/envs/py36/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "<ipython-input-5-d1a08220a4cf>", line 87, in threadedOperation
ep.preprocess(nb, {'metadata': {'path': ''}})
File "/opt/anaconda/4.2.0/envs/py36/lib/python3.6/site-packages/nbconvert/preprocessors/execute.py", line 257, in preprocess
cwd=path)
File "/opt/anaconda/4.2.0/envs/py36/lib/python3.6/site-packages/nbconvert/preprocessors/execute.py", line 241, in start_new_kernel
kc.wait_for_ready(timeout=startup_timeout)
File "/opt/anaconda/4.2.0/envs/py36/lib/python3.6/site-packages/jupyter_client/blocking/client.py", line 120, in wait_for_ready
raise RuntimeError('Kernel died before replying to kernel_info')
RuntimeError: Kernel died before replying to kernel_info
關於可能導致這種情況的原因或我可以從哪里開始尋找答案的任何想法?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.