1

I run jupyter notebook (Python editor) on background in order to keep one terminal for keep working without needs to run a second terminal. so I have done this:

#jupyter notebook &

but the problem is when jupyter notebook is running it keeps send me logs, and this is typically painful and bother me when I'm typing command.

I wanted to stop jupyter notebook to send me these logs???

1

1 Answer 1

5

Add &>/dev/null to the command to send stdout and stderr to /dev/null, the nirvana of Linux systems:

jupyter notebook &>/dev/null &

By the way it doesn't matter where you put the redirection, that's also fine:

&>/dev/null jupyter notebook &
2
  • could you explain what the &> does in this case
    – HISI
    Nov 15, 2017 at 13:23
  • 1
    @YassineSihi & takes stdout and stderr, > redirects it to somewhere, /dev/null is the null device. Also see here: askubuntu.com/a/350216/507051
    – dessert
    Nov 15, 2017 at 13:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.