Skip to content

Commit

Permalink
BokehWidget creates json_path if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 3, 2015
1 parent cdd5d76 commit 61adc11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/plotting/bokeh/widgets.py
Expand Up @@ -20,6 +20,8 @@ def _get_data(self):
def encode_frames(self, frames):
if self.export_json:
path = os.path.join(self.json_path, '%s.json' % self.id)
if not os.path.isdir(self.json_path):
os.mkdir(self.json_path)
with open(path, 'wb') as f:
json.dump(frames, f)
frames = {}
Expand Down

0 comments on commit 61adc11

Please sign in to comment.