Changing the IPython interpreter

五迷三道 提交于 2019-12-10 17:10:56

问题


I'm using Python with kdb+. To do this I'm using PyQ, which brings Python and kdb+/Q to the same process and allows both languages to operate on the same set of data/memory space.

After some effort, I am able to load Python into the kdb+/Q process on OS X using the instructions from here, i.e. running

q python.q [-<python option>@ <python option value>]* python-script

This is all good, but I would like to use the above command as interpreter in IPython (Notebook for research, etc.).

So, how do you change the interpreter in IPython? I've seen the FAQ here, but creating a virtual environment doesn't seem like the solution. Ideally I would create a profile for IPython.

Many thanks.


回答1:


You can install the latest version of PyQ using the following pip command:

pip install -i https://pypi.enlnt.com --no-binary pyq pyq

This should install a pyq executable. To run IPython, do

pyq -mIPython

For more information about PyQ and IPython, see my presentation "Exploring KDB+ Data in IPython Notebooks".



来源:https://stackoverflow.com/questions/26560086/changing-the-ipython-interpreter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!