Skip to content
Snippets Groups Projects

exponentially decay message frequency in live_info

Merged Jorn Hoofwijk requested to merge limit_message_queue into master
1 file
+ 13
0
Compare changes
  • Side-by-side
  • Inline
+ 13
0
# -*- coding: utf-8 -*-
import ipykernel
import zmq
def test_private_api_used_in_live_info():
"""We are catching all errors in
adaptive.notebook_integration.should_update
so if ipykernel changed its API it would happen unnoticed."""
ctx = zmq.Context()
iopub_socket = ctx.socket(zmq.PUB)
iopub_thread = ipykernel.iostream.IOPubThread(iopub_socket)
assert hasattr(iopub_thread, '_events')
Loading