Skip to content

No console support for Sage ? #127

@EmmanuelCharpentier

Description

@EmmanuelCharpentier

Well, with

\usepackage[usefamily={py,sage},gobble=auto]{pythontex}

in my preamble, this works :

  \begin{sageblock}
    var("a,b,x")
    E=a*x+b
    S=E.solve(x)
  \end{sageblock}

As well as this :

  \begin{pyconsole}
    a=1
    b=2
    a+b
  \end{pyconsole}

But this fails :

  \begin{sageconsole}
    a=1
    b=2
    a+b
  \end{sageconsole}

with the following "explanation" (*TeX Help* buffer in AUCTeX...) :

ERROR: LaTeX Error: Environment sageconsole undefined.

--- TeX said ---

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.3   \begin{sageconsole}
                         
--- HELP ---
LaTeX has encountered a \begin command for a nonexistent environment.
You probably misspelled the environment name. 

Ditto if I try sagecon. Is this expected (i. e. partial implementation) or not (i. e. a bug) ?

I haven't been able to find a relevant issue (opened or closed) except #63 (closed about two years ago).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions