I’m trying to run streaming this in a jupyter notebook, but I get this error:
RuntimeError Traceback (most recent call last)
<ipython-input-7-199777d5086d> in <module>
----> 1 conn.run(['account_updates', 'trade_updates'])
~/anaconda3/lib/python3.7/site-packages/alpaca_trade_api/stream2.py in run(self, initial_channels)
300 if self._debug:
301 traceback.print_exc()
--> 302 loop.run_until_complete(self.close(should_renew))
303 if loop.is_running():
304 loop.close()
~/anaconda3/lib/python3.7/asyncio/base_events.py in run_until_complete(self, future)
564 future.add_done_callback(_run_until_complete_cb)
565 try:
--> 566 self.run_forever()
567 except:
568 if new_task and future.done() and not future.cancelled():
~/anaconda3/lib/python3.7/asyncio/base_events.py in run_forever(self)
519 self._check_closed()
520 if self.is_running():
--> 521 raise RuntimeError('This event loop is already running')
522 if events._get_running_loop() is not None:
523 raise RuntimeError(
could it be that jupyter notebook is getting in the way or do I have incompatible versions?