刚开始使用python,用的是ipython notebook,感觉很好用。写的程序主要是处理文件的,读写txt文件,生成xml文件,其中参考http://www.cnblogs.com/wangshide/archive/2011/10/29/2228936.htmlxml文件的生成和读写,感觉p...
分类:
编程语言 时间:
2015-07-02 21:01:03
阅读次数:
142
原文:http://kochiya.me/www/posts/Ipython!.html前几天偶然在公司内网上拖了一本Learning IPython for Interactive Computing and Data Visualizatio,如名字所说,这本书主体内容就是讨论ipython的使...
分类:
编程语言 时间:
2015-06-20 18:14:45
阅读次数:
212
安装使用jupyter(原来的notebook)...
分类:
其他好文 时间:
2015-06-12 11:47:07
阅读次数:
189
首先我们可能会用free去查看内存的使用率,它应该是这样的
[root@ipython~]#free-m
totalusedfreesharedbufferscached
Mem:3204031707332049827649
-/+buffers/cache:355928480
Swap:16087016087
##实际上在一个进程结束后其内存是会被释放的,但是内核..
分类:
系统相关 时间:
2015-06-09 17:53:05
阅读次数:
165
+ Spark Tutorial: Learning Apache SparkThis tutorial will teach you how to use Apache Spark, a framework for large-scale data processing, within a notebook. Many traditional frameworks were designed to...
分类:
编程语言 时间:
2015-06-08 09:48:05
阅读次数:
1200
安装篇安装Python,现在是python2.7.10。按照自己的平台下载对应的版本安装即可。安装IPython,IPython的官网很容易找到。安装完毕后,会在你的python目录下出现一个Scripts的目录,ipython的一些主要文件都在里面。安装pyreadline (only for w...
分类:
编程语言 时间:
2015-06-05 17:24:17
阅读次数:
227
ref: Learning Ipython for interactive computing and data visualizationcode website:http://ipython.rossant.net.启动:基础,可以用powershell在window下实现近似linux操作no...
分类:
编程语言 时间:
2015-06-03 13:32:04
阅读次数:
192
如果NetworkX不好用,pip uninstall 然后install1) 看每个node的social情况In [1]: import networkx as nxIn [2]: nx.read 比如nx.read_adjlist nx.read_dot nx.read_edgelist这个时...
分类:
编程语言 时间:
2015-06-03 13:21:54
阅读次数:
172
保存
from save_ipython_variables import load_all_variables, save_variable
save_variable('pa_patmas', pa_patmas)
save_variable('dhc_workload', dhc_workload)
#put it into pickle for further use
读取
loa...
分类:
编程语言 时间:
2015-06-02 11:21:28
阅读次数:
248
IPython Notebook使用起来简洁方便,但是有时候如果需要导入一个现有的.py文件,则需要注意选择导入的方法以达到不同的效果。目前遇到3种方法。(1) 直接将.py文件拖拽到Notebook界面中的列表里:然后点击 Upload。这种方法需要定义好的文件格式,效果比较差。自己写的.py往往...
分类:
编程语言 时间:
2015-05-28 01:58:35
阅读次数:
834