Skip to content

Print supresses display of vega-lite figure #62

@ghost

Description

I've encounterd a problem with pyvega and the Python print function.
The following example works, hence the figure is displayed correctly in the notebook:

import altair
altair.Chart(altair.load_dataset('movies')).encode(x='Production_Budget', y='IMDB_Rating')

If I print anything in this same cell, the figure output disappears:

import altair
print('foo')
altair.Chart(altair.load_dataset('movies')).encode(x='Production_Budget', y='IMDB_Rating')

Is this expected behavior?
Niels

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions