Re: [julia-users] Pretty printing julia (or enscript?)

2015-10-02 Thread Jameson Nash
I think he might have been looking for syntax hightlighting, like http://pygments.org/docs/lexers/#lexers-for-the-julia-language? On Fri, Oct 2, 2015 at 2:24 PM Stefan Karpinski wrote: > The default printing of Julia ASTs is the best I'm aware of. Does it not > do the

Re: [julia-users] Pretty printing julia (or enscript?)

2015-10-02 Thread Stefan Karpinski
The default printing of Julia ASTs is the best I'm aware of. Does it not do the trick? On Fri, Oct 2, 2015 at 2:09 PM, Michael Turok wrote: > Anyone have a preferred pretty printer for julia source code - or any > enscript states file around? > > Michael > > >

[julia-users] Pretty Printing of Results

2014-09-23 Thread Donald Lacombe
Dear Julia Users, I have been coding various Bayesian spatial econometric models and have a question that is probably very basic but the solution eludes me. I'd like to be able to pretty print the output from the models akin to a standard regression package like so: Direct Effects Variable

[julia-users] Pretty-printing tensors

2014-04-30 Thread Iain Dunning
Hi all, I'm trying to write some pretty-print code for one of my packages. In particular, I want to print tensors, e.g. rand(3,3,3) Now the (exported) options seem to be print and dump For 2D: julia print(rand(3,3)) [0.9848410067397786 0.7395088321894974 0.08335407347392443 0.9908990998709222

[julia-users] pretty printing

2014-01-25 Thread Shoibal Chakravarty
Suppose I define a composite type T. type T xx::Int yy::Int end juliaT (xx,yy) I want to change what the repl prints when I do T[enter] on the command line. Which function should I change to to do this (the equivalent of T.__repr__() in Python). Thanks, Shoibal.

Re: [julia-users] pretty printing

2014-01-25 Thread John Myles White
You need to override Base.show(io::IO, foo:T) show()’s definition provides the basis for most other printing methods. — John On Jan 25, 2014, at 3:22 AM, Shoibal Chakravarty shoib...@gmail.com wrote: Suppose I define a composite type T. type T xx::Int yy::Int end juliaT