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

Using Jupyter without pre-installation

In Chapter 2, Anaconda Installation, we will discuss how to install Jupyter via Anaconda installation. However, we could launch Jupyter occasionally without pre-installation by going to the web page at https://jupyter.org/try:

  1. The welcome screen will be presented with various options for trying out different languages. 
  2. For example, by clicking the Try Jupyter with Julia image, we would see the following screen:
  1. To save space, the screenshot shows only the first part of the demo. Any readers could try the previous two steps to view the whole demo. In addition, if we click the Try Jupyter with R image, the following screen would show:
  1. After selecting Try Jupyter with Python, you will be presented with the welcome screen for the same. 
  1. Next, we will show you how to execute a few simple commands in R, Python, and Julia. For example, we could use R to use the platform to run a few simple command lines. In the following example, we enter pv=100, r=0.1,and n=5:
  1. After clicking the Run button on the menu bar, we assign those values to the three variables. Then we can estimate the future value of this present value, as illustrated here:
  1. Similarly, we could try to use Python, as shown here:

In the preceding example, we import the Python package called scipy and give it a short name, sp. Although other short names could be used to represent the scipy package, it is a convention to use sp. Then, we use the sqrt() function included in the Python package.

For Julia, we could try the following code (shown in the following screenshot). Again, after going to File|New on the menu, we choose Julia 0.6.0. As of May 09, 2018, 0.6.0 is the current version for Julia. Note that your current version for Julia could be different:

In the code, we define a function called sphere_vol with just one input value of r (in radians). The answer is 64.45 for an input value of 2.5.

主站蜘蛛池模板: 阿坝县| 金昌市| 杭州市| 师宗县| 云安县| 济源市| 集安市| 遂宁市| 铜陵市| 阿坝| 盐池县| 荆州市| 镇巴县| 金山区| 肥乡县| 桑植县| 茌平县| 基隆市| 即墨市| 江口县| 锡林浩特市| 修文县| 双辽市| 东辽县| 大石桥市| 沁阳市| 芜湖县| 石狮市| 襄樊市| 阜南县| 福建省| 阳谷县| 门源| 尉氏县| 辽阳县| 正镶白旗| 天台县| 台东县| 台前县| 巍山| 邻水|