
from __future__ import print_function

print("Will create static figures with single value of parameters")

def interact(f, **kwargs):
    fargs = {}
    for key in kwargs.keys():
        try:
            fargs[key] = kwargs[key].value
        except:
            pass  # if initial value not set for this parameter
    f(**fargs)


from __future__ import print_function

print("Will create static figures with single value of parameters")

def interact(f, **kwargs):
    fargs = {}
    for key in kwargs.keys():
        try:
            fargs[key] = kwargs[key].value
        except:
            pass  # if initial value not set for this parameter
    if ('t' in fargs.keys()):
        if fargs['t'] == 0:
            fargs['t'] = 0.2
    f(**fargs)

Use t=0.2 instead of t=0 for static widget output.
Use t=0.2 instead of t=0 for static widget output.

  
  from __future__ import print_function
  
  print("Will create static figures with single value of parameters")
  
  def interact(f, **kwargs):
      fargs = {}
      for key in kwargs.keys():
          try:
              fargs[key] = kwargs[key].value
          except:
              pass  # if initial value not set for this parameter
+     if ('t' in fargs.keys()):
+         if fargs['t'] == 0:
+             fargs['t'] = 0.2
      f(**fargs)
  
Use t=0.2 instead of t=0 for static widget output.
## Code Before:

from __future__ import print_function

print("Will create static figures with single value of parameters")

def interact(f, **kwargs):
    fargs = {}
    for key in kwargs.keys():
        try:
            fargs[key] = kwargs[key].value
        except:
            pass  # if initial value not set for this parameter
    f(**fargs)

## Instruction:
Use t=0.2 instead of t=0 for static widget output.
## Code After:

from __future__ import print_function

print("Will create static figures with single value of parameters")

def interact(f, **kwargs):
    fargs = {}
    for key in kwargs.keys():
        try:
            fargs[key] = kwargs[key].value
        except:
            pass  # if initial value not set for this parameter
    if ('t' in fargs.keys()):
        if fargs['t'] == 0:
            fargs['t'] = 0.2
    f(**fargs)
