split out graph init from embedded cache logic

want this to work on e.g. nbviewer where the widget code doesn't load
README md -> rst