Syntax highlighting, auto complete and more within Python interpreter
21–30 of 33 posts
Re: Syntax highlighting, auto complete and more within Python interpreter
#22Re: Syntax highlighting, auto complete and more within Python interpreter
#23Is there anything comparable for Ruby? I've looked for a nicer irb in the past, but found nothing. Might be a good weekend project.
require 'irb/completion'
to your ~/.irbrc. If you want auto-indentation: IRB.conf[:AUTO_INDENT] = true
If you're a Vim user, you can edit code inside of a Vim buffer with the interactive_editor gem: http://vimcasts.org/episodes/running-vim-within-irb/
or for a more SLIMEy experience, you can try ScreenShell, which allows you to send code from Vim in one GNU Screen window to another running irb, or the interpreter of your choice. http://news.ycombinator.com/item?id=1098876
If you just want to stick to improving the irb experience, the Pickaxe book has a good section on customizing irb: http://ruby-doc.org/docs/ProgrammingRuby/html/irb.htmlRe: Syntax highlighting, auto complete and more within Python interpreter
#24Did I miss something? How do I start this thing? Couldn't find it on Documentation..
yum install bpython
Re: Syntax highlighting, auto complete and more within Python interpreter
#25Re: Syntax highlighting, auto complete and more within Python interpreter
#26My addiction to syntax highlighting can now be satisfied without having to fire up Vim or gedit to edit a script. Maybe if I think hard enough about posting an Ask HN for a syntax highlighting bash command prompt, someone will write one of those, too ;).
Re: Syntax highlighting, auto complete and more within Python interpreter
#27Is there anything comparable for Ruby? I've looked for a nicer irb in the past, but found nothing. Might be a good weekend project.
Re: Syntax highlighting, auto complete and more within Python interpreter
#28Also check out DreamPie [ http://dreampie.sourceforge.net/ ], which is damn good, and has a comparable feature list.
I recently started using IPython, also with a comparable feature list: http://ipython.scipy.org/moin/ Does anyone know off the top of their head which of these is the most active?
I know a number of people using ipython, but I've never heard of the others before today. Ipython is widely used by the scipy crowd, at the very least.
Re: Syntax highlighting, auto complete and more within Python interpreter
#29Is there anything comparable for Ruby? I've looked for a nicer irb in the past, but found nothing. Might be a good weekend project.
* wirble: for syntax highlightning
* bond: for more advanced autocompletion
* utilitybelt: for pastebin-like commands
* sketches: for editing and evaluating code easily
* boson: command framework for creating libraries of commands to be loaded as needed
* hirb: framework for associating views per classRe: Syntax highlighting, auto complete and more within Python interpreter
#30Traceback (most recent call last): File "/usr/local/bin/bpython", line 8, in load_entry_point('bpython==0.9.7', 'console_scripts', 'bpython')() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1739, in main banner=banner) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1636, in curses_wrapper return func(stdscr, args, *kwargs) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1706, in main_curses clirepl.repl() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 996, in repl inp = self.get_line() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 589, in get_line key = self.get_key() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 567, in get_key self.idle(self) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1579, in idle do_resize(caller) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1591, in do_resize curses.endwin() _curses.error: endwin() returned ERR