Open JamieMair opened 2 years ago
A temporary fix I have found is to add the following to the top of the book.tex
file:
\begin{juliaconcode}
include("support_code.jl")
\end{juliaconcode}
This isn't a proper solution, since this is included in the book, which is not what I want. Hopefully hiding it from the book will be an easy fix. I have tried wrapping it in an \ifx
statement, but this removes it from the latex file and doesn't call the code.
Hello JamieMair. The pythontex documentation states: "Notice that there is not a command or environment for console content that parallels the block command and environment. That is, there is not a command or environment that both typesets and executes code in the console, but does not show the output. This is intentional. In most cases, if you are going to use the console, you should use it consistently, showing input and output together."
Unfortunately, as you have seen, there are cases where we do actually want to use the console without showing input and output together. This currently seems to require a change to pythontex to enable that functionality.
I have an algorithm defined as follows:
This algorithm is rendered correctly and I can use it in tests, but not in the console environment:
Doing this produces the following:![image](https://user-images.githubusercontent.com/13971435/149603089-99e30cdd-f660-4b77-b75b-5973f1a9cd84.png)
How can I access these functions in the console space?