1

The following code snippet

import json
import time
import requests

resp = requests.get(f'https://blockchain.info/blocks/{round(time.time() * 1000)}?format=json')
hashes = [b['hash'] for b in resp.json()['blocks']]
hashes = hashes[:1]

for hash in hashes:
    resp = requests.get(f'https://blockchain.info/rawblock/{hash}')
    print(json.dumps(resp.json(), indent=2))

… throws the following error in Pycharm:

IOPub data rate exceeded. The notebook server will temporarily stop sending output to the client in order to avoid crashing it. To change this limit, set the config variable --NotebookApp.iopub_data_rate_limit.

Current values: NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec) NotebookApp.rate_limit_window=3.0 (secs)

I know of alledged dups. This question is about running the notebook in PyCharm. I run the notebook as managed server. How can I fix this?

ManuelSchneid3r
  • 15,084
  • 10
  • 60
  • 96

0 Answers0