質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Jupyter

Jupyter (旧IPython notebook)は、Notebook形式でドキュメント作成し、プログラムの記述・実行、その実行結果を記録するツールです。メモの作成や保存、共有、確認などもブラウザ上で行うことができます。

シェル

シェル(shell)はUnix や Linux 系のOSで使用されるコマンドインタプリタを指します。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

2回答

6583閲覧

Jupyter notebookを起動させようとするとエラーが出る

a17.zaq0327

総合スコア4

Jupyter

Jupyter (旧IPython notebook)は、Notebook形式でドキュメント作成し、プログラムの記述・実行、その実行結果を記録するツールです。メモの作成や保存、共有、確認などもブラウザ上で行うことができます。

シェル

シェル(shell)はUnix や Linux 系のOSで使用されるコマンドインタプリタを指します。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2020/01/24 13:24

編集2020/01/25 15:11

Jupyter notebookを起動させようとしたらエラーが出るようになりました

ターミナルからJupyter notebookを起動させたいです。
以前はターミナルにjupyter notebookと打ち込むだけで起動出来たのですが、何かの不具合でウィンドウが開きません。
また、アイコンから起動させようとしても同様のエラーが表示されます。

発生している問題・エラーメッセージ

This launches a Tornado based HTML Notebook Server that serves up an HTML5/Javascript Notebook client.

該当のソースコード

python

1This launches a Tornado based HTML Notebook Server that serves up an 2HTML5/Javascript Notebook client. 3 4Subcommands 5----------- 6 7Subcommands are launched as `jupyter-notebook cmd [args]`. For information on 8using subcommand 'cmd', do: `jupyter-notebook cmd -h`. 9 10list 11 List currently running notebook servers. 12stop 13 Stop currently running notebook server for a given port 14password 15 Set a password for the notebook server. 16 17Options 18------- 19 20Arguments that take values are actually convenience aliases to full 21Configurables, whose aliases are listed on the help line. For more information 22on full configurables, see '--help-all'. 23 24--debug 25 set log level to logging.DEBUG (maximize logging output) 26--generate-config 27 generate default config file 28-y 29 Answer yes to any questions instead of prompting. 30--no-browser 31 Don't open the notebook in a browser after startup. 32--pylab 33 DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib. 34--no-mathjax 35 Disable MathJax 36 37 MathJax is the javascript library Jupyter uses to render math/LaTeX. It is 38 very large, so you may want to disable it if you have a slow internet 39 connection, or for offline use of the notebook. 40 41 When disabled, equations etc. will appear as their untransformed TeX source. 42--allow-root 43 Allow the notebook to be run from root user. 44--script 45 DEPRECATED, IGNORED 46--no-script 47 DEPRECATED, IGNORED 48--log-level=<Enum> (Application.log_level) 49 Default: 30 50 Choices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL') 51 Set the log level by value or name. 52--config=<Unicode> (JupyterApp.config_file) 53 Default: '' 54 Full path of a config file. 55--ip=<Unicode> (NotebookApp.ip) 56 Default: 'localhost' 57 The IP address the notebook server will listen on. 58--port=<Int> (NotebookApp.port) 59 Default: 8888 60 The port the notebook server will listen on. 61--port-retries=<Int> (NotebookApp.port_retries) 62 Default: 50 63 The number of additional ports to try if the specified port is not 64 available. 65--transport=<CaselessStrEnum> (KernelManager.transport) 66 Default: 'tcp' 67 Choices: ['tcp', 'ipc'] 68--keyfile=<Unicode> (NotebookApp.keyfile) 69 Default: '' 70 The full path to a private key file for usage with SSL/TLS. 71--certfile=<Unicode> (NotebookApp.certfile) 72 Default: '' 73 The full path to an SSL/TLS certificate file. 74--client-ca=<Unicode> (NotebookApp.client_ca) 75 Default: '' 76 The full path to a certificate authority certificate for SSL/TLS client 77 authentication. 78--notebook-dir=<Unicode> (NotebookApp.notebook_dir) 79 Default: '' 80 The directory to use for notebooks and kernels. 81--browser=<Unicode> (NotebookApp.browser) 82 Default: '' 83 Specify what command to use to invoke a web browser when opening the 84 notebook. If not specified, the default browser will be determined by the 85 `webbrowser` standard library module, which allows setting of the BROWSER 86 environment variable to override it. 87--pylab=<Unicode> (NotebookApp.pylab) 88 Default: 'disabled' 89 DISABLED: use %pylab or %matplotlib in the notebook to enable matplotlib. 90--gateway-url=<Unicode> (GatewayClient.url) 91 Default: None 92 The url of the Kernel or Enterprise Gateway server where kernel 93 specifications are defined and kernel management takes place. If defined, 94 this Notebook server acts as a proxy for all kernel management and kernel 95 specification retrieval. (JUPYTER_GATEWAY_URL env var) 96 97To see all available configurables, use `--help-all` 98 99Examples 100-------- 101 102 jupyter notebook # start the notebook 103 jupyter notebook --certfile=mycert.pem # use SSL/TLS certificate 104 jupyter notebook password # enter a password to protect the server 105 106[C 22:11:18.071 NotebookApp] Bad config encountered during initialization: 107[C 22:11:18.071 NotebookApp] The 'kernel_spec_manager_class' trait of <notebook.notebookapp.NotebookApp object at 0x10c1803c8> instance must be a type, but 'environment_kernels.EnvironmentKernelSpecManager' could not be imported

試したこと

調べてみたところ、シェルを変えると直るとの記述があったため、bashに変更してみました。しかし、直りませんでした。

補足情報(FW/ツールのバージョンなど)

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

つい最近同様エラー出ましたが
Jupyter Notebookで仮想環境を使用できなくなってしまった時の対処法にて解消しました。参考まで。

(py4kasou) ~$ pip install environment-kernels

はい。これだけ。

投稿2020/02/20 13:55

can110

総合スコア38266

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

Examples

jupyter notebook # start the notebook

上記ログを参照しますと、コマンドは jupyter notebook だけで起動できそうです。
起動に失敗する原因は以下だと思われます。

[C 22:11:18.071 NotebookApp] Bad config encountered during initialization:

[C 22:11:18.071 NotebookApp] The 'kernel_spec_manager_class' trait of <notebook.notebookapp.NotebookApp object at 0x10c1803c8> instance must be a type, but 'environment_kernels.EnvironmentKernelSpecManager' could not be imported

可能であれば、jupyter notebookを再インストールしてみてはいかがでしょうか。

投稿2020/02/20 13:11

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問