render

You can use the render method of the CodeVideo object to generate a video, and check the video’s save location in the terminal.

def render(output: bool = True)

output

Whether to output the video save location in the terminal.

It may take a little time, please be patient.

An example of rendering a video.

from CodeVideoRenderer import *
video = CodeVideo(code_string="print('Hello World!')", language='python')
video.render()