Skip to Content
云端基因组学
book

云端基因组学

by Geraldine A. Van der Auwera, Brian D. O’Connor
April 2022
Beginner to intermediate
486 pages
10h 22m
Chinese
China Electric Power Press Ltd.
Content preview from 云端基因组学
Jupyter Notebooks
中的交互式分析
367
菜单,但我们真不建议你这么做。理论上讲,切换内核可能有帮助,例如在一部分
单元格运行另一语言的代码,但实际上这么做很危险,因为一不小心就会弄混。如
果需要在同一笔记本使用
Python
R
代码,你最好用
Python 3
内核和魔术方法命令,
就像我们在该笔记本所展示的那样。
了解上述内容之后,我们该运行几个真正的代码单元格!
12.2.3
运行
Hello World
单元格
我们来运行几个简单示例。如果你从未用过
Jupyter
笔记本,可借此机会好好体会一
下用它来工作的感受。我们将运行三种命令,分别展示在
Python
环境运行
Python
代码、
R
代码的方法和一个命令行工具的句法。
Python Hello World
这是用
Python
语言编写的
Hello World
经典示例。该示例用
print()
函数输出字符
串“
Hello World
”。你还记得第
8
章我们用
WDL
编写的
Hello World
示例吧。该
语句等价于我们当时使用的“
echo "Hello World"
”命令。如要运行单元格,请点
击单元格灰色区域任意位置选中它(们),接着在你键盘上按下
Shift+Enter
键,或
使用笔记本页面顶部工具栏“
Run
”(运行)菜单,运行单元格:
In [1]
print
("Hello World!")
Out [1] Hello World!
如想灵活一点,你可用一个变量来表示问候语“
Hello World!
”。双击单元格,进入
编辑状态,将代码改为如下内容,接着再次运行: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Overcome a Power Deficit

How to Overcome a Power Deficit

Cyril Bouquet, Jean-Louis Barsoux
The Human Factor in AI-Based Decision-Making

The Human Factor in AI-Based Decision-Making

Philip Meissner, Christoph Keding

Publisher Resources

ISBN: 9787519864422