In [10]:
import escher
import escher.server
import json
import os
from IPython.display import HTML

In [11]:
escher.clear_cache()
d = escher.server.directory
print 'Escher directory: %s' % d


Escher directory: /usr/local/lib/python2.7/site-packages/escher

In [14]:
b = escher.Builder(map_name='iJO1366_central_metabolism')
b.display_in_notebook()


Out[14]:

In [6]:
with open(os.path.join(d, 'example_data/reaction_data_iJO1366.json')) as f:
    reaction_data = json.load(f)
b2 = escher.Builder(model_name='iJO1366', map_name='iJO1366_central_metabolism',
                    reaction_data=reaction_data)
b2.display_in_notebook()


/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/escher/plots.py:212: UserWarning: Model "iJO1366" not in cache. Attempting download from https://zakandrewking.github.io/escher/
  warn(model_not_cached)
Out[6]:

In [9]:
with open(os.path.join(d, 'example_data/metabolite_data_iJO1366.json')) as f:
    metabolite_data = json.load(f)
b3 = escher.Builder(model_name='iJO1366', map_name='iJO1366_central_metabolism',
                    metabolite_data=metabolite_data, reaction_data=reaction_data)
b3.display_in_notebook()


Out[9]:

In [ ]: