官术网_书友最值得收藏!

Verifying your installation

Once you have installed Bokeh, you will want to verify that it is correctly installed. In order to verify the installation and create all your Bokeh plots, you'll need a Jupyter Notebook. If you are not familiar with working with a Jupyter Notebook before or have installed, the following link will provide you with a step-by-step tutorial on how to install and work with Jupyter Notebook: http://jupyter.org/install.

You can verify your installation of Bokeh by generating a simple line plot using a Jupyter Notebook with the following code:

from bokeh.plotting import figure, output_file, show

#HTML file to output your plot into
output_file("bokeh.html")

#Constructing a basic line plot

x = [1,2,3]
y = [4,5,6]

p = figure()

p.line(x,y)

show(p)

This should open up a new tab on your browser with a plot illustrated as follows: 

Don't worry too much about what the code does for now. If you have got the preceding plot, you should be satisfied that Bokeh has been successfully installed on your local machine.

主站蜘蛛池模板: 临沭县| 黎城县| 运城市| 治县。| 张家川| 明光市| 白朗县| 道真| 云林县| 石家庄市| 临清市| 红原县| 广安市| 英德市| 平南县| 罗平县| 凤冈县| 湘阴县| 衡东县| 广德县| 扎赉特旗| 山阴县| 黄平县| 汉寿县| 繁峙县| 石嘴山市| 得荣县| 罗源县| 龙岩市| 澳门| 沈阳市| 平度市| 突泉县| 什邡市| 津南区| 醴陵市| 遵化市| 章丘市| 洛扎县| 浮山县| 会东县|