我在amazon EWS EC2上免费安装了epd 7.3.2,并将ipython笔记本硬件配置为公共笔记本服务器.
我以这种方式运行服务器:
nohup ipython notebook --profile=nbserver %
Run Code Online (Sandbox Code Playgroud)
一切正常,我可以通过https和代码登录密码.
现在我想使用pdb/ipdb来调试笔记本内部的python函数,但是在Internet上我找不到如何设置调试器的过程.
有人能帮我吗 ?
问候
马西莫
这些是已安装的包:
root@domU-xx-xx-xx-xx-xx-xx:/opt/epdFree7.3.2/bin# ./pip freeze
EPD==7.3
Examples==7.3
Jinja2==2.6
MKL==10.3
PIL==1.1.7
Pygments==1.4
PythonDoc==2.7.3
appinst==2.1.2
apptools==4.1.0
casuarius==1.0
chaco==4.2.0
cloud==2.4.6
configobj==4.7.2
distribute==0.6.26
enable==4.2.0
enaml==0.2.0
enstaller==4.5.6
etsproxy==0.1.1
freetype==2.4.4
idle==2.7.3
ipdb==0.7
ipython==0.13.1
kernmagic==0.1.0
matplotlib==1.1.0
nose==1.1.2
numpy==1.6.1
ply==3.4
pyaudio==0.2.4
pyface==4.2.0
pyglet==1.1.4
python-dateutil==1.5
pytz==2011n
pyzmq==2.1.11
scipy==0.10.1
tornado==2.2
traits==4.2.0
traitsui==4.2.0
wsgiref==0.1.2
wxPython==2.8.10.1
Run Code Online (Sandbox Code Playgroud)
root@domU-xx-xx-xx-xx-xx-xx:/opt/epdFree7.3.2/bin# ./enpkg -l
prefix: /opt/epdFree7.3.2
Name Version Store
============================================================
appinst 2.1.2-1 -
apptools 4.1.0-1 -
casuarius 1.0-1 -
chaco …Run Code Online (Sandbox Code Playgroud) 我正在学习如何将pandas dataFrame写入SQLite数据库.
我进入了一个示例代码:
import pandas as pd
import pandas.io.sql as pd_sql
import sqlite3 as sql
con = sql.connect("/home/msalese/Documents/ipyNotebooks/tmp.db")
df =pd.DataFrame({'TestData':[1,2,3,4,5,6,7,8,9]})
pd_sql.write_frame(df, "tbldata2", con)
Run Code Online (Sandbox Code Playgroud)
但上面的代码引发异常:
---------------------------------------------------------------------------
InterfaceError Traceback (most recent call last)
<ipython-input-31-c844f7e3f2e6> in <module>()
----> 1 pd_sql.write_frame(df, "tbldata2", con)
/opt/epdFree7.3.2/lib/python2.7/site-packages/pandas-0.10.1-py2.7-linux-x86_64.egg/pandas/io/sql.pyc in write_frame(frame, name, con, flavor, if_exists, **kwargs)
208 if func is None:
209 raise NotImplementedError
--> 210 func(frame, name, safe_names, cur)
211 cur.close()
212 con.commit()
/opt/epdFree7.3.2/lib/python2.7/site-packages/pandas-0.10.1-py2.7-linux-x86_64.egg/pandas/io/sql.pyc in _write_sqlite(frame, table, names, cur)
219 table, col_names, wildcards)
220 data = [tuple(x) for …Run Code Online (Sandbox Code Playgroud) 我在terralang网站上阅读关于terra语言的内容
"一种新的低级系统编程语言,旨在与Lua编程语言无缝互操作......"
Zach DeVito(主要作者)写了关于terra的使用:
一种具有高性能扩展的脚本语言.....
用于构建语言的嵌入式JIT编译器.....
一个独立的低级语言....
但是(可能是我的错)我不明白土地是否是:
有人可以帮助我更好地了解terralang项目的进展情况吗?
谢谢