Skip to content

e5. Tips

Jeong Seongmoon edited this page Nov 26, 2023 · 2 revisions

Clear notebook output

clear jupyter notebook output before make commit

jupyter nbconvert --clear-output --inplace {file.ipynb}
#jupyter nbconvert --clear-output --inplace .\notebook\*.ipynb

Timezone

If you run simulation or demo mode, you should set timezone to 'Asia/Seoul' because smtm use Upbit trading information for simulation and demo. For Linux, below command is available.

timedatectl set-timezone 'Asia/Seoul'

Run with remote console

For keeping smtm program process after terminating ssh connection, using nohup is recommended as below. Standard, error ouput is redirected to specific files.

nohup python -m smtm --mode 3 --demo 1 > nohup.out 2> nohup.err < /dev/null &