Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • $\begingroup$ I am curious: what does Clear["Global`*"] do? I have seen this before but do not understand the logic behind it. Thank you! $\endgroup$ Commented Nov 27, 2022 at 21:11
  • 2
    $\begingroup$ @MathIsHard It clears all variables from global context. Good idea to use it before starting new code. You could also restart the kernel. They are not exactly the same. Restarting the kernel really cleans everything. $\endgroup$ Commented Nov 27, 2022 at 21:14