Skip to main content
Ctrl+K
tpcp 2.3.0 documentation - Home

Site Navigation

  • Getting Started
  • User Guides
  • API Reference
  • Examples
  • Changelog
  • GitHub

Site Navigation

  • Getting Started
  • User Guides
  • API Reference
  • Examples
  • Changelog
  • GitHub

Section Navigation

  • Dataset
    • Dataset
    • DatasetWrapperMixin
  • Parameter and Custom Objects
    • HyperParameter
    • HyperPara
    • OptimizableParameter
    • OptiPara
    • PureParameter
    • PurePara
    • Parameter
    • Para
    • clone
    • cf
    • BaseTpcpObject
    • CloneFactory
    • BaseFactory
  • Custom Algorithms and Pipelines
    • Algorithm
    • Pipeline
    • OptimizablePipeline
    • make_action_safe
    • make_optimize_safe
    • get_param_names
    • get_action_params
    • get_results
  • Parameter Optimization
    • Optimize
    • GridSearch
    • GridSearchCV
    • DummyOptimize
    • BaseOptimize
    • CustomOptunaOptimize
    • OptunaSearch
  • Validation and Scoring
    • DatasetSplitter
    • Scorer
    • Aggregator
    • FloatAggregator
    • MacroFloatAggregator
    • mean_agg
    • no_agg
    • cross_validate
    • validate
  • Miscellaneous Utils
    • tpcp.misc.BaseTypedIterator
    • tpcp.misc.TypedIterator
    • tpcp.misc.WarningErrorContext
    • tpcp.misc.WarningErrorContextRecord
    • custom_hash
    • classproperty
    • iter_with_warning_error_context
    • print_with_context
    • set_defaults
    • warning_error_context
  • Parallel Helpers
    • delayed
    • register_global_parallel_callback
    • register_parallel_side_channel
    • remove_global_parallel_callback
    • remove_parallel_side_channel
    • Parallel
  • Caching
    • hybrid_cache
    • global_disk_cache
    • global_ram_cache
    • remove_disk_cache
    • remove_ram_cache
    • remove_any_cache
    • get_ram_cache_obj
  • Testing
    • TestAlgorithmMixin
    • PyTestSnapshotTest
  • API Reference
  • tpcp.misc: Miscellaneous helper and utility functions
  • print_with_context

print_with_context#

tpcp.misc.print_with_context(*values: Any, sep: str | None = ' ', end: str | None = '\n', file: Any | None = None, flush: bool = False) → None[source]#

Print values with the active context and retain the original message.

Without an active warning_error_context, this behaves exactly like print. With an active context, the rendered context stack is prepended to the output and a "print" record is added to every active context result. Output is suppressed when any active context uses record_only=True.

Examples using tpcp.misc.print_with_context#

Warning and Error Context

Warning and Error Context
On this page
  • print_with_context
  • Examples using tpcp.misc.print_with_context
Edit on GitHub
Show Source

© Copyright 2021 - 2026, MaD Lab, FAU, Digital Health and Gait Analysis Group.

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.14.4.