点击查看代码
#!/bin/bash
#SBATCH -p Batch2
#SBATCH -N 1
#SBATCH -n 1
#SBATCH -c 1
#SBATCH --job-name=jupyter
#SBATCH --output=jupy.out
#SBATCH --error=jupy.err
#SBATCH --parsable
port=8003
ip=`ifconfig |grep -m 1 inet |awk '{print$2}'`
jupyter lab --no-browser --port=${port} --ip=${ip}