code: def show_inline_matplotlib_plots():
      """Show matplotlib plots immediately if using the inline backend.
  
      With ipywidgets 6.0, matplotlib plots don't work well with interact when
      using the inline backend that comes with ipykernel. Basically, the inline
      backend only shows the plot after the entire cell executes, which does not
      play well with drawing plots inside of an interact function. See
      https://github.com/jupyter-widgets/ipywidgets/issues/1181/ and
      https://github.com/ipython/ipython/issues/10376 for more details. This
      function displays any matplotlib plots if the backend is the inline backend.
      """
      if "matplotlib" not in sys.modules:
          # matplotlib hasn't been imported, nothing to do.
          return
  
      try:
          import matplotlib as mpl
          from ipykernel.pylab.backend_inline import flush_figures
      except ImportError:
          return
  
      if (
          mpl.get_backend() == "module://ipykernel.pylab.backend_inline"
          or mpl.get_backend()
          == "module://matplotlib_inline.backend_inline"
      ):
          flush_figures()
  
imports: from __future__ import print_function
  from __future__ import division
  from inspect import getcallargs
  import sys
  from IPython.core.getipython import get_ipython
  from .None import ValueWidget, Text, FloatSlider, IntSlider, Checkbox, Dropdown, VBox, Button, DOMWidget, Output
  from IPython.display import display, clear_output
  from ipython_genutils.py3compat import string_types, unicode_type
  from traitlets import HasTraits, Any, Unicode, observe
  from numbers import Real, Integral
  from warnings import warn
label_desc: Use image node_id 1 for calling a global function with example usage: show_inline_matplotlib_plots() without return types