在bash Jupyter Notebook中执行“回声,读取”

时间:2019-05-31 02:05:38

标签: bash shell jupyter

我有一个bash shell脚本,编写该脚本可从终端接收输入:

echo -e "\e[35mAre the reads paired-end?\e[0m"

read response

if [[ "$response" == [yY]es ]]; 
then
    mkdir ~/Data/FungiSeq/Run_$run_number/Sequences_Quality_Improvement/Paired-end
    echo -e "\e[93mA paired-end sub-folder was created\e[0m"  
else 
    echo -e "\e[93mYou are using the wrong script - this is for paired end reads only\e[0m"
fi

但是,当我在bash内核中的Jupyter笔记本中运行脚本时,它不会读取回显响应。

是否有与python3 input()函数等效的函数?在哪里打开新的命令栏?

0 个答案:

没有答案