0
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?

「chromebookにJupyterをインストール」をAI先生に教えてもらいました。

0
Last updated at Posted at 2026-04-24

「chromebookにJupyterをインストール」をAI先生に教えてもらいました。

・chromebookにClaude Codeをインストールをしようと思って、無料!無料!と言っていたら、「あなたの場合 はClaude Code よりSymPy + FreeCAD 環境の方がかなり有益です。」と言われて、なすがままに「完璧です ここまでできればSymPy 環境の管理は問題ありません。」

現在: unable to flush updated status of 'libgts-bin': No space left on device
??? 出てしまいました。

(本日の)ChatGPT先生へ

(回答抜粋)前半は無視して下さい。32.からです。

1. 以下の容量で Claude Codeをインストールできますか。
2. 1
3. 以下はどうですか。Filesystem     1K-blocks    Used Available Use% Mounted on
4. Available が 2G 以上 ?
5. どの フォルダー?
6. /home/mrrclb48z/FreeCAD_1.1.1-Linux-x86_64-py311.AppImage.1
7. /home/mrrclb48z/squashfs-root
8. 消した
9. /dev/vdc        10905188 7050844   3096324  70% /
10. -bash: claude: command not found
11.   npm help
12. /usr/local/lib └── (empty)
13. npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'
14. added 3 packages in 1m
15. 2.1.119 (Claude Code)
16. Choose the text style that looks best with your terminal
17. Pretty ない
18. ❯ 2. Dark mode ✔
19. Claude Code can be used with your Claude subscription or billed based on API usage through
20. いいえ。無料でお願いします。
21. Paste code here if prompted >
22. **無料がない**
23. sympy
24. Claude はどうなるの
25. 消した。他にまだ残っていますか
26. └── (empty)
27. 有益で
28. hint: See PEP 668 for the detailed specification.
29. 終わらない
30. 終わった
31. -bash: /home/mrrclb48z/sympy-env/bin/activate: No such file or directory
32. (sympy-env)
33. 終了して、再実行したい。
34. NameError: name 'deactivate' is not defined
35. (sympy-env) mrrclb48z@penguin:~$ deactivate
36. 続けて
37. vscode との違いがわかりません
38. jupyter は?
39. 終わらない
40. ctrl+D で終了ですか
41. jupyter はオフラインでもできますか
42. 上記の私の質問すべてから、Markdownのテキスト形式で、質問リストを出力して。追番を追加して。本質問も含めて。コピーできる形式で。空白行不要です。
jupyter はオフラインでもできますか

:contentReference[oaicite:0]{index=0} はオフラインで使えます

???

むしろ基本はローカル(自分のPC内)で動きます。
...
jupyter notebook
を実行すると
http://localhost:8888
が出ます。
これは
インターネットではなく
自分のPC自身
です。
なので
Wi-Fiなしでも使える
ことが多いです。
オフラインでできること
...

(以下省略)

(続けて)ChatGPT先生へ

jupyter notebook が使えることがわかりましたが、私のchromebookにpythonがいくつ入っていますか。

あなたの Chromebook で「ありそうなもの」
今までの流れから、たぶん
① システムの Python
/usr/bin/python3
(ChromeOS Linux 標準)
② 仮想環境の Python
~/sympy-env/bin/python
(あなたが作った venv)
の 少なくとも2つ があります。
これは
システムPython + venv用Python
なので普通です。

正確に知るには...

ls -l /usr/bin/python*
ls -l ~/sympy-env/bin/python*

結果を貼ってくれれば、

lrwxrwxrwx 1 root root      10 Apr  9  2023 /usr/bin/python3 -> python3.11
-rwxr-xr-x 1 root root 6831736 Apr 28  2025 /usr/bin/python3.11
lrwxrwxrwx 1 root root      34 Apr 28  2025 /usr/bin/python3.11-config -> x86_64-linux-gnu-python3.11-config
lrwxrwxrwx 1 root root      17 Apr  9  2023 /usr/bin/python3-config -> python3.11-config
#
lrwxrwxrwx 1 mrrclb48z mrrclb48z  7 Apr 24 11:49 /home/mrrclb48z/sympy-env/bin/python -> python3
lrwxrwxrwx 1 mrrclb48z mrrclb48z 16 Apr 24 11:49 /home/mrrclb48z/sympy-env/bin/python3 -> /usr/bin/python3
lrwxrwxrwx 1 mrrclb48z mrrclb48z  7 Apr 24 11:49 /home/mrrclb48z/sympy-env/bin/python3.11 -> python3

壊れていません
...
sympy-env は正常

(さらに続けて)ChatGPT先生へ

Jupyter をシェルフに登録したい。

作成コマンド...(nano がないので、catにしてほしい。)

mkdir -p ~/.local/share/applications

cat << 'EOF' > ~/.local/share/applications/jupyter.desktop
[Desktop Entry]
Name=Jupyter Notebook
Comment=Start Jupyter Notebook
Exec=bash -lc "source ~/sympy-env/bin/activate && jupyter notebook"
Terminal=true
Type=Application
Categories=Development;
EOF
chmod +x ~/.local/share/applications/jupyter.desktop
terminal で止まる。freecad のアイコンと同じ絵柄は困ります。

修正版(おすすめ)

cat << 'EOF' > ~/.local/share/applications/jupyter.desktop
[Desktop Entry]
Name=Jupyter Notebook
Comment=Start Jupyter Notebook
Exec=bash -lc "source ~/sympy-env/bin/activate && jupyter notebook --no-browser"
Terminal=false
Type=Application
Icon=utilities-terminal
Categories=Development;
EOF
chmod +x ~/.local/share/applications/jupyter.desktop
cat << 'EOF' > ~/.local/share/applications/jupyter.desktop
[Desktop Entry]
Name=Jupyter Notebook
Comment=Start Jupyter Notebook
Exec=bash -lc "source ~/sympy-env/bin/activate && jupyter notebook --no-browser"
Terminal=false
Type=Application
Icon=accessories-text-editor
Categories=Development;
EOF
freecad も起動しなくなった

それはかなり高確率で .desktop ファイルの影響(関連付け・起動コマンドの破壊) か、ランチャー側のキャッシュ混乱です。
Jupyter の設定を入れたタイミングで起きる典型パターンです。
???

いつもと違うおすすめです。

0
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
0
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?