How to run a code in SageCell using a command line?

46 views
Skip to first unread message

e...@tssfl.co

unread,
Dec 30, 2020, 6:46:53 AM12/30/20
to sage-cell
Some of the codes require a command-line interface to run, for example, the Manim codes (https://github.com/malhotra5/Manim-Tutorial) would require a command that is more or less similar to

manim example.py SquareToCircle -p -ql

to execute.

Is there a way round to use the command line in SageCell?

NB:

How do I increase the size of the default SageCell output box?

Kind regards,

Elimboto

Andrey Novoseltsev

unread,
Jan 2, 2021, 7:43:03 PM1/2/21
to sage-cell
If you want to run a system command from Python code, you can do something like

and if all you want to do is run a system command in a cell, put
%%sh
on the first line!
Reply all
Reply to author
Forward
0 new messages