Displaying Bokeh figure in Jupyter notebook is very similar to the above. The only change you need to make is to import output_notebook instead of output_file from bokeh.plotting module.
from bokeh.plotting import figure, output_notebook, show
Call to output_notebook() function sets Jupyter notebook’s output cell as the destination for show() function as shown below −
output_notebook() show(p)
Enter the code in a notebook cell and run it. The sine wave will be displayed inside the notebook.