- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are trying to run streamlit app code on intel devcloud, but it is not working. Can you please help us to fix the issue.
Here are detailed steps which we have taken to upload and run streamlit app file.
1) We have connected the devcloud with cygwin tool on windows
2) Then we have uploaded streamlit app .py file on devcloud
3) We have run the file using - streamlit run name_of_file.py syntax
4) Program have created 2 URL (IP address) of website. first IP is for local host and 2nd IP is for network URL
5) We have tried to run 2nd URL on our browser, but it is not working here.
6) It is giving error - "This site can’t be reached"
7) We are also tried to run same python file using terminal on intel devcloud jupyterlab, but it also giving same error.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
Can you share the Intel DevCloud that you are using? Is it Intel DevCloud for oneAPI or FPGA or Edge?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are using intel devcloud for oneAPI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We could suggest you to do port forwarding if your application accepts it.
Please follow the below steps to do port forwarding
The port forwarding step involves the use of two terminals.
In the first Linux terminal
===========================
1. Execute ssh devcloud
2. Execute qsub -I(copy the compute node number)
which gives you a compute node
In the example the node number is s001-n012
In second Linux terminal(Don’t close the first terminal, keep it open)
=====================================================================
1. Execute ssh -L 127.0.0.1:8081:127.0.0.1:8081 devcloud
where 8081 is the port number
2. Now we have to do the port forwarding to the compute node also.(for this step we need the compute node number, which will be available from the first terminal(in step 2))
Execute ssh -L 127.0.0.1:8081:127.0.0.1:8081 s001-n012
Through this step we gets the same compute node.
As in the example, you can see we port forwarded the node s001-n012 and after that we are getting the same node s001-n012
Port forwarding is done.
In your script you have to specify the port number as port=<port_number>.( check the test_flask.py example)
If your application having access to that port, you can run your application there
Example
=============
I have created a small python file named test_flask.py
test_flask.py
-----------------------
from flask import Flask
app=Flask(__name__)
@app.route('/')
def hello():
return "This is my page"
@app.route('/home')
def home():
return "Home Page"
if __name__=='__main__':
app.run(port=8081,debug=False)
Here I have specified the port number in app.run as port=8081
After port forwarding, we can run this script in the port forwarded compute node(In the second terminal)
python3 test_flask.py
It will give the URL.
In this example, http://127.0.0.1:8081 is the URL.Please refer the screenshots.
Hope this resolve your issue.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you. Is your issue resolved?
Please let us know if we can go ahead and close this case.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.
Thanks

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page