From sciris
Formats output and monitors progress in Sciris apps using colored prints, headings, string utilities, pretty object inspection, progress bars, and numeric summaries.
npx claudepluginhub sciris/scirisThis skill uses the workspace's default tool permissions.
Reference for output formatting and progress display. See full tutorial: `docs/tutorials/tut_printing.ipynb`.
Provides code patterns for basic Sciris features: array operations like findinds, date-formatted plotting, objdict containers, object save/load, and parallelization.
Writes Python code using Rich library for styled console output, markup, tables, progress bars, syntax highlighting, pretty printing, logging, and tracebacks.
Generates reusable ASCII-only text template library (titles, dividers, notice boxes, slogans/CTAs) with naming conventions and selection rules for consistent CLI, log, and README output. Use on explicit 'ascii-text-art-library' mention.
Share bugs, ideas, or general feedback.
Reference for output formatting and progress display. See full tutorial: docs/tutorials/tut_printing.ipynb.
If you need more detail, use your MCP tools (Context7 or GitMCP) to look up current Sciris documentation, or consult the other Sciris skills.
sc.heading('Section Title') # Bold section heading with divider
sc.printgreen('Success message') # Green text
sc.printblue('Info message') # Blue text
sc.indent(text) # Indent text block
sc.strjoin(['a', 'b', 'c']) # 'a, b, c' (shortcut to ', '.join())
sc.newlinejoin(['a', 'b', 'c']) # 'a\nb\nc' (auto str conversion)
# Especially useful in f-strings and error messages
sc.pr(obj) # Pretty representation (attributes, types, sizes)
# Much more informative than dir(obj)
class MySim(sc.prettyobj): # Inherit for nice print(sim) output
def __init__(self):
self.n = 10
self.ready = False
sim = MySim()
print(sim) # Shows all attributes with types and values
for i in sc.progressbar(range(100)): # tqdm-based progress bar
do_work(i)
sc.printmedian(data) # Print median with IQR
sc.sigfig(123456, 3, sep=True) # '123,000' (significant figures with separator)