pymor.tools.jupyter

Classes

LogViewer

LoggingRedirector

Functions

load_ipython_extension

unload_ipython_extension

class pymor.tools.jupyter.LogViewer(out, accordion=None)[source]

Bases: Handler

Methods

LogViewer

close, emit

Attributes

LogViewer

empty, out

close()[source]

Tidy up any resources used by the handler.

This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods.

emit(record)[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

property empty[source]
out = None[source]
class pymor.tools.jupyter.LoggingRedirector[source]

Bases: object

start(info)[source]
stop(result)[source]
pymor.tools.jupyter.load_ipython_extension(ipython)[source]
pymor.tools.jupyter.unload_ipython_extension(ipython)[source]