There is nothing wrong with your code. When you run
bokeh serve test.py --args 1
That starts a Bokeh server that can server web pages with Bokeh applications. The code in test.py is *only* run when users open a browser to those pages. The default URL is going to be something like:
But for convenience, you can also add --show to the command line, and the bokeh server will automatically open a browser the correct URL:
bokeh serve --show test.py --args 1
Of course, note that your code does not actually add any plots or widgets to the Bokeh document, so you will only see a blank page (but you will see the print statement in the console output where you ran "bokeh serve")