Permalink
Browse files

Add metadata key for display_message messages

  • Loading branch information...
1 parent e0dce4f commit 9493a0e89a0fa0d58b465fbf319b7b9368cad459 Jason Grout committed Dec 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 misc.py
View
@@ -196,10 +196,10 @@ def session_metadata(metadata):
sys.stderr.flush()
session.metadata = old_metadata
-def display_message(data):
+def display_message(data, metadata=None):
session = sys.stdout.session
content = {'data': data, 'source': 'sagecell'}
- session.send(sys.stdout.pub_socket, 'display_data', content=content, parent = sys.stdout.parent_header)
+ session.send(sys.stdout.pub_socket, 'display_data', content=content, parent = sys.stdout.parent_header, metadata=metadata)
def json_default(obj):
if isinstance(obj, datetime):

0 comments on commit 9493a0e

Please sign in to comment.