🧪 Version 0.3.1 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for print

Print a message to the terminal. This is part of the reference section.

Purpose

Print a message to the terminal or, if on web, will try to append the message to an element of the sketch's ID plus '-console'.

Snippet

Print hello world message.
sketch.print('Hello World!')

Parameters

  • message: The string to print.

Availability

Available for all platforms. In the web editor, this is automatcally set up to print to the in-page console.

See also