Dependency usage tracking for citations#
Return whether Cython profiling is enabled.
sage: from sage.misc.citation import cython_profile_enabled sage: cython_profile_enabled() # random False sage: type(cython_profile_enabled()) is bool True
Return a list of the systems used in running the command
Note that the results can sometimes include systems that did not actually contribute to the computation. Due to caching, it could miss some dependencies as well.
cmd– a string to run
In order to properly support Cython code, this requires that Sage was compiled with the environment variable
SAGE_PROFILE=yes. If this was not the case, a warning will be given when calling this function.
sage: from sage.misc.citation import get_systems sage: get_systems('print("hello")') # random (may print warning)  sage: integrate(x^2, x) # Priming coercion model 1/3*x^3 sage: get_systems('integrate(x^2, x)') ['Maxima', 'ginac'] sage: R.<x,y,z> = QQ sage: I = R.ideal(x^2+y^2, z^2+y) sage: get_systems('I.primary_decomposition()') ['Singular']