<good news everyone.jpg>
~/.julia_history2 unless Mike changed it. The format is different.
Would it be difficult to hack it, such that if some text is already at the prompt, the UP and DOWN arrows would only recall entries from the history, which start with that text? It really speeds up things.
- The new REPL, is pretty clean, simple Julia code. Seriously – terminal support, line editing, and the REPL itself are less than 2000 lines of code – total. This works out to a net code reduction of 33233 lines of code (GNU readline is 34640 lines of C), while gaining functionality. That has to be a project record.
- The new code is infinitely easier to modify, fix and improve, so REPL-replated bugs will probably get fixed lickety split going forward.
ismaelvc@toybox ~ % ipythonPython 3.4.0 (default, Mar 17 2014, 22:57:51) Type "copyright", "credits" or "license" for more information.
IPython 1.2.1 -- An enhanced Interactive Python.? -> Introduction and overview of IPython's features.%quickref -> Quick reference.help -> Python's own help system.object? -> Details about 'object', use 'object??' for extra details.
In [1]: test = 'hello'
In [2]: !echo $testhello
In [3]: files = !ls
In [4]: filesOut[4]: ['003_overview.pdf', 'Algebra_Lineal.ipynb', 'Apuntes_TESCI', 'ArduinoSketches', 'bash_script.sh', 'Books', 'circular_tree.png', 'Contabilidad_140314.ipynb', 'Devel', 'Downloads', 'Dropbox', 'ejemplos.py', 'example1_graph.png', 'example2_graph.png', 'fizzbuzz.jl', 'hola.py', 'HORARIO_2.png', 'imageDownloader', 'julia', 'julia_hola.jl', 'Junk', 'learn_julia.ipynb', 'mail_dual', 'Music', 'networkx_example.py', 'nothing', 'Pictures', 'Probabilidad_Estadistica.ipynb', 'problem_1.py', 'Proyecto_Euler', '__pycache__', 'pydot_example_directed.py', 'pydot_example.py', 'pyramid.py', 'python2_test.py', 'python_hola.py', 'python_segfault', 'qt-recordMyDesktop-crash.log', 'Roms', 'sketchbook', 'suma_modulo.py', 'TESCI', 'testing_julia.ipynb', 'test.py', 'Untitled0.ipynb', 'VirtualBox VMs']
In [5]:Do you really want to exit ([y]/n)?ismaelvc@toybox ~ % julia _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "help()" to list help topics | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.3.0-prerelease+2282 (2014-03-31 04:34 UTC) _/ |\__'_|_|_|\__'_| | Commit 1651a97 (1 day old master)|__/ | i686-pc-linux-gnu
julia> test = "helo""helo"
shell> echo $testhelo
julia> files = ;lsERROR: syntax: unexpected ;It would be nice if one could switch to the "shell" prompt but leaving it there after the command ends instead of returning to the "julia" prompt, in order to type an arbitrary number of short commands, for example using doulbe ";;" or whatever:
Also having colors by default is nice, but I'm wondering if those can also e aplied to the backtraces, like in ipython:
# PYTHON (no colors but "descriptive")
>>> "test" / 0Traceback (most recent call last): File "<stdin>", line 1, in <module>TypeError: unsupported operand type(s) for /: 'str' and 'int'
# IPYTHON (uses colors and is descriptive)
In [1]: "test" / 0---------------------------------------------------------------------------TypeError Traceback (most recent call last)<ipython-input-1-24bdacdad2fc> in <module>()----> 1 "test" / 0
TypeError: unsupported operand type(s) for /: 'str' and 'int'
# JULIA (uses only red, not descriptive)
julia> "test" / 0ERROR: no method /(ASCIIString, Int32)
also is there a command togenerate the Julia logo headerthat is served at the start ofevery REPL launch.
Base.banner() for example, suppose the user wasinterested in changing the colorschemes in the REPL so thatthe "julia>" prompt was sayyellow instead of the green fromthe three dots logo, and userentry was in the same purplefrom the three dots logo, etc.
On Thursday, October 30, 2014 12:46:55 PM UTC-4, cdm wrote:for example, suppose the user wasinterested in changing the colorschemes in the REPL so thatthe "julia>" prompt was sayyellow instead of the green fromthe three dots logo, and userentry was in the same purplefrom the three dots logo, etc.I don't think this is easily customizable right now; it doesn't seem to be documented at all.
why is everything so easyin Julia ... ?
On Aug 21, 2014, at 11:57 AM, Rob J. Goedman <goe...@icloud.com> wrote:Just wondering, I used to change the color of the help prompt by editing REPL.jl and re-making julia.With the release of 0.3 I'm trying to stick to the official version.Is there a way to change these colors (:yellow for help conflicts with my background color), maybe when starting Julia REPL?Thanks,Rob J. Goedman
LoL. That's flattering. There are certainly other languages that like to make things easy, we just follow in that tradition as much as possible.