parameters: (path='/custom/datagramas')
return_statement: return HTML(code)
docstring: Inits the Javascript code needed to load datagramas libraries in the Jupyter Notebook when viewed on NBViewer.
docstring_summary: Inits the Javascript code needed to load datagramas libraries in the Jupyter Notebook when viewed on NBViewer.
docstring_tokens: Inits the Javascript code needed to load datagramas libraries in the Jupyter Notebook when viewed on NBViewer .
function: def init_javascript(path='/custom/datagramas'):
      """
      Inits the Javascript code needed to load datagramas libraries in the Jupyter Notebook when viewed on NBViewer.
      """
  
      code = '''
  <script>
  $(document).ready(function() {{
      if (document.location.hostname !== 'localhost') {{
          {0}
      }}
  }});
  </script>'''
  
      code = code.format(init_javascript_code(path)) + '<span class="label label-info">datagramas</span> Javascript code added.'
      return HTML(code)
function_tokens: def init_javascript ( path = '/custom/datagramas' ) : code = '''
  <script>
  $(document).ready(function() {{
      if (document.location.hostname !== 'localhost') {{
          {0}
      }}
  }});
  </script>''' code = code . format ( init_javascript_code ( path ) ) + '<span class="label label-info">datagramas</span> Javascript code added.' return HTML ( code )