stainlessai / micronaut-jupyter

A Micronaut configuration that integrates your app with an existing Jupyter installation.
https://stainlessai.github.io/micronaut-jupyter
Apache License 2.0
9 stars 5 forks source link

MJ-41 ⁃ Add withRedirectLogOutput method to DSL #41

Open JoshuaCWebDeveloper opened 4 years ago

JoshuaCWebDeveloper commented 4 years ago

Add a new withRedirectLogOutput method to the script DSL that will accept a Boolean to set redirectLogOutput to for the duration of a given Closure. Example:

// redirectLogOutput is set to true

log.info "Will go to original stdout"

withRedirectLogOutput(false) {
  log.info "Will be shown in cell output"
}

log.info "Will also go to original stdout"

┆Reporter: Stainless Bot ┆Issue Type: Story ┆Priority: Medium ┆Status: Backlog ┆Issue Number: MJ-41 ┆Epic: Work on the default DSL for the Jupyter scripts