julia_restart
Restart a Julia session to clear all state when it becomes broken. Use only as a last resort since Revise.jl automatically updates code changes.
Instructions
Restart a Julia session, clearing all state.
IMPORTANT: Restarting is slow and loses all session state. Very rarely needed. Revise.jl is loaded automatically in every session, so code changes to loaded packages are picked up without restarting. Only restart as a last resort when the session is truly broken, or code changes that Revise cannot fix. Do NOT restart just because source files were edited between script or test runs — Revise picks up those changes automatically.
Args: env_path: Environment to restart. If omitted, restarts the temporary session (NOT every active session) — most callers should pass the same env_path they used in julia_eval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |