Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

In-Notebook Console Writing

Compare
Choose a tag to compare
@sernst sernst released this 17 Jun 13:57
· 146 commits to master since this release
4ffc45c

This release adds a write_to_console() function to the ExposedStep class that allows for writing message strings to the stdout console without them appearing in the notebook display. From within a notebook it is now possible to call:

cd.step.write_to_console('my message')

to write the specified message to the console from within a running step without it appearing in the notebook HTML.

The console output for the display.markdown() function has been improved by having it output the markdown after jinja2 template rendering so that substitution values are observed int the console.

Also, adds a function used to create the CauldronTest fixture inside PyTest test modules, which is now a one-line addition to such files instead of having to manually define the fixture each time.