@@ -336,10 +336,7 @@ def write_stderr(error_message):
336
336
337
337
# Increment the bytes and message count
338
338
self ._iopub_window_msg_count += 1
339
- if msg_type == 'stream' :
340
- byte_count = sum ([len (x ) for x in msg_list ])
341
- else :
342
- byte_count = 0
339
+ byte_count = sum ([len (x ) for x in msg_list ])
343
340
self ._iopub_window_byte_count += byte_count
344
341
345
342
# Queue a removal of the byte and message count for a time in the
@@ -360,12 +357,7 @@ def write_stderr(error_message):
360
357
The notebook server will temporarily stop sending output
361
358
to the client in order to avoid crashing it.
362
359
To change this limit, set the config variable
363
- `--NotebookApp.iopub_msg_rate_limit`.
364
-
365
- Current values:
366
- NotebookApp.iopub_msg_rate_limit={} (msgs/sec)
367
- NotebookApp.rate_limit_window={} (secs)
368
- """ .format (self .iopub_msg_rate_limit , self .rate_limit_window )))
360
+ `--NotebookApp.iopub_msg_rate_limit`.""" ))
369
361
else :
370
362
# resume once we've got some headroom below the limit
371
363
if self ._iopub_msgs_exceeded and msg_rate < (0.8 * self .iopub_msg_rate_limit ):
@@ -382,12 +374,7 @@ def write_stderr(error_message):
382
374
The notebook server will temporarily stop sending output
383
375
to the client in order to avoid crashing it.
384
376
To change this limit, set the config variable
385
- `--NotebookApp.iopub_data_rate_limit`.
386
-
387
- Current values:
388
- NotebookApp.iopub_data_rate_limit={} (bytes/sec)
389
- NotebookApp.rate_limit_window={} (secs)
390
- """ .format (self .iopub_data_rate_limit , self .rate_limit_window )))
377
+ `--NotebookApp.iopub_data_rate_limit`.""" ))
391
378
else :
392
379
# resume once we've got some headroom below the limit
393
380
if self ._iopub_data_exceeded and data_rate < (0.8 * self .iopub_data_rate_limit ):
0 commit comments