Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-docs

Tools and environments in the Claude Science desktop app changedclaude-science/tools-and-environments

Nearest release: v2.1.335, published an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 2 Dec 2026 20:07 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 20:07 UTC.

Upstream edited
Recorded here
Lines+7added
Lines−31removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits12to this page, all time

# Tools and environments in the Claude Science desktop app # Tools and environments ### How Claude Science detects a GPU

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1# Tools and environments
1# Tools and environments in the Claude Science desktop app
22 
3> Claude writes and runs Python, R, and shell commands.
3> In the Claude Science desktop app, where Claude's Python and R environments live, and why some packages can't be installed.
44 
5Claude writes and runs Python, R, and shell commands (PowerShell on Windows). Python and R run in a persistent kernel that keeps variables in memory across steps in a session. The kernel ends after about 30 minutes idle, when a package install restarts its environment, or when the session ends.
5> [!WARNING]
6>
7> Claude Science is moving from the standalone Claude Science desktop app into Claude. Access to the app will be removed soon. [Learn more](https://claude.ai/move-claude-science) about how to add your Claude Science app work to Claude.
68 
9In the Claude Science desktop app, Claude writes and runs Python, R, and shell commands (PowerShell on Windows). Python and R run in a persistent kernel that keeps variables in memory across steps in a session. The kernel ends after about 30 minutes idle, when Claude uninstalls a package from its environment, or when the session ends.
10 
711## Starter environments
812 
913First launch creates two read-only conda environments in \~/.claude-science:
from line 31
2731 
2832A package installed into an environment is permanent and available in every session and project using that environment. A package installed inline in a code cell (`pip install` or `install.packages()`) lasts only until the kernel restarts. To keep a package, ask Claude to install it into the environment. For a Python package Claude can't install there with pip, see [Python package sources for starter and task environments](#python-package-sources-for-starter-and-task-environments).
2933 
30For tools without a package, Claude downloads source, builds it in the sandbox with compilers from conda-forge, and saves the build as an artifact for reuse.
31 
3234The sandbox has no root access or system package manager. `apt` and `sudo` aren't available; Claude uses conda-forge or builds from source instead.
3335 
3436### Python package sources for starter and task environments
from line 62
6062> [!NOTE]
6163>
6264> Turning on the **Host GPU** switch reduces the default sandboxing configuration applied by Claude Science. Code in GPU sessions uses your graphics driver directly.
63 
64If Claude Science finds no GPU, Claude notes this when a task needs one and can run the work on the remote compute you've connected. See [Remote compute clusters](https://claude.com/docs/claude-science/remote-compute-clusters.md) and [Compute providers](https://claude.com/docs/claude-science/compute-providers.md). If your machine has an NVIDIA GPU but the **Host GPU** switch isn't in **Settings > Compute**, or Claude says there's no GPU in a session started with the switch on, see [How Claude Science detects a GPU](#how-claude-science-detects-a-gpu).
65 
66### How Claude Science detects a GPU
67 
68On Linux, Claude Science detects an NVIDIA GPU by running `nvidia-smi`. When it finds no GPU this way, Claude treats the machine as having no GPU, and the **Host GPU** switch doesn't appear in **Settings > Compute** unless it's already on.
69 
70Claude Science runs the first `nvidia-smi` it finds in these folders, in this order:
71 
721. `/usr/local/nvidia/bin`
732. `/usr/bin`
743. `/bin`
754. `/usr/lib/wsl/lib`
765. `/opt/bin`
77 
78To see which folder yours is in, run `command -v nvidia-smi` in a terminal outside Claude Science. Claude Science doesn't look for `nvidia-smi` in any other folder, such as `/usr/local/bin`. If the `nvidia-smi` in a listed folder is a link, the file it finally leads to, after any other links, must also be named `nvidia-smi` and be under `/usr`, `/lib`, `/lib64`, `/bin`, `/sbin`, or `/opt`. To see the file a link finally leads to, run `readlink -f` with its path, for example `readlink -f /usr/bin/nvidia-smi`.
79 
80`nvidia-smi` also has to work without the `LD_LIBRARY_PATH` environment variable, because Claude Science doesn't pass that variable on to it, even when your terminal has it set. To check, run it in a terminal outside Claude Science by its full path with the variable removed, for example `env -u LD_LIBRARY_PATH /usr/bin/nvidia-smi`. If that fails where plain `nvidia-smi` works, the variable is the reason. Make `nvidia-smi` work without the variable, or ask your system administrator to.
81 
82If `nvidia-smi` is in another folder, link it into `/usr/bin`, which takes administrator (`sudo`) access. If you don't have that access, ask your system administrator to make the link. For example, when `nvidia-smi` is in `/usr/local/bin`, run this in a terminal outside Claude Science:
83 
84```bash theme={null}
85sudo ln -s /usr/local/bin/nvidia-smi /usr/bin/nvidia-smi
86```
87 
88After either fix is in place, run `claude-science stop` in a terminal outside Claude Science and start Claude Science again. If Claude Science then finds the GPU, the **Host GPU** switch is in **Settings > Compute** and its label shows the GPU's name. Turn it on if it's off, then start a new session, not one made with **Continue as a new session**.
8965 
Feedback