Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The function "view(" doesn't seem to work with jupyter notebook

I'm sorry if the question was already answered somewhere, but I did not find out an answer by myself:

In the "old" sagemath notebooks, there was a function "view" to display latex that MathJax cannot display. For instance the sage documentation proposes the following:

from sage.graphs.graph_latex import setup_latex_preamble
setup_latex_preamble()
latex.engine('pdflatex')
latex.add_to_mathjax_avoid_list('tikzpicture')
view(graphs.CompleteGraph(4))

  • In the "old" sage notebook, this produces a png version of a graph (compiled from latex), which is inserted into the output of the cell
  • In the Jupyter netbook, by contrast, it opens a pdf version of the graph into an external window.

Is there some way to obtain, in the Jupyter notebook, the same behaviour as in the "old netbook" ?

Thanks

The function "view(" doesn't seem to work with jupyter notebook

I'm sorry if the question was already answered somewhere, but I did not find out an answer by myself:

In the "old" sagemath notebooks, there was a function "view" to display latex that MathJax cannot display. For instance the sage documentation proposes the following:

 from sage.graphs.graph_latex import setup_latex_preamble 
setup_latex_preamble()
latex.engine('pdflatex')
latex.add_to_mathjax_avoid_list('tikzpicture')
view(graphs.CompleteGraph(4))view(graphs.CompleteGraph(4))

  • In the "old" sage notebook, this produces a png version of a graph (compiled from latex), which is inserted into the output of the cell
  • In the Jupyter netbook, by contrast, it opens a pdf version of the graph into an external window.

Is there some way to obtain, in the Jupyter notebook, the same behaviour as in the "old netbook" ?

Thanks