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

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.

主站蜘蛛池模板: 密云县| 江陵县| 大庆市| 青岛市| 焦作市| 襄垣县| 曲周县| 富平县| 云林县| 旅游| 天镇县| 屯留县| 内江市| 广丰县| 黑山县| 杭锦后旗| 丹寨县| 南阳市| 镶黄旗| 昌宁县| 新兴县| 牡丹江市| 积石山| 景洪市| 蕲春县| 旌德县| 宜兰市| 康马县| 廉江市| 双江| 呼伦贝尔市| 双流县| 睢宁县| 兴业县| 右玉县| 涪陵区| 祥云县| 永川市| 巴中市| 庄浪县| 石嘴山市|