Skip to content

Namespace sharing between pysub and pyconsole #172

Open

Description

@reckoner
\begin{pyconsole}
import math
\end{pyconsole}

\begin{pysub}
$1 + 1 = !{math.sqrt(1+1)}$
\end{pysub}

The pysub block does not recognize the math import from the pyconsole block. Is there a way to fix this?

Activity

  1. gpoore commented on Sep 5, 2020

    @gpoore
    Owner

    Everything in the pycon* commands and environments is in a separate session from all the other py* command and environments. So nothing is shared between them. I suppose it would be possible to create a pyconsub...unfortunately, I have almost no time for writing software at present.

  2. reckoner commented on Sep 8, 2020

    @reckoner
    Author

    I would be willing to look into it, if you don't think it's too difficult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions