IPython与IPython Notebook(Jupyter)安装
更新于2019-01-16 16:10:17
系统:Windows
1、首先需要安装python和pip
2、在命令行中键入下列指令,使用pip安装IPython、IPython Notebook及IPython和IPython Notebook依赖的相关python包
-
pip
install IPython
-
pip
install urllib3
-
pip
install jupyter
-
pip
install numpy
-
pip
install matplotlib
-
pip
install pandas
-
pip
install scipy
-
pip
install scikit-learn
3、在命令行键入下列命令,启动Ipython
Ipython
并键入下列命令,来进行简单输出
print('hello Ipython & IPython Notebook')
4、在命令行键入
IPython notebook
在跳出来的窗口中选择打开jupyter时使用的浏览器,我选择的是IE浏览器
至此,IPython和Ipython Notebook已安装完成,我们可以在jupyter中通过新建文件或导入文件来运行。
5、新建文件
6、导入文件
<li class="tool-item tool-active is-like "><a href="javascript:;"><svg class="icon" aria-hidden="true"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#csdnc-thumbsup"></use> </svg><span class="name">点赞</span> <span class="count">2</span> </a></li> <li class="tool-item tool-active is-collection "><a href="javascript:;" data-report-click="{"mod":"popu_824"}"><svg class="icon" aria-hidden="true"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-csdnc-Collection-G"></use> </svg><span class="name">收藏</span></a></li> <li class="tool-item tool-active is-share"><a href="javascript:;"><svg class="icon" aria-hidden="true"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-csdnc-fenxiang"></use> </svg>分享</a></li> <!--打赏开始--> <!--打赏结束--> <li class="tool-item tool-more"> <a> <svg t="1575545411852" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5717" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M179.176 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5718"></path><path d="M509.684 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5719"></path><path d="M846.175 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5720"></path></svg> </a> <ul class="more-box"> <li class="item"><a class="article-report">文章举报</a></li> </ul> </li> </ul> </div> </div> <div class="person-messagebox"> <div class="left-message"><a href="https://blog.csdn.net/sophiezjz"> <img src="https://profile.csdnimg.cn/1/7/4/3_sophiezjz" class="avatar_pic" username="sophiezjz"> <img src="https://g.csdnimg.cn/static/user-reg-year/1x/2.png" class="user-years"> </a></div> <div class="middle-message"> <div class="title"><span class="tit"><a href="https://blog.csdn.net/sophiezjz" data-report-click="{"mod":"popu_379"}" target="_blank">小猫奇点</a></span> </div> <div class="text"><span>发布了22 篇原创文章</span> · <span>获赞 20</span> · <span>访问量 1万+</span></div> </div> <div class="right-message"> <a href="https://im.csdn.net/im/main.html?userName=sophiezjz" target="_blank" class="btn btn-sm btn-red-hollow bt-button personal-letter">私信 </a> <a class="btn btn-sm bt-button personal-watch" data-report-click="{"mod":"popu_379"}">关注</a> </div> </div> </div> </article>