Skip to content

Commit 7d5192d

Browse files
ouiliameclaude
andcommitted
docs(function): teach readers to list the sandbox's installed packages
The Python package set lives in the E2B template (mothership-shell), which is not pinned in this repo — a hand-written list would be unverifiable and would drift silently when the template is rebuilt. Instead the callout now gives the one-liner that asks the sandbox itself, which is always current. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c563f48 commit 7d5192d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/docs/content/docs/en/workflows/blocks/function.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ JavaScript runs in a fast local sandbox, or in an [E2B](https://e2b.dev) sandbox
5656
| **Best for** | quick transforms, JSON | data science, charts, complex math |
5757

5858
<Callout type="info">
59-
Python requires E2B. It is enabled by default on sim.ai; on a self-hosted instance, enable E2B to see Python in the language dropdown. The sandbox includes the Python standard library and common packages like `matplotlib`, and any figures you generate are captured as images automatically.
59+
Python requires E2B. It is enabled by default on sim.ai; on a self-hosted instance, enable E2B to see Python in the language dropdown. The sandbox includes the Python standard library and common packages like `matplotlib`, and any figures you generate are captured as images automatically. To see exactly what's installed, run a one-line Function: `import importlib.metadata; return sorted(d.metadata["Name"] for d in importlib.metadata.distributions())`.
6060
</Callout>
6161

6262
## Examples

0 commit comments

Comments
 (0)