Thanks to visit codestin.com
Credit goes to github.com

Skip to content

IPython support #4791

Open
Open
@amorenoz

Description

@amorenoz

Feature

Support for running IPython both as module rustpython -m IPython and as part of a script rustpython -c "import IPython; IPython.embed()"

Currently, it fails:

> cargo install --git https://github.com/RustPython/RustPython --branch main  --features=ssl && rustpython --install-pip get-pip && rustpython -m pip install IPython && rustpython -c "import IPython"
[...]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/amorenoz/.local/lib/rustpython3.11/site-packages/IPython/__init__.py", line 52, in <module>
    from .core.application import Application
  File "/home/amorenoz/.local/lib/rustpython3.11/site-packages/IPython/core/application.py", line 26, in <module>
    from IPython.core import release, crashhandler
  File "/home/amorenoz/.local/lib/rustpython3.11/site-packages/IPython/core/crashhandler.py", line 27, in <module>
    from IPython.core import ultratb
  File "/home/amorenoz/.local/lib/rustpython3.11/site-packages/IPython/core/ultratb.py", line 101, in <module>
    import stack_data
  File "/home/amorenoz/.local/lib/rustpython3.11/site-packages/stack_data/__init__.py", line 1, in <module>
    from .core import Source, FrameInfo, markers_from_ranges, Options, LINE_GAP, Line, Variable, RangeInLine, \
  File "/home/amorenoz/.local/lib/rustpython3.11/site-packages/stack_data/core.py", line 15, in <module>
    import executing
  File "/home/amorenoz/.local/lib/rustpython3.11/site-packages/executing/__init__.py", line 12, in <module>
    from .executing import Source, Executing, only, NotOneValueFound, cache, future_flags
  File "/home/amorenoz/.local/lib/rustpython3.11/site-packages/executing/executing.py", line 95, in <module>
    _get_instructions = dis.get_instructions
AttributeError: module 'dis' has no attribute 'get_instructions'

Python Documentation

https://ipython.readthedocs.io/en/stable/index.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugSomething isn't workingRFCRequest for comments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions