old_contents: 
  from collections import OrderedDict
  from IPython.display import Javascript
  import json
  from krisk.util import join_current_dir
  
  ECHARTS_URL = 'https://cdnjs.cloudflare.com/ajax/libs/echarts/3.2.0/'
  ECHARTS_FILE = 'echarts.min'
  d_paths = OrderedDict({})
  THEMES = ['dark','vintage','roma','shine','infographic','macarons']
  THEMES_URL='//echarts.baidu.com/asset/theme/'
  PATH_LOCAL = join_current_dir('static')
  # PATH_LOCAL = 'pandas-echarts/krisk/static'
  #TODO FIX LOCAL PATH! NEED TO DO nbextension install
  
  # def init_notebook():
  #     """Inject Javascript to notebook, default using local js.
      
  #     """
  #     return Javascript("""
  #     require.config({
  #                  baseUrl : '%s',
  #                  paths: {
  #                      echarts: 'echarts.min'
  #                  }
  #     });
  #     """ % PATH_LOCAL)
  
  def init_notebook():
      """Inject Javascript to notebook, default using local js.
      
      """
      return Javascript("""
      require.config({
                   baseUrl : "//rawgit.com/napjon/krisk/master/krisk/static",
                   waitSeconds: 15
      });
      """)
      
  def get_paths():
      return ['echarts'] + THEMES
new_contents: 
  from collections import OrderedDict
  from IPython.display import Javascript
  import json
  from krisk.util import join_current_dir
  
  ECHARTS_URL = 'https://cdnjs.cloudflare.com/ajax/libs/echarts/3.2.0/'
  ECHARTS_FILE = 'echarts.min'
  d_paths = OrderedDict({})
  THEMES = ['dark','vintage','roma','shine','infographic','macarons']
  THEMES_URL='//echarts.baidu.com/asset/theme/'
  PATH_LOCAL = join_current_dir('static')
  # PATH_LOCAL = 'pandas-echarts/krisk/static'
  #TODO FIX LOCAL PATH! NEED TO DO nbextension install
  
  # def init_notebook():
  #     """Inject Javascript to notebook, default using local js.
      
  #     """
  #     return Javascript("""
  #     require.config({
  #                  baseUrl : '%s',
  #                  paths: {
  #                      echarts: 'echarts.min'
  #                  }
  #     });
  #     """ % PATH_LOCAL)
  
  def init_notebook():
      """Inject Javascript to notebook, default using local js.
      
      """
      return Javascript("""
      require.config({
                   baseUrl : "//cdn.rawgit.com/napjon/krisk/master/krisk/static",
                   waitSeconds: 15
      });
      """)
      
  def get_paths():
      return ['echarts'] + THEMES
subject: change connections.py to cdn ref