最近電腦老卡,內心憂鬱下買了塊板,企圖用它代替電腦(癡心妄想
參考博文:https://blog.csdn.net/nkwshuyi/article/details/80331754
step1 建立一個github庫
庫名簡介可隨意,一定要是公開的,私有的無法用哦
step2 準備好文件
在剛建好的倉庫裏增加三個文件,內容如下:
demo.ipynb
這裏面應該是一個可以再jupyter上運行的python文件
environment.yml
上面準備的代碼需要的環境:(隨便寫點先~)
postBuild
輸入
python -m spacy download en
python -m spacy download en_core_web_lg
python -m ipykernel install --user --name=AAA
把AAA後面寫個使用者名字就行,我寫了自己的英文名
step3 加載頁面
先在電腦端嘗試配置。
打開瀏覽器,輸入網址(https://mybinder.org/)
在【GitHub repository name or URL】填入github庫的url
點擊laugh就可以加載頁面了,第一次有點慢可能要十幾分鍾
複製【Copy the URL below and share your Binder with others:】裏面的內容粘貼到ipad網頁地址裏面即可!
step4
複製【Copy the URL below and share your Binder with others:】裏面的內容粘貼到ipad網頁地址,運行幾分鐘就可以了,點擊我們之前寫得py頁面