mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Update commend on reload_scene
This commit is contained in:
parent
8cf95ec9a4
commit
32d36a09f6
1 changed files with 3 additions and 3 deletions
|
@ -118,8 +118,8 @@ def reload_scene(embed_line: int | None = None) -> None:
|
|||
|
||||
Before reload, the scene is cleared and the entire state is reset, such
|
||||
that we can start from a clean slate. This is taken care of by the
|
||||
ReloadManager, which will catch the error raised by the `exit_raise`
|
||||
magic command that we invoke here.
|
||||
run_scenes function in __main__.py, which will catch the error raised by the
|
||||
`exit_raise` magic command that we invoke here.
|
||||
|
||||
Note that we cannot define a custom exception class for this error,
|
||||
since the IPython kernel will swallow any exception. While we can catch
|
||||
|
@ -131,7 +131,7 @@ def reload_scene(embed_line: int | None = None) -> None:
|
|||
if not shell:
|
||||
return
|
||||
|
||||
# Update the global run configuration
|
||||
# Update the global run configuration.
|
||||
run_config = get_global_config()["run"]
|
||||
run_config["is_reload"] = True
|
||||
if embed_line:
|
||||
|
|
Loading…
Add table
Reference in a new issue