Show python output?

Hey All, I wonder if there is any way to show python output
—i.e.logs or print(‘Using device:’, device)—
in Spaces.

Thanks in advance

Hi,

You can check the output by clicking on the “building” or “running” button next to the name of the Space.

Thanks!! My mistake was because that label is clickable in owned spaces, but not in spaces by other users.

When I click “Running” on my app, it opens a new browser tab which displays the following:

2021-12-23 13:26:28.846 INFO    matplotlib.font_manager: generated new fontManager

  You can now view your Streamlit app in your browser.

  Network URL: http://172.17.0.223:8501
  External URL: http://52.87.223.166:8501

However, when I copy and paste either of those URLs into a new browser tab, I get the following error:

Unable to connect

Firefox can’t establish a connection to the server at 172.17.0.223:8501.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

Could this be due to a setting in my Firefox browser, or due to a system/network/security setting on my Mac perhaps? For reference I am on a 13" Macbook Air 2018, and using Firefox version 95.0.2 (64-bit) and this is in regards to the following app on my Spaces page: Fantasy Football Stats (Under Construction) - a Hugging Face Space by jmansfield89

Appreciate any help!
-JM

Facing the same problem, have you found any solution


Click on logs. This should show if you own this space.
Click on containers.
This should show the output of the print statements.