- 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.
- ClickHouse性能之巔:從架構設計解讀性能之謎
- Delphi程序設計基礎:教程、實驗、習題
- Learning C++ Functional Programming
- 軟件測試工程師面試秘籍
- Java加密與解密的藝術(第2版)
- Podman實戰
- 假如C語言是我發明的:講給孩子聽的大師編程課
- 人人都是網站分析師:從分析師的視角理解網站和解讀數據
- MySQL數據庫管理與開發(慕課版)
- Building Minecraft Server Modifications
- C語言程序設計
- Learning Laravel's Eloquent
- MongoDB,Express,Angular,and Node.js Fundamentals
- C#開發案例精粹
- Python Deep Learning