Jupyter notebook 具有ssh连接的Jupyter bash模式 %%%bash ssh远程计算机 ls 出口 ls
你应该可以这样做:Jupyter notebook 具有ssh连接的Jupyter bash模式 %%%bash ssh远程计算机 ls 出口 ls,jupyter-notebook,jupyter,Jupyter Notebook,Jupyter,你应该可以这样做: %%bash ssh remote-machine ls exit ls <- does not execute %%%bash ssh远程机器您可以在单独的单元中完成吗?考虑过,但正在寻找更整洁的东西!:) %%bash ssh remote-machine <<EOF echo ----------- remote ------------------- ls hostname echo ----------- remote -----------
%%bash
ssh remote-machine
ls
exit
ls <- does not execute
%%%bash
ssh远程机器您可以在单独的单元中完成吗?考虑过,但正在寻找更整洁的东西!:)
%%bash
ssh remote-machine <<EOF
echo ----------- remote -------------------
ls
hostname
echo ----------- remote -------------------
EOF
echo ----------- local -------------------
ls
hostname
echo ----------- local -------------------