Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SageMath Version 9.5: codegen function does not exist in Jupyter notebooks

Hello,

I get the following error when I try the example given by benjaminfjones at ask.sagemath.org_question_7922_export-to-c-code. (Replace _ with / to get the link)

NameError: name 'codegen' is not defined.

I am using the jupyter notebooks version of SageMath. The version of SageMath is 9.5.

Here's what the command window shows: SageMath version 9.5, Release Date: 2022-01-30 Using Python 3.10.6. Type "Help()" for help.

The OS is Linux Mint 21 Cinnamon Version 5.4.12. Linux Kernel Version 5.19.0-051900-generic.

Stephen