def show(target, *args, **kwargs):
if isinstance(target, (ecell4_base.core.FixedIntervalNumberObserver, ecell4_base.core.NumberObserver, ecell4_base.core.TimingNumberObserver, )):<EOL><INDENT>plot_number_observer(target, *args, **kwargs)<EOL><DEDENT>elif isinstance(target, (ecell4_base.core.FixedIntervalTrajectoryObserver, ecell4_base.core.FixedIntervalTrackingObserver)):<EOL><INDENT>plot_trajectory(target, *args, **kwargs)<EOL><DEDENT>elif isinstance(target, (ecell4_base.ode.ODEWorld, ecell4_base.gillespie.GillespieWorld, ecell4_base.spatiocyte.SpatiocyteWorld, ecell4_base.meso.MesoscopicWorld, ecell4_base.bd.BDWorld, ecell4_base.egfrd.EGFRDWorld)):<EOL><INDENT>plot_world(target, *args, **kwargs)<EOL><DEDENT>elif isinstance(target, (ecell4_base.core.Model, ecell4_base.core.NetworkModel, ecell4_base.core.NetfreeModel)):<EOL><INDENT>dump_model(target)<EOL><DEDENT>elif isinstance(target, str):<EOL><INDENT>try:<EOL><INDENT>w = simulation.load_world(target)<EOL><DEDENT>except RuntimeError as e:<EOL><INDENT>raise ValueError("<STR_LIT>".format(repr(target)))<EOL><DEDENT>else:<EOL><INDENT>show(w, *args, **kwargs)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>".format(repr(target)))<EOL><DEDENT>
An utility function to display the given target object in the proper way.

Paramters
---------
target : NumberObserver, TrajectoryObserver, World, str
    When a NumberObserver object is given, show it with viz.plot_number_observer.
    When a TrajectoryObserver object is given, show it with viz.plot_trajectory_observer.
    When a World or a filename suggesting HDF5 is given, show it with viz.plot_world.