protect against no ipython install
@@ -39,7 +39,10 @@ def vegalite_or_json(chart_dict, as_dict=False):
if altair_installed:
if not as_dict:
+ try:
return vegalite(chart_dict)
+ except ModuleNotFoundError:
+ return chart_dict
return chart_dict
