作者ggggggh (ggggggh)
看板Python
标题[问题] how to run local turnnel on my local
时间Sun Feb 14 19:42:37 2021
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://webptt.com/cn.aspx?n=bbs/Python/M.1613302959.A.548.html
1F:→ liton: Try to run your code one by one and line by line 02/14 20:44
2F:→ ggggggh: 只有下面这行有问题欸 02/14 20:51
3F:→ ggggggh: streamlit run app.py &>/dev/null& 02/14 20:51
4F:推 penut85420: Is there any error message 02/15 00:53
5F:→ bluecadence: error message 不是很清楚吗 "Background processes 02/15 12:15
6F:→ bluecadence: not supported" 02/15 12:16
7F:→ bluecadence: 你执行命令里面的 & 就是在跑 background job 02/15 12:17
8F:推 MAGICXX: 为啥不用中文问捏...XD 02/16 03:35
9F:推 loveyou9527: 略懂略懂 02/18 10:41
10F:→ ggggggh: 抱歉。之前手机打不出中文 02/18 13:46
11F:→ ggggggh: 感谢。 虽然还不知道怎麽做 02/18 13:46
12F:→ ggggggh: 谢谢大家帮看 02/18 13:46