我重新安装了miniconda, sympy, spyder, qtconsole, matplotlib,并在spyder下试用了sympy。但是,来自控制台的任何输出都会冻结内核,使会话没有响应性:

注意右上角的红色方格,表示评估永不停止。如果关闭pretty_print,输出可能会显示:

我安装了乳胶,工作很好。我试着玩init_printing,但是除非我关掉pretty_print,否则什么都不能用。我确实需要输出是可读的。我卸载和重新安装,但没有运气。如何解决pretty_print的输出问题?该系统是windows 10,从2021年7月10日起,一切都是默认的最新版本。
发布于 2022-06-10 07:46:19
我遇到了同样的问题,并通过显式调用init_printing(使用_latex=‘mathjax’)来解决这个问题。正如下面的文档所指出的那样,默认情况下,use_latex=None和sympy应该能够自动找到一个乳胶呈现选项,但是它似乎没有这样做,并以某种方式被卡住了。
use_latex : string, boolean, or None, default=None
If True, use default LaTeX rendering in GUI interfaces (png and
mathjax);
if False, do not use LaTeX rendering;
if None, make a guess based on the environment;
if 'png', enable latex rendering with an external latex compiler,
falling back to matplotlib if external compilation fails;
if 'matplotlib', enable LaTeX rendering with matplotlib;
if 'mathjax', enable LaTeX text generation, for example MathJax
rendering in IPython notebook or text rendering in LaTeX documents;
if 'svg', enable LaTeX rendering with an external latex compiler,
no fallbackhttps://stackoverflow.com/questions/68330572
复制相似问题