diff --git a/notebooks/tests/let.ipynb b/notebooks/tests/let.ipynb index 968949cce2fc3bba4ef89f6924f28f164f5db407..5db7904b4f7be3621244395a39b5d449bd854e4a 100644 --- a/notebooks/tests/let.ipynb +++ b/notebooks/tests/let.ipynb @@ -16,7 +16,7 @@ "\n", "The expression is evaluated once in the current state, and its value is stored. Once set, variables are available in all states. A variable created by `:let` shadows any identifier with the same name from the machine.\n", "\n", - "Variables created by `:let` are retained even when a different machine is loaded. To remove a variable, use `:unlet`.\n", + "Variables created by `:let` are discarded when a new machine is loaded (or the current machine is reloaded). The `:unlet` command can also be used to manually remove local variables.\n", "\n", "**Note:** The values of local variables are currently stored in text form. Values must have a syntactically valid text representation, and large values may cause performance issues." ], @@ -26,7 +26,7 @@ "\n", "The expression is evaluated once in the current state, and its value is stored. Once set, variables are available in all states. A variable created by `:let` shadows any identifier with the same name from the machine.\n", "\n", - "Variables created by `:let` are retained even when a different machine is loaded. To remove a variable, use `:unlet`.\n", + "Variables created by `:let` are discarded when a new machine is loaded (or the current machine is reloaded). The `:unlet` command can also be used to manually remove local variables.\n", "\n", "**Note:** The values of local variables are currently stored in text form. Values must have a syntactically valid text representation, and large values may cause performance issues." ] diff --git a/src/main/java/de/prob2/jupyter/commands/LetCommand.java b/src/main/java/de/prob2/jupyter/commands/LetCommand.java index 814fb520e9aa28c92a1cab46ad3d9af03a8c7555..0d0a0592afb4f0afdad05b66e8d33fa78cb51a2d 100644 --- a/src/main/java/de/prob2/jupyter/commands/LetCommand.java +++ b/src/main/java/de/prob2/jupyter/commands/LetCommand.java @@ -61,7 +61,7 @@ public final class LetCommand implements Command { @Override public @NotNull String getHelpBody() { return "The expression is evaluated once in the current state, and its value is stored. Once set, variables are available in all states. A variable created by `:let` shadows any identifier with the same name from the machine.\n\n" - + "Variables created by `:let` are retained even when a different machine is loaded. To remove a variable, use `:unlet`.\n\n" + + "Variables created by `:let` are discarded when a new machine is loaded (or the current machine is reloaded). The `:unlet` command can also be used to manually remove local variables.\n\n" + "**Note:** The values of local variables are currently stored in text form. Values must have a syntactically valid text representation, and large values may cause performance issues."; }