[問題] how to run local turnnel on my local

看板Python作者 (ggggggh)時間4年前 (2021/02/14 19:42), 編輯推噓3(309)
留言12則, 6人參與, 最新討論串1/1
Hi python expert sorry to bother However, I get below code on google colab it can run the streamlit on colab to let others link to this app.py due to google colab only can run 12 hours So, I am trying to use these code to run on my ubuntun PC however, it will show the thrid line code got error "Background processes not supported" I use Ipython to run it on both google colab and my local ubutntu So strange it can't run.......... Please help........ Thanks a lot code as below--------------------- ---------------------------------------------------------------- !pip install streamlit !npm install localtunnel !streamlit run app.py &>/dev/null& !npx localtunnel --port 8501 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.200.220.216 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1613302959.A.548.html

02/14 20:44, 4年前 , 1F
Try to run your code one by one and line by line
02/14 20:44, 1F

02/14 20:51, 4年前 , 2F
只有下面這行有問題欸
02/14 20:51, 2F

02/14 20:51, 4年前 , 3F
streamlit run app.py &>/dev/null&
02/14 20:51, 3F

02/15 00:53, 4年前 , 4F
Is there any error message
02/15 00:53, 4F

02/15 12:15, 4年前 , 5F
error message 不是很清楚嗎 "Background processes
02/15 12:15, 5F

02/15 12:16, 4年前 , 6F
not supported"
02/15 12:16, 6F

02/15 12:17, 4年前 , 7F
你執行命令裡面的 & 就是在跑 background job
02/15 12:17, 7F

02/16 03:35, 4年前 , 8F
為啥不用中文問捏...XD
02/16 03:35, 8F

02/18 10:41, , 9F
略懂略懂
02/18 10:41, 9F

02/18 13:46, , 10F
抱歉。之前手機打不出中文
02/18 13:46, 10F

02/18 13:46, , 11F
感謝。 雖然還不知道怎麼做
02/18 13:46, 11F

02/18 13:46, , 12F
謝謝大家幫看
02/18 13:46, 12F
文章代碼(AID): #1WAGolL8 (Python)
文章代碼(AID): #1WAGolL8 (Python)