- Hands-On Data Visualization with Bokeh
- Kevin Jolly
- 171字
- 2021-06-25 20:50:21
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.
- arc42 by Example
- Visual Basic程序設(shè)計(第3版):學習指導與練習
- jQuery Mobile移動應(yīng)用開發(fā)實戰(zhàn)(第3版)
- Express Web Application Development
- Visual C#.NET Web應(yīng)用程序設(shè)計
- Qlik Sense? Cookbook
- 多媒體技術(shù)及應(yīng)用
- Puppet:Mastering Infrastructure Automation
- Developing Java Applications with Spring and Spring Boot
- 企業(yè)級Java現(xiàn)代化:寫給開發(fā)者的云原生簡明指南
- Learning D3.js 5 Mapping(Second Edition)
- 基于JavaScript的WebGIS開發(fā)
- Getting Started with the Lazarus IDE
- JavaScript高級程序設(shè)計(第4版)
- 情境微課開發(fā)(第2版)