Is there a way to configure IPython to use an alternative interpreter like Jython? I'd like to be able to quickly experiment with Jython and the JVM and test libraries that I've written. IPython is awesome for regular CPython testing, and I'm hoping to be able to use it with Jython.
Related
How do I embed a non-blocking Python shell within a PySide application? It must inherit all active objects and variables. There is a simple widget available for this in wxPython but I cannot find the equivalent widget or approach using Qt/PySide. An example using PyQt4 and IPython no longer works, perhaps because that functionality is now packaged differently within the Jupyter Project. I get the error "ImportError: No module named 'IPython.zmq'". I'm fine with using IPython and Jupyter or not. I'm using Python 3.4.
Is there an easy way to convert an ipython notebook to plain python without using ipython itself (i.e. not using ipython nbconvert --to=python ...)?
Background: I want to test if there is a syntax error in various ipython notebooks using travis-ci. However, installing ipython from source takes too long and the ubuntu packages are outdated.
I wrote a simple script that does the conversion. It's probably not fool-proof but works for me. I'd still be happy to hear about a better solution.
Link to script: https://gist.github.com/hannorein/8423ad75547f37bba228
I've got a PyDev project and it is configured to use Python 3 grammar with the Python3 interpreter. P3 interpreter is auto configured by Eclipse and it mainly works fine but fails to resolve some of the internal libraries. For example, I'm having issues with the multiprocessing module, PyDev throws 'Undefined variable from import:' for various things like cpu_count, Queue, Process etc.
The code runs fine but seems like PyDev is confused. Yes, there are ways around this like using '# #UndefinedVariable' or setting the interpreter to Python2 (yes, P2 doesn't complain) but I wonder if there is a proper solution?
Regards,
All my install for python were working pretty well since soon. Now, I have a weird issue that generates import errors for some of my Python scripts and when using Ipython those import performs as expected.
This issue does not depend on the working dir (tested this several times with the same result). And I didn't change anything in my .bashrc regarding PYTHONPATHs.
So this might be a noob question, but is there an option in Ipython to display everything Ipython is doing when I run a command, so that I can track which is the package Ipython succesfully imported?
The packages I have trouble with are actually yaml, matplotlib cloud Image. Is it possible that an update from 2.6 to 2.7 is responsible for that? (I work on OSX Lion and most of the packages are installed via macports and updated using the upgrade outdated command).
As I think I can probably fix this myself with the command I asked for, don't bother seeking further for package compatibility or anything if you got the Ipython command that might suits me.
The difference of imports between python and ipython resulted from a cross defined python reference library (when installing most of the python libraries with macports and some without any known ports with other package managers).
Reinstalling the whole python libraries using the process described in http://astrofrog.github.io/macports-python/
corrects the issue and it is preferable to install manually the libraries that don't have any known ports (for instance with a setup build/install process).
I often use ipython with vim (vim-ipython plugin). It connects to ipython via ZMQ, so I need to run ipython console. I don't see any purpose to not use ipython console even if I don't use ZMQ features, so I want ipython to start ZMQ-based console without typing console. I know, that this problem could be partly solved with bash aliases, but I think that I would have problems with launching qtconsole or notebook.
We don't provide any way to make ipython console the default, and we're probably not about to, as it gets much less field testing than the regular terminal IPython. I'd recommend you just alias another convenient name to it.