{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import dash\n",
    "import dash_core_components as dcc\n",
    "import dash_html_components as html\n",
    "\n",
    "app = dash.Dash()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on class Button in module builtins:\n",
      "\n",
      "class Button(dash.development.base_component.Component)\n",
      " |  A Button component.\n",
      " |  \n",
      " |  \n",
      " |  Keyword arguments:\n",
      " |  - children (optional): The children of this component\n",
      " |  - id (optional): The ID of this component, used to identify dash components\n",
      " |  in callbacks. The ID needs to be unique across all of the\n",
      " |  components in an app.\n",
      " |  - n_clicks (optional): An integer that represents the number of times\n",
      " |  that this element has been clicked on.\n",
      " |  - n_clicks_timestamp (optional): An integer that represents the time (in ms since 1970)\n",
      " |  at which n_clicks changed. This can be used to tell\n",
      " |  which button was changed most recently.\n",
      " |  - key (optional): A unique identifier for the component, used to improve\n",
      " |  performance by React.js while rendering components\n",
      " |  See https://reactjs.org/docs/lists-and-keys.html for more info\n",
      " |  - role (optional): The ARIA role attribute\n",
      " |  - data-* (optional): A wildcard data attribute\n",
      " |  - aria-* (optional): A wildcard aria attribute\n",
      " |  - autoFocus (optional): The element should be automatically focused after the page loaded.\n",
      " |  - disabled (optional): Indicates whether the user can interact with the element.\n",
      " |  - form (optional): Indicates the form that is the owner of the element.\n",
      " |  - formAction (optional): Indicates the action of the element, overriding the action defined in the <form>.\n",
      " |  - name (optional): Name of the element. For example used by the server to identify the fields in form submits.\n",
      " |  - type (optional): Defines the type of the element.\n",
      " |  - value (optional): Defines a default value which will be displayed in the element on page load.\n",
      " |  - accessKey (optional): Defines a keyboard shortcut to activate or add focus to the element.\n",
      " |  - className (optional): Often used with CSS to style elements with common properties.\n",
      " |  - contentEditable (optional): Indicates whether the element's content is editable.\n",
      " |  - contextMenu (optional): Defines the ID of a <menu> element which will serve as the element's context menu.\n",
      " |  - dir (optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)\n",
      " |  - draggable (optional): Defines whether the element can be dragged.\n",
      " |  - hidden (optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.\n",
      " |  - lang (optional): Defines the language used in the element.\n",
      " |  - spellCheck (optional): Indicates whether spell checking is allowed for the element.\n",
      " |  - style (optional): Defines CSS styles which will override styles previously set.\n",
      " |  - tabIndex (optional): Overrides the browser's default tab order and follows the one specified instead.\n",
      " |  - title (optional): Text to be displayed in a tooltip when hovering over the element.\n",
      " |  - fireEvent (optional): A callback for firing events to dash.\n",
      " |  \n",
      " |  Available events:\n",
      " |  \n",
      " |  Method resolution order:\n",
      " |      Button\n",
      " |      dash.development.base_component.Component\n",
      " |      collections.abc.MutableMapping\n",
      " |      collections.abc.Mapping\n",
      " |      collections.abc.Collection\n",
      " |      collections.abc.Sized\n",
      " |      collections.abc.Iterable\n",
      " |      collections.abc.Container\n",
      " |      object\n",
      " |  \n",
      " |  Methods defined here:\n",
      " |  \n",
      " |  __init__(self, children=None, **kwargs)\n",
      " |  \n",
      " |  __repr__(self)\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Data and other attributes defined here:\n",
      " |  \n",
      " |  __abstractmethods__ = frozenset()\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Methods inherited from dash.development.base_component.Component:\n",
      " |  \n",
      " |  __delitem__(self, id)\n",
      " |      Delete items by ID in the tree of children.\n",
      " |  \n",
      " |  __getitem__(self, id)\n",
      " |      Recursively find the element with the given ID through the tree\n",
      " |      of children.\n",
      " |  \n",
      " |  __iter__(self)\n",
      " |      Yield IDs in the tree of children.\n",
      " |  \n",
      " |  __len__(self)\n",
      " |      Return the number of items in the tree.\n",
      " |  \n",
      " |  __setitem__(self, id, item)\n",
      " |      Set an element by its ID.\n",
      " |  \n",
      " |  to_plotly_json(self)\n",
      " |  \n",
      " |  traverse(self)\n",
      " |      Yield each item in the tree.\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Data descriptors inherited from dash.development.base_component.Component:\n",
      " |  \n",
      " |  __dict__\n",
      " |      dictionary for instance variables (if defined)\n",
      " |  \n",
      " |  __weakref__\n",
      " |      list of weak references to the object (if defined)\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Methods inherited from collections.abc.MutableMapping:\n",
      " |  \n",
      " |  clear(self)\n",
      " |      D.clear() -> None.  Remove all items from D.\n",
      " |  \n",
      " |  pop(self, key, default=<object object at 0x000000000037B050>)\n",
      " |      D.pop(k[,d]) -> v, remove specified key and return the corresponding value.\n",
      " |      If key is not found, d is returned if given, otherwise KeyError is raised.\n",
      " |  \n",
      " |  popitem(self)\n",
      " |      D.popitem() -> (k, v), remove and return some (key, value) pair\n",
      " |      as a 2-tuple; but raise KeyError if D is empty.\n",
      " |  \n",
      " |  setdefault(self, key, default=None)\n",
      " |      D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D\n",
      " |  \n",
      " |  update(*args, **kwds)\n",
      " |      D.update([E, ]**F) -> None.  Update D from mapping/iterable E and F.\n",
      " |      If E present and has a .keys() method, does:     for k in E: D[k] = E[k]\n",
      " |      If E present and lacks .keys() method, does:     for (k, v) in E: D[k] = v\n",
      " |      In either case, this is followed by: for k, v in F.items(): D[k] = v\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Methods inherited from collections.abc.Mapping:\n",
      " |  \n",
      " |  __contains__(self, key)\n",
      " |  \n",
      " |  __eq__(self, other)\n",
      " |      Return self==value.\n",
      " |  \n",
      " |  get(self, key, default=None)\n",
      " |      D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None.\n",
      " |  \n",
      " |  items(self)\n",
      " |      D.items() -> a set-like object providing a view on D's items\n",
      " |  \n",
      " |  keys(self)\n",
      " |      D.keys() -> a set-like object providing a view on D's keys\n",
      " |  \n",
      " |  values(self)\n",
      " |      D.values() -> an object providing a view on D's values\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Data and other attributes inherited from collections.abc.Mapping:\n",
      " |  \n",
      " |  __hash__ = None\n",
      " |  \n",
      " |  __reversed__ = None\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Class methods inherited from collections.abc.Collection:\n",
      " |  \n",
      " |  __subclasshook__(C) from abc.ABCMeta\n",
      " |      Abstract classes can override this to customize issubclass().\n",
      " |      \n",
      " |      This is invoked early on by abc.ABCMeta.__subclasscheck__().\n",
      " |      It should return True, False or NotImplemented.  If it returns\n",
      " |      NotImplemented, the normal algorithm is used.  Otherwise, it\n",
      " |      overrides the normal algorithm (and the outcome is cached).\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(html.Button)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import smtplib\n",
    "\n",
    "sender = 'bha@mbari.org'\n",
    "receivers = ['bha@mbari.org']\n",
    "\n",
    "message = \"\"\"From: Brian Ha <bha@mbari.org>\n",
    "To: Brian Ha <'bha@mbari.org'>\n",
    "Subject: SMTP e-mail test\n",
    "\n",
    "Yo yo yo, this is Brian's computer!!\n",
    "\"\"\"\n",
    "\n",
    "try:\n",
    "    server = smtplib.SMTP('mbarimail.mbari.org', 25)\n",
    "#     smtpObj.ehlo()\n",
    "#     server.login(username, password)\n",
    "    server.sendmail(sender, receivers, message)\n",
    "    server.quit()\n",
    "    print(\"Successfully sent email\")\n",
    "except:\n",
    "    print(\"Error: unable to send email\")\n",
    "    raise"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import smtplib\n",
    "\n",
    "# For guessing MIME type\n",
    "import mimetypes\n",
    "\n",
    "# Import the email modules we'll need\n",
    "import email.mime.text\n",
    "import email.mime.multipart\n",
    "import email.mime.application\n",
    "\n",
    "# Create a text/plain message\n",
    "sender = 'bha@mbari.org'\n",
    "recipients = ['bha@mbari.org']\n",
    "\n",
    "msg = email.mime.multipart.MIMEMultipart()\n",
    "msg['Subject'] = 'Test'\n",
    "msg['From'] = 'bha@mbari.org'\n",
    "msg['To'] = 'bha@mbari.org'\n",
    "\n",
    "# The main body is just another attachment\n",
    "body = email.mime.text.MIMEText(\"\"\"Hello, how are you? I am fine.\n",
    "This is a rather nice letter, don't you think?\"\"\")\n",
    "msg.attach(body)\n",
    "\n",
    "# PDF attachment\n",
    "filename='test.txt'\n",
    "fp=open(filename,'rb')\n",
    "att = email.mime.application.MIMEApplication(fp.read(),_subtype=\"txt\")\n",
    "fp.close()\n",
    "att.add_header('Content-Disposition','attachment',filename=filename)\n",
    "msg.attach(att)\n",
    "\n",
    "# Send the email via our own SMTP server.\n",
    "try:\n",
    "    smtpObj = smtplib.SMTP('mbarimail.mbari.org', 25)\n",
    "    smtpObj.sendmail(sender, recipients, msg.as_string())\n",
    "#     smtpObj.quit()\n",
    "    print(\"Successfully sent email\")\n",
    "except Exception:\n",
    "    print(\"Error: unable to send email\")\n",
    "    raise"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import smtplib\n",
    "import email.mime.text\n",
    "import email.mime.multipart\n",
    "import email.mime.application\n",
    "\n",
    "SENDER = 'bha@mbari.org'\n",
    "RECIPIENT = 'bha@mbari.org' # This will be changed to data@sbd.iridium.com\n",
    "COMMAND_SBD_FILE_NAME = 'command.sbd'\n",
    "SMTP_HOST_NAME = 'mbarimail.mbari.org'\n",
    "SMTP_PORT_NUMBER = 25\n",
    "\n",
    "def send_command_sbd(cpf_imei, command_string):\n",
    "    '''Emails a command string in an attachment to a CPF based on IMEI number.'''\n",
    "    \n",
    "    # Create the email message\n",
    "    msg = email.mime.multipart.MIMEMultipart()\n",
    "    msg['Subject'] = str(cpf_imei)\n",
    "    msg['From'] = SENDER\n",
    "    msg['To'] = RECIPIENT\n",
    "\n",
    "    # Convert the command string to a bytes object\n",
    "    encoded_command = str(command_string).encode()\n",
    "    \n",
    "    # Create and attach the attachment\n",
    "    attachment = email.mime.application.MIMEApplication(encoded_command)\n",
    "    attachment.add_header('Content-Disposition','attachment',filename=COMMAND_SBD_FILE_NAME)\n",
    "    msg.attach(attachment)\n",
    "\n",
    "    # Send the email\n",
    "    smtpObj = smtplib.SMTP(SMTP_HOST_NAME, SMTP_PORT_NUMBER)\n",
    "    smtpObj.sendmail(SENDER, RECIPIENT, msg.as_string())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "help(smtplib.SMTP)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "RadioItems(options=[{'label': 'New York City', 'value': 'NYC'}, {'label': 'Montréal', 'value': 'MTL'}, {'label': 'San Francisco', 'value': 'SF'}], value='MTL')"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import dash_core_components as dcc\n",
    "\n",
    "dcc.RadioItems(\n",
    "    options=[\n",
    "        {'label': 'New York City', 'value': 'NYC'},\n",
    "        {'label': 'Montréal', 'value': 'MTL'},\n",
    "        {'label': 'San Francisco', 'value': 'SF'}\n",
    "    ],\n",
    "    value='MTL'\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on class Input in module builtins:\n",
      "\n",
      "class Input(dash.development.base_component.Component)\n",
      " |  A Input component.\n",
      " |  A basic HTML input control for entering text, numbers, or passwords.\n",
      " |  \n",
      " |  Note that checkbox and radio types are supported through\n",
      " |  the Checklist and RadioItems component. Dates, times, and file uploads\n",
      " |  are also supported through separate components.\n",
      " |  \n",
      " |  Keyword arguments:\n",
      " |  - id (string; optional): The ID of this component, used to identify dash components\n",
      " |  in callbacks. The ID needs to be unique across all of the\n",
      " |  components in an app.\n",
      " |  - value (string; optional): The value of the input\n",
      " |  - style (dict; optional): The input's inline styles\n",
      " |  - className (string; optional): The class of the input element\n",
      " |  - type (a value equal to: \"text\", 'number', 'password', 'email', 'range', 'search', 'tel', 'url', 'hidden'; optional): The type of control to render.\n",
      " |  - autocomplete (string; optional): This attribute indicates whether the value of the control can be automatically completed by the browser.\n",
      " |  - autofocus (string; optional): The element should be automatically focused after the page loaded.\n",
      " |  - disabled (boolean; optional): If true, the input is disabled and can't be clicked on.\n",
      " |  - inputmode (a value equal to: \"verbatim\", \"latin\", \"latin-name\", \"latin-prose\", \"full-width-latin\", \"kana\", \"katakana\", \"numeric\", \"tel\", \"email\", \"url\"; optional)\n",
      " |  - list (string; optional): Identifies a list of pre-defined options to suggest to the user.\n",
      " |  The value must be the id of a <datalist> element in the same document.\n",
      " |  The browser displays only options that are valid values for this\n",
      " |  input element.\n",
      " |  This attribute is ignored when the type attribute's value is\n",
      " |  hidden, checkbox, radio, file, or a button type.\n",
      " |  - max (string; optional): The maximum (numeric or date-time) value for this item, which must not be less than its minimum (min attribute) value.\n",
      " |  - maxlength (string; optional): If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the maximum number of characters (in UTF-16 code units) that the user can enter. For other control types, it is ignored. It can exceed the value of the size attribute. If it is not specified, the user can enter an unlimited number of characters. Specifying a negative number results in the default behavior (i.e. the user can enter an unlimited number of characters). The constraint is evaluated only when the value of the attribute has been changed.\n",
      " |  - min (string; optional): The minimum (numeric or date-time) value for this item, which must not be greater than its maximum (max attribute) value.\n",
      " |  - minlength (string; optional): If the value of the type attribute is text, email, search, password, tel, or url, this attribute specifies the minimum number of characters (in Unicode code points) that the user can enter. For other control types, it is ignored.\n",
      " |  - multiple (string; optional): This Boolean attribute indicates whether the user can enter more than one value. This attribute applies when the type attribute is set to email or file, otherwise it is ignored.\n",
      " |  - name (string; optional): The name of the control, which is submitted with the form data.\n",
      " |  - pattern (string; optional): A regular expression that the control's value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is text, search, tel, url, email, or password, otherwise it is ignored. The regular expression language is the same as JavaScript RegExp algorithm, with the 'u' parameter that makes it treat the pattern as a sequence of unicode code points. The pattern is not surrounded by forward slashes.\n",
      " |  - placeholder (string; optional): A hint to the user of what can be entered in the control . The placeholder text must not contain carriage returns or line-feeds. Note: Do not use the placeholder attribute instead of a <label> element, their purposes are different. The <label> attribute describes the role of the form element (i.e. it indicates what kind of information is expected), and the placeholder attribute is a hint about the format that the content should take. There are cases in which the placeholder attribute is never displayed to the user, so the form must be understandable without it.\n",
      " |  - readonly (string; optional): This attribute indicates that the user cannot modify the value of the control. The value of the attribute is irrelevant. If you need read-write access to the input value, do not add the \"readonly\" attribute. It is ignored if the value of the type attribute is hidden, range, color, checkbox, radio, file, or a button type (such as button or submit).\n",
      " |  - required (string; optional): This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, reset, or button). The :optional and :required CSS pseudo-classes will be applied to the field as appropriate.\n",
      " |  - selectionDirection (string; optional): The direction in which selection occurred. This is \"forward\" if the selection was made from left-to-right in an LTR locale or right-to-left in an RTL locale, or \"backward\" if the selection was made in the opposite direction. On platforms on which it's possible this value isn't known, the value can be \"none\"; for example, on macOS, the default direction is \"none\", then as the user begins to modify the selection using the keyboard, this will change to reflect the direction in which the selection is expanding.\n",
      " |  - selectionEnd (string; optional): The offset into the element's text content of the last selected character. If there's no selection, this value indicates the offset to the character following the current text input cursor position (that is, the position the next character typed would occupy).\n",
      " |  - selectionStart (string; optional): The offset into the element's text content of the first selected character. If there's no selection, this value indicates the offset to the character following the current text input cursor position (that is, the position the next character typed would occupy).\n",
      " |  - size (string; optional): The initial size of the control. This value is in pixels unless the value of the type attribute is text or password, in which case it is an integer number of characters. Starting in, this attribute applies only when the type attribute is set to text, search, tel, url, email, or password, otherwise it is ignored. In addition, the size must be greater than zero. If you do not specify a size, a default value of 20 is used.' simply states \"the user agent should ensure that at least that many characters are visible\", but different characters can have different widths in certain fonts. In some browsers, a certain string with x characters will not be entirely visible even if size is defined to at least x.\n",
      " |  - spellcheck (string; optional): Setting the value of this attribute to true indicates that the element needs to have its spelling and grammar checked. The value default indicates that the element is to act according to a default behavior, possibly based on the parent element's own spellcheck value. The value false indicates that the element should not be checked.\n",
      " |  - step (string; optional): Works with the min and max attributes to limit the increments at which a numeric or date-time value can be set. It can be the string any or a positive floating point number. If this attribute is not set to any, the control accepts only values at multiples of the step value greater than the minimum.\n",
      " |  \n",
      " |  Available events: 'blur', 'change'\n",
      " |  \n",
      " |  Method resolution order:\n",
      " |      Input\n",
      " |      dash.development.base_component.Component\n",
      " |      collections.abc.MutableMapping\n",
      " |      collections.abc.Mapping\n",
      " |      collections.abc.Collection\n",
      " |      collections.abc.Sized\n",
      " |      collections.abc.Iterable\n",
      " |      collections.abc.Container\n",
      " |      object\n",
      " |  \n",
      " |  Methods defined here:\n",
      " |  \n",
      " |  __init__(self, **kwargs)\n",
      " |  \n",
      " |  __repr__(self)\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Data and other attributes defined here:\n",
      " |  \n",
      " |  __abstractmethods__ = frozenset()\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Methods inherited from dash.development.base_component.Component:\n",
      " |  \n",
      " |  __delitem__(self, id)\n",
      " |      Delete items by ID in the tree of children.\n",
      " |  \n",
      " |  __getitem__(self, id)\n",
      " |      Recursively find the element with the given ID through the tree\n",
      " |      of children.\n",
      " |  \n",
      " |  __iter__(self)\n",
      " |      Yield IDs in the tree of children.\n",
      " |  \n",
      " |  __len__(self)\n",
      " |      Return the number of items in the tree.\n",
      " |  \n",
      " |  __setitem__(self, id, item)\n",
      " |      Set an element by its ID.\n",
      " |  \n",
      " |  to_plotly_json(self)\n",
      " |  \n",
      " |  traverse(self)\n",
      " |      Yield each item in the tree.\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Data descriptors inherited from dash.development.base_component.Component:\n",
      " |  \n",
      " |  __dict__\n",
      " |      dictionary for instance variables (if defined)\n",
      " |  \n",
      " |  __weakref__\n",
      " |      list of weak references to the object (if defined)\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Methods inherited from collections.abc.MutableMapping:\n",
      " |  \n",
      " |  clear(self)\n",
      " |      D.clear() -> None.  Remove all items from D.\n",
      " |  \n",
      " |  pop(self, key, default=<object object at 0x00000000005AB050>)\n",
      " |      D.pop(k[,d]) -> v, remove specified key and return the corresponding value.\n",
      " |      If key is not found, d is returned if given, otherwise KeyError is raised.\n",
      " |  \n",
      " |  popitem(self)\n",
      " |      D.popitem() -> (k, v), remove and return some (key, value) pair\n",
      " |      as a 2-tuple; but raise KeyError if D is empty.\n",
      " |  \n",
      " |  setdefault(self, key, default=None)\n",
      " |      D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D\n",
      " |  \n",
      " |  update(*args, **kwds)\n",
      " |      D.update([E, ]**F) -> None.  Update D from mapping/iterable E and F.\n",
      " |      If E present and has a .keys() method, does:     for k in E: D[k] = E[k]\n",
      " |      If E present and lacks .keys() method, does:     for (k, v) in E: D[k] = v\n",
      " |      In either case, this is followed by: for k, v in F.items(): D[k] = v\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Methods inherited from collections.abc.Mapping:\n",
      " |  \n",
      " |  __contains__(self, key)\n",
      " |  \n",
      " |  __eq__(self, other)\n",
      " |      Return self==value.\n",
      " |  \n",
      " |  get(self, key, default=None)\n",
      " |      D.get(k[,d]) -> D[k] if k in D, else d.  d defaults to None.\n",
      " |  \n",
      " |  items(self)\n",
      " |      D.items() -> a set-like object providing a view on D's items\n",
      " |  \n",
      " |  keys(self)\n",
      " |      D.keys() -> a set-like object providing a view on D's keys\n",
      " |  \n",
      " |  values(self)\n",
      " |      D.values() -> an object providing a view on D's values\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Data and other attributes inherited from collections.abc.Mapping:\n",
      " |  \n",
      " |  __hash__ = None\n",
      " |  \n",
      " |  __reversed__ = None\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Class methods inherited from collections.abc.Collection:\n",
      " |  \n",
      " |  __subclasshook__(C) from abc.ABCMeta\n",
      " |      Abstract classes can override this to customize issubclass().\n",
      " |      \n",
      " |      This is invoked early on by abc.ABCMeta.__subclasscheck__().\n",
      " |      It should return True, False or NotImplemented.  If it returns\n",
      " |      NotImplemented, the normal algorithm is used.  Otherwise, it\n",
      " |      overrides the normal algorithm (and the outcome is cached).\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(dcc.Input)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on Scripts in module dash.resources object:\n",
      "\n",
      "class Scripts(builtins.object)\n",
      " |  Methods defined here:\n",
      " |  \n",
      " |  __init__(self, layout=None)\n",
      " |      Initialize self.  See help(type(self)) for accurate signature.\n",
      " |  \n",
      " |  append_script(self, script)\n",
      " |  \n",
      " |  get_all_scripts(self)\n",
      " |  \n",
      " |  get_inferred_scripts(self)\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Data descriptors defined here:\n",
      " |  \n",
      " |  __dict__\n",
      " |      dictionary for instance variables (if defined)\n",
      " |  \n",
      " |  __weakref__\n",
      " |      list of weak references to the object (if defined)\n",
      " |  \n",
      " |  ----------------------------------------------------------------------\n",
      " |  Data and other attributes defined here:\n",
      " |  \n",
      " |  config = <class 'dash.resources.Scripts.config'>\n",
      " |      # pylint: disable=old-style-class, no-init, too-few-public-methods\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(app.scripts)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
