Terminal 如何与google colab中当前运行的命令单元交互?

Terminal 如何与google colab中当前运行的命令单元交互?,terminal,jupyter-notebook,google-colaboratory,Terminal,Jupyter Notebook,Google Colaboratory,这是细胞的样子 Cloning into 'XYZ'... The authenticity of host 'github.com (192.**.###.113)' can't be established. RSA key fingerprint is SHA256:nThbg6kXUpJIGOCWGl7E1spRomTxdCARLviKw6E5SY8. Are you sure you want to continue connecting (yes/no)? 如何给这个正在运行的命

这是细胞的样子

Cloning into 'XYZ'...
The authenticity of host 'github.com (192.**.###.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJIGOCWGl7E1spRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? 

如何给这个正在运行的命令单元格指定是或否?

一旦进程运行,就没有简单的方法与它交互;两种选择:

  • yes
    从shell传递给程序,例如
    echo'yes'| git…
    或只是
    y | git…
    (如果
    y
    用作响应)
  • 如果可能,请通过
    https
    路径而不是
    git
    路径进行克隆
  • 将“-y”或“-yes”与命令一起传递会起作用

    例如:

    !!pip卸载lightgbm--是