ptipython is not working with ipython 5.0.0
See original GitHub issueCan you please help me with this. ptipython is not working with ipython 5.0.0
(py2_kernel)~/py2_kernel ❯❯❯ ptipython
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/Vikash/py2_kernel/bin/ptipython in <module>()
9 if __name__ == '__main__':
10 sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
---> 11 sys.exit(run())
/Users/Vikash/py2_kernel/lib/python2.7/site-packages/ptpython/entry_points/run_ptipython.pyc in run()
89 configure=configure,
90 user_ns=user_ns,
---> 91 title='IPython REPL (ptipython)')
92
93
/Users/Vikash/py2_kernel/lib/python2.7/site-packages/ptpython/ipython.pyc in embed(**kwargs)
252 config.InteractiveShellEmbed = config.TerminalInteractiveShell
253 kwargs['config'] = config
--> 254 shell = InteractiveShellEmbed.instance(**kwargs)
255 initialize_extensions(shell, config['InteractiveShellApp']['extensions'])
256 shell(header=header, stack_depth=2, compile_flags=compile_flags)
/Users/Vikash/py2_kernel/lib/python2.7/site-packages/traitlets/config/configurable.pyc in instance(cls, *args, **kwargs)
410 # Create and save the instance
411 if cls._instance is None:
--> 412 inst = cls(*args, **kwargs)
413 # Now make sure that the instance will also be returned by
414 # parent classes' _instance attribute.
/Users/Vikash/py2_kernel/lib/python2.7/site-packages/ptpython/ipython.pyc in __init__(self, *a, **kw)
194 self,
195 get_globals=get_globals, vi_mode=vi_mode,
--> 196 history_filename=history_filename)
197
198 if title:
/Users/Vikash/py2_kernel/lib/python2.7/site-packages/ptpython/ipython.pyc in __init__(self, ipython_shell, *a, **kw)
168 self.ipython_shell = ipython_shell
169
--> 170 self.all_prompt_styles['ipython'] = IPythonPrompt(ipython_shell.prompt_manager)
171 self.prompt_style = 'ipython'
172
AttributeError: 'InteractiveShellEmbed' object has no attribute 'prompt_manager'
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
ipython 5.0b on win7 breaks ptipython · Issue #9548 - GitHub
Since IPython 5 uses prompt_toolkit, it may make sense to retire ptipython. All reactions.
Read more >Getting errors when installing iPython 5.0 for python 2.7 on ...
Previously I have installed other packages such as numpy using pip command and it worked fine. Any help is appreciated. Thanks in advance!...
Read more >Installing IPython
This page contains simplified installation instructions that should work for most users. Our official documentation contains more detailed instructions for ...
Read more >5.x Series — IPython 8.7.0 documentation
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than ...
Read more >How to use the ptpython.ipython.embed function in ... - Snyk
if not no_ptipython: # Try PtIPython try: from ptpython.ipython import embed history_filename = os.path.expanduser('~/.ptpython_history') embed(banner1=self.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll release a new ptpython in the next few days, with IPython 5 support.
Could ptpython provide a cooperation way with vim? For example, the console running ptpython would spite in two and one is vim window and the other is repl. we can code in vim , then select some sentences for running in repl? @jonathanslenders and now my env looks like below