File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33# Copyright (c) IPython Development Team.
44# Distributed under the terms of the Modified BSD License.
5- from ipykernel .jsonutil import json_clean
65from jupyter_client .session import Session , extract_header
76from traitlets import Any , CBytes , Dict , Instance
87from traitlets .config import Configurable
@@ -27,14 +26,15 @@ def publish_data(self, data):
2726 ----------
2827 data : dict
2928 The data to be published. Think of it as a namespace.
29+ Keys should be strings.
3030 """
3131 session = self .session
3232 buffers = serialize_object (
3333 data ,
3434 buffer_threshold = session .buffer_threshold ,
3535 item_threshold = session .item_threshold ,
3636 )
37- content = json_clean ( dict (keys = list (data .keys () )))
37+ content = dict (keys = list (data .keys ()))
3838 session .send (
3939 self .pub_socket ,
4040 'data_message' ,
You can’t perform that action at this time.
0 commit comments