class_docstr: Run a function call as a background job (uses a separate thread).
docstr: Create a new job from a callable object.
  
  Any positional arguments and keyword args given to this constructor
  after the initial callable are passed directly to it.
docstr_tok: ["Create","a","new","job","from","a","callable","object",".","Any","positional","arguments","and","keyword","args","given","to","this","constructor","after","the","initial","callable","are","passed","directly","to","it","."]
code: def __init__(self, func, *args, **kwargs):
      """Create a new job from a callable object.
  
      Any positional arguments and keyword args given to this constructor
      after the initial callable are passed directly to it."""
  
      if not callable(func):
          raise TypeError(
              "first argument to BackgroundJobFunc must be callable"
          )
  
      self.func = func
      self.args = args
      self.kwargs = kwargs
      # The string form will only include the function passed, because
      # generating string representations of the arguments is a potentially
      # _very_ expensive operation (e.g. with large arrays).
      self.strform = str(func)
      self._init()
  
imports: from __future__ import print_function
  import sys
  import threading
  from IPython import get_ipython
  from IPython.core.ultratb import AutoFormattedTB
  from logging import error
  from IPython.utils.py3compat import string_types
label_desc: Use image node_id 1 to create a new BackgroundJobFunc object from inherited base classes: BackgroundJobBase with example: obj = BackgroundJobFunc(func)