Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
Fix #7 by using ReferenceLoopHandling.Ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaykul committed Jun 30, 2017
1 parent fdba3bc commit cca7666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jupyter/Server/ExecuteHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public void SendOutputMessageToIOPub(Message message, PublisherSocket ioPub, Dis
content.Add("execution_count", this.executionCount);
content.Add("data", data.Data);
content.Add("metadata", data.MetaData);

Message outputMessage = new Message(MessageTypeValues.ExecuteResult, JsonConvert.SerializeObject(content), message.Header);
Message outputMessage = new Message(MessageTypeValues.ExecuteResult, JsonConvert.SerializeObject(content, new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore }), message.Header);

this.logger.LogInformation(string.Format("Sending message to IOPub {0}", JsonConvert.SerializeObject(outputMessage)));
this.messageSender.Send(outputMessage, ioPub);
Expand Down

0 comments on commit cca7666

Please sign in to comment.