実現したいこと
ここに実現したいことを箇条書きで書いてください。
- Jupyter Notebookで実行し、応答を得ること。
(以下、纏まっていなくて、分かりにくくすみません。長文失礼いたします。
前提
Windows11 Home バージョン11H2
ここに質問の内容を詳しく書いてください。
(例)
Jupyter NotebookでPythonコマンドを実行しております。(下記、A,Bの2通りを行いました。)
■A
-
Anaconda Prompt (anaconda3) を起動。
-
Jupyter Notebookと入力し、Enter (以下の応答がありました)
ー----------------------------------------
[I 2023-03-18 10:34:20.234 LabApp] JupyterLab extension loaded from E:\Udemy\anaconda3\lib\site-packages\jupyterlab
[I 2023-03-18 10:34:20.234 LabApp] JupyterLab application directory is E:\Udemy\anaconda3\share\jupyter\lab
[I 10:34:20.250 NotebookApp] Serving notebooks from local directory: E:\Udemy\PyTouchで学ぶディープラーニング実装
[I 10:34:20.250 NotebookApp] Jupyter Notebook 6.4.12 is running at:
[I 10:34:20.250 NotebookApp] http://localhost:8888/?token=a7725a0619aec30d46cf02f493c290fd64561f736ead461a
[I 10:34:20.250 NotebookApp] or http://127.0.0.1:8888/?token=a7725a0619aec30d46cf02f493c290fd64561f736ead461a
[I 10:34:20.250 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:34:20.391 NotebookApp]
To access the notebook, open this file in a browser: file:///C:/Users/%E8%87%AA%E5%88%86/AppData/Roaming/jupyter/runtime/nbserver-3980-open.html Or copy and paste one of these URLs: http://localhost:8888/?token=a7725a0619aec30d46cf02f493c290fd64561f736ead461a or http://127.0.0.1:8888/?token=a7725a0619aec30d46cf02f493c290fd64561f736ead461a
ー----------------------------------------
-
Webブラウザ(Brave)のアドレス欄に、上記の「http://localhost:8888/?token=a7725a0619aec30d46cf02f493c290fd64561f736ead461a」をコピーし、Enter
-
表示された画面で、Python 3 (ipykernel) を選択
-
表示された画面で、print("Hello World") と入力し、▶Run をクリック。
→ 実行結果が表示されず、次のCellに移ってしまいます。
■B
- Windowsスタートメニューで、Jupyter Notebook(anaconda3)選択
→プロンプト画面が表示され、その中に以下が表示されました。
ー----------------------
[W 2023-03-18 10:43:14.007 LabApp] 'notebook_dir' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2023-03-18 10:43:14.007 LabApp] 'notebook_dir' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[I 2023-03-18 10:43:14.023 LabApp] JupyterLab extension loaded from E:\Udemy\anaconda3\lib\site-packages\jupyterlab
[I 2023-03-18 10:43:14.023 LabApp] JupyterLab application directory is E:\Udemy\anaconda3\share\jupyter\lab
[I 10:43:14.023 NotebookApp] Serving notebooks from local directory: C:\Users\自分
[I 10:43:14.023 NotebookApp] Jupyter Notebook 6.4.12 is running at:
[I 10:43:14.023 NotebookApp] http://localhost:8888/?token=b69cc2ebee8667afa4f8b77f0e649d3e2f91871e64eb9bbe
[I 10:43:14.023 NotebookApp] or http://127.0.0.1:8888/?token=b69cc2ebee8667afa4f8b77f0e649d3e2f91871e64eb9bbe
[I 10:43:14.023 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:43:14.132 NotebookApp]
To access the notebook, open this file in a browser: file:///C:/Users/%E8%87%AA%E5%88%86/AppData/Roaming/jupyter/runtime/nbserver-3024-open.html Or copy and paste one of these URLs: http://localhost:8888/?token=b69cc2ebee8667afa4f8b77f0e649d3e2f91871e64eb9bbe or http://127.0.0.1:8888/?token=b69cc2ebee8667afa4f8b77f0e649d3e2f91871e64eb9bbe
[I 10:43:57.087 NotebookApp] Saving file at /Untitled1.ipynb
E:\Udemy\anaconda3\lib\site-packages\nbformat_init_.py:128: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use normalize()
on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
E:\Udemy\anaconda3\lib\site-packages\notebook\services\contents\manager.py:353: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use normalize()
on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate_nb(model['content'])
ー--------------------------------------------
-
Webブラウザ(Brave)のアドレス欄に、上記の「http://localhost:8888/?token=b69cc2ebee8667afa4f8b77f0e649d3e2f91871e64eb9bbe」をコピーし、Enter
-
表示された画面で、Python 3 (ipykernel) を選択
-
表示された画面で、print("Hello World") と入力し、▶Run をクリック。
→ 実行結果が表示されず、次のCellに移ってしまいます。
発生している問題・エラーメッセージ
エラーメッセージ
該当のソースコード
ソースコード
試したこと
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。