Coder Social home page Coder Social logo

Comments (6)

jdhardy avatar jdhardy commented on August 16, 2024

I ran into this myself over the weekend and I couldn't quite figure it out either. Directly importing IPython.core immediately before it doesn't work either. I'm think there must be something special about the IPython module namespace that's tripping up IronPython, but I haven't figured out what it is yet.

from main.

bfibrich avatar bfibrich commented on August 16, 2024

Any ideas anyone? I have the same problem though using suggestions ipython/ipython#4062 I still get issues.

from main.

swinstanley avatar swinstanley commented on August 16, 2024

(copied this from same response in issue linked above).

There does seem to be some bug in IronPython 2.7.x (9cbff4c) with ipython-2.0.0-dev ebf12123833c207995a03dc9bb542ecf35cc1dcc related to the way modules are imported which breaks the ipython "shell" script.

I found this code successful

from IPython import core as C
import IPython
IPython.core = C
from IPython import start_ipython
start_ipython()

It's something to do with the PlatformAdaptionLayer and wierd behaviour with nested packages in IronPython which I can't quite pin down. However the workaround is "working" at the moment.

from main.

paweljasinski avatar paweljasinski commented on August 16, 2024

I have commited a fix in IronPython (94b55df in ipy-2.7-maint)
Details: https://ironpython.codeplex.com/workitem/34551

On Fri, Oct 18, 2013 at 3:17 PM, swinstanley [email protected]:

(copied this from same response in issue linked above).

There does seem to be some bug in IronPython 2.7.x (9cbff4chttps://github.com/IronLanguages/main/commit/9cbff4cfde6d2071a8158c54535cd1bc83c82e32)
with ipython-2.0.0-dev ebf1212ebf12123833c207995a03dc9bb542ecf35cc1dccrelated to the way modules are imported which breaks the ipython "shell"
script.

I found this code successful

from IPython import core as Cimport IPythonIPython.core = Cfrom IPython import start_ipythonstart_ipython()

It's something to do with the PlatformAdaptionLayer and wierd behaviour
with nested packages in IronPython which I can't quite pin down. However
the workaround is "working" at the moment.


Reply to this email directly or view it on GitHubhttps://github.com//issues/123#issuecomment-26594500
.

from main.

varzan avatar varzan commented on August 16, 2024

Looks like this has been fixed and can be closed?

from main.

paweljasinski avatar paweljasinski commented on August 16, 2024

Just for the record I will maintain forks/branches for the purpose of using ipython under IronPython.

https://github.com/paweljasinski/IronLanguages/tree/ipython-notepad - patches in IronPython
https://github.com/paweljasinski/pyzmq/tree/iron-cleanup - pyzmq - ctype backend for IronPython
https://github.com/paweljasinski/tornado/tree/iron-wip - patches in tornado
https://github.com/paweljasinski/ipython/tree/iron-notepad - patches in ipython
https://github.com/paweljasinski/pyreadline - patches in readline

Once merged into the official tree, branches will disappear. ipython and tornado will stay forever, as there is no intention to merge 2.x based IronPython changes into the master.

from main.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.