Skip to content

Commit

Permalink
Cleaning up display method
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisonbg committed Jun 21, 2017
1 parent fae242a commit 9d4ab86
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions altair/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,21 +295,8 @@ def configure_facet_scale(self, *args, **kwargs):

# Display related methods
def _ipython_display_(self):
# import copy
# from vega import utils
from IPython.display import display

# DEFAULTS = {
# "config": {
# "cell": {
# "width": 400,
# "height": 400/1.5
# }
# }
# }

spec = self.to_dict()
# spec = utils.nested_update(copy.deepcopy(DEFAULTS), spec)
data = {'application/vnd.vegalite+json': spec}
display(data, raw=True)

Expand Down

0 comments on commit 9d4ab86

Please sign in to comment.