New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PTB on Jupyter Notebooks and Google Collab #3251
Comments
Hi. Thanks for reaching out. AFAIK, jupyter notebooks to a lot of background magic to make You might be able to work around this directly by using the methods that TBH, as a maintainer, I don't see a priority of trying to natively support running PTB in jupyter notebooks. For one, I'm not very familiar with those and to the best of my knowledge jupyter notebooks are not really designed to execute long-running processes. Secondly, I'm not quite sure how PTB could/should/would do things differently to work in jupyter notebooks more easily. If you have any suggestions on what PTB could improve, you are of course very welcome to share your findings with us so that we can see if we can adapt them! |
@Bibo-Joshi , thank you for your kind reply! I got you! I just downloaded PyCharm and started to code there |
For those who are using jupyter notebook or google colab for python-telegram bot >20.0 , |
Issue I am facing
I am trying to run my first bot from Tutorial in Jupyter Notebook and facing this issue:
RuntimeError: Cannot close a running event loop
Though when running on Ubuntu WSL it perfectly works! But Jupyter is way more comfy for me than creating and running files in Ubuntu, so I have a question how to fix this.
Traceback to the issue
Related part of your code
Operating System
Windows 10
Version of Python, python-telegram-bot & dependencies
The text was updated successfully, but these errors were encountered: