Jupyter的Voila引发错误:引发NotImplementedError https://github.com/mkdocs/mkdocs/commit/2172c9f999b172011027

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jupyter的Voila引发错误:引发NotImplementedError https://github.com/mkdocs/mkdocs/commit/2172c9f999b172011027相关的知识,希望对你有一定的参考价值。

我正在使用Python 3.8,这是jupyter --version的打印输出:

jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : not installed
ipython          : 7.13.0
ipykernel        : 5.1.4
jupyter client   : 6.0.0
jupyter lab      : 2.0.0
nbconvert        : 5.6.1
ipywidgets       : 7.5.1
nbformat         : 5.0.4
traitlets        : 4.3.3

我实际上没有做任何事情,但以下内容(直接来自文档):

pip install voila
git clone https://github.com/QuantStack/voila
cd voila
voila notebooks/bqplot.ipynb

哪个打印此:

Traceback (most recent call last):
  File "c:\program files\python38\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\program files\python38\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Python38\Scripts\voila.exe\__main__.py", line 7, in <module>
  File "c:\program files\python38\lib\site-packages\traitlets\config\application.py", line 664, in launch_instance
    app.start()
  File "c:\program files\python38\lib\site-packages\voila\app.py", line 509, in start
    self.listen()
  File "c:\program files\python38\lib\site-packages\voila\app.py", line 529, in listen
    self.app.listen(port)
  File "c:\program files\python38\lib\site-packages\tornado\web.py", line 2116, in listen
    server.listen(port, address)
  File "c:\program files\python38\lib\site-packages\tornado\tcpserver.py", line 152, in listen
    self.add_sockets(sockets)
  File "c:\program files\python38\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets
    self._handlers[sock.fileno()] = add_accept_handler(
  File "c:\program files\python38\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler
    io_loop.add_handler(sock, accept_handler, IOLoop.READ)
  File "c:\program files\python38\lib\site-packages\tornado\platform\asyncio.py", line 100, in add_handler
    self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ)
  File "c:\program files\python38\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError

我是Jupyter Notebooks / Lab的初学者。我该如何解决?

答案

在“导入异步”之后,在asyncio.py

以上是关于Jupyter的Voila引发错误:引发NotImplementedError https://github.com/mkdocs/mkdocs/commit/2172c9f999b172011027的主要内容,如果未能解决你的问题,请参考以下文章

当我在 jupyter notebook 中使用 matplotlib 时,它总是引发“matplotlib 当前正在使用非 GUI 后端”错误?

用 voila 在 jupyter 中绘制 pandas 数据框

Windows:Jupyter 如何引发键盘中断?

python 这个小脚本使用Python 2或3(无论你运行它们)执行Jupyter笔记本,如果引发任何异常则会失败。

引发异常“这是错误”和引发“这是错误”之间的区别? [复制]

当emacs尝试连接到ipython / jupyter服务器时,ein失败