Self-restarting MathKernel - is it possible in Mathematica?

前端 未结 6 1233
慢半拍i
慢半拍i 2021-02-01 10:06

This question comes from the recent question \"Correct way to cap Mathematica memory use?\"

I wonder, is it possible to programmatically restart MathKernel keeping the c

6条回答
  •  日久生厌
    2021-02-01 10:52

    Sounds like a job for CleanSlate.

    << Utilities`CleanSlate`;
    CleanSlate[]
    

    From: http://library.wolfram.com/infocenter/TechNotes/4718/

    "CleanSlate, tries to do everything possible to return the kernel to the state it was in when the CleanSlate.m package was initially loaded."

提交回复
热议问题