-
Notifications
You must be signed in to change notification settings - Fork 123
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
Using heartrate on Google Colaboratory ? #7
Comments
Take a look at https://stackoverflow.com/questions/54465816/how-to-use-flask-in-google-colaboratory-python-notebook. Based on the first answer you could get the IP of the notebook with |
I have no experience with Flask, so this is a good time to give it a try ! I got the LAST example from But what exactly should I use as the "server side code AKA: backend" code for the factorial example from your article: import heartrate heartrate.trace(browser=True) def factorial(x): if name == "main": |
Use |
This is a COLAB Notebook that works with a demo Flasjk app: How do I convert that, so that it runs the factorial example ? |
Welp, I tried, couldn't get anything to work. If I run heartrate on port 80 and then point ngrok to port 80 I get close, but I get a 404. Seems to have to do with the SERVER_NAME config but setting it to something else like the ngrok domain doesn't help. |
When I run it on my local PC it seems to work fine, except in my webbrowser I do not see all of the expected output. I only see this: |
Try outside of IPython in just a regular script. |
I will try that! |
Having read the article https://towardsdatascience.com/3-tools-to-track-and-visualize-the-execution-of-your-python-code-666a153e435e, I was wondering on how to use heartrate on Google Colaboratory?
Is this possible and if yes: how exactly to that.
The text was updated successfully, but these errors were encountered: