class_docstr: Sends a message to Slack upon completion/failing of an experiment.
docstr: Create a SlackObserver from a given configuration file.
  
  The file can be in any format supported by Sacred
  (.json, .pickle, [.yaml]).
  It has to specify a ``webhook_url`` and can optionally set
  ``bot_name``, ``icon``, ``completed_text``, ``interrupted_text``, and
  ``failed_text``.
docstr_tok: ["Create","a","SlackObserver","from","a","given","configuration","file",".","The","file","can","be","in","any","format","supported","by","Sacred","(",".json",",",".pickle",",","[",".yaml","]",")",".","It","has","to","specify","a","``","webhook_url","``","and","can","optionally","set","``","bot_name","``",",","``","icon","``",",","``","completed_text","``",",","``","interrupted_text","``",",","and","``","failed_text","``","."]
code: def from_config(cls, filename):
      """
      Create a SlackObserver from a given configuration file.
  
      The file can be in any format supported by Sacred
      (.json, .pickle, [.yaml]).
      It has to specify a ``webhook_url`` and can optionally set
      ``bot_name``, ``icon``, ``completed_text``, ``interrupted_text``, and
      ``failed_text``.
      """
      return cls(**load_config_file(filename))
  
file_path: sacred/sacred/observers/slack.py
imports: from sacred.observers.base import RunObserver, td_format
  from sacred.config.config_files import load_config_file
  import json
label_desc: Use image node_id 1 for calling the SlackObserver obj's underlying member method code with example usage: obj.from_config(cls, filename) and returns: cls