On Tue, Feb 28, 2023 at 3:14 PM Tovo <[email protected]> wrote: > > I have sage 9.5 on Ubuntu 22.04/22.10. > I have the following code inside my files > > delta=simplicial_complexes.RandomComplex(4,1) > print(delta.facets()) > > If the file is named as test.sage, the program works fine. > If the file is named as test.txt, the program outputs > delta=simplicial_complexes.RandomComplex(4,1) > NameError: name 'simplicial_complexes' is not defined > > Why does this happen? > this is because .sage files are pre-processed (turned into .py files, roughly speaking) on the fly, before being run.
HTH Dima > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/c0aa434d-f75f-486d-914a-1fcbeb90fdabn%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq1GKov9cQOwPm2aXkQcaSRb4FkJuUcP_Tu8th02qt-Ysw%40mail.gmail.com.
