Closed szhorvat closed 4 years ago
The WolframLanguageForJupyter
kernel is started by WolframKernel
with the -script
option.
This problem is inherent to that environment.
You should run into similar constraints with invocations like ./WolframKernel -run "Print[Trace[x=2+2]]"
.
It may be a good idea to try to launch the kernel script from wolframscript
and -file
, if they are available, since doing so will not cause this limitation.
There is an internal bug report for this limitation of the -script
WolframKernel
environment, and hopefully it will be fixed soon.
For now, I will close this issue: I will update it with any new information that appears.
Trace
does not seem to work. It always returns{}
.Code:
I thought that this happens because we are always in some evaluation (this can e.g. be detected with
Stack[]
, which is not empty at the "top level"), but it's not clear why that would break Trace ...On[]
andOff[]
also do not work, for tracing purposes.Compare the command line: