10
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

jupyter notebookで実行できない!

Posted at

jupyterで遊ぼうとインストールしていざ立ち上げると、うんともすんとも言わなくて困ったので同じような状況の方がいればと思い、走り書きます

解決法

tornadoというWebフレームワークのバージョン6で、なにやらおかしなことが起きてるようでしたので、5.1.1にダウングレードします

pip uninstall tornado
pip install tornado==5.1.1

状況

こういう記事では序盤に能書きをたれていると腹が立つかなと思い、いつも後ろに詳細を書いています

環境

  • macOS 10.14.3
  • pyenv
    • Python 3.7.1

解説?

振り返ると何ということはない、エラーを見ていなかったから苦労したんですよね
困ったらまずエラーを読んでエラーメッセージでググるのは基本です(?)

RuntimeWarning: coroutine 'WebSocketHandler.get' was never awaited

というエラーが見えたので、とりあえずググってみるとstackoverflowが出てきました

そもそもWebSocketの接続にエラーがあったせいでkernelとの接続に失敗していたようです
そりゃ実行できないワケです

教訓

jupyterが動かなかったら

  • 左上のインジケータでkernelとの接続状況を確認すること
  • ターミナルに戻ってエラーメッセージをがんばって読むこと

心を折る前に初心にかえることですね
こんなことで数時間悩みました

…ようやく動くようになったので遊んできます…

10
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?