How to run a Python script in a '.py' file from a Google Colab notebook?

前端 未结 6 2121
星月不相逢
星月不相逢 2021-01-31 17:14
%%javascript
IPython.OutputArea.prototype._should_scroll = function(lines) {
    return false;
}

%run rl_base.py

I run this giving error saying rl_bas

6条回答
  •  花落未央
    2021-01-31 17:40

    You should not upload to gdrive. You should upload it to Colab instead, by calling

    from google.colab import files
    files.upload()
    

提交回复
热议问题