[julia-users] @printf() format string question

2014-02-02 Thread Alexander Samoilov
Hello, I have a format string - a %Fmt literal for @printf() and it is too large, so would like to concatenate it from chunks, say using string(chunk 1 , chunk 2 , chunk 3 ) @printf() disallow to do it as requires a string literal, but string() is a function and the produced string variable

[julia-users] Error when opening notebook in IJulia

2014-02-02 Thread Johan Sigfrids
When opening any notebook in IJulia it gives me this error: 2014-02-02 16:59:00.164 [tornado.application] ERROR | Uncaught exception POST /kernels?notebook=50aba0e4-fde1-4196-96ff- 8a8b3550f5b0 (127.0.0.1) HTTPRequest(protocol='http', host='127.0.0.1:8998', method='POST', uri=

Re: [julia-users] evaluate function on DataFrame row

2014-02-02 Thread Joosep Pata
Thanks everyone. The isna(DataArray, Integer) method will certainly be useful. On 02 Feb 2014, at 01:19, John Myles White johnmyleswh...@gmail.com wrote: Hi Joosep, The current way to get the best performance for your example is going to look something like the following code: a, b, c =

Re: [julia-users] Re: How to write a macro that can substitute variable values into an expression

2014-02-02 Thread Johan Sigfrids
Can't you just do this with apply? Something like this: f = (x, y, z) - x + y + z^2 let x=3, y=4, z=5 apply(f, x, y, z) end On Sunday, February 2, 2014 5:47:36 PM UTC+2, Walking Sparrow wrote: Let me clarify a little bit. My question is actually the following: In R, one can do something

[julia-users] printing from IJulia notebook

2014-02-02 Thread j verzani
Is there an easy way to print an IJulia notebook? I'm using julia in a lab setting and am providing notebooks for students to fill out and turn in. I'd prefer they print them. Unfortunately, I don't see a print menu item and the browser's print feature only prints the visible parts of the page.

Re: [julia-users] printing from IJulia notebook

2014-02-02 Thread John Myles White
Is asking them to print PDF’s using the notebook export tools too onerous? — John On Feb 2, 2014, at 8:33 AM, j verzani jverz...@gmail.com wrote: Is there an easy way to print an IJulia notebook? I'm using julia in a lab setting and am providing notebooks for students to fill out and turn

Re: [julia-users] Re: How to write a macro that can substitute variable values into an expression

2014-02-02 Thread Walking Sparrow
I guess apply and let can do some work here. But I do not know the variable names and number that the user would use. So now I need a macro that can construct the let-apply block with the variable number undetermined. The macro should be able to accept any number of variables. Suppose that

Re: [julia-users] printing from IJulia notebook

2014-02-02 Thread j verzani
Maybe I'm being dumb, but I can't find that export to pdf feature, just to .py and .ipynb under File Download as... On Sunday, February 2, 2014 11:34:16 AM UTC-5, John Myles White wrote: Is asking them to print PDF’s using the notebook export tools too onerous? — John On Feb 2, 2014,

[julia-users] Pkg.add(Homebrew) fails on OSX

2014-02-02 Thread Alex
Hi, I just tried to install Homebrew via Pkg in a fresh build of julia (also wiped .julia), but got the following error: _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ |

Re: [julia-users] printing from IJulia notebook

2014-02-02 Thread Keno Fischer
Apparently on ipython master, printing directly from the browser should work: https://github.com/ipython/ipython/issues/4196 On Sun, Feb 2, 2014 at 1:24 PM, j verzani jverz...@gmail.com wrote: Thanks. I was worried about that. I guess this means I need pandoc and latex installed on the

Re: [julia-users] Pkg.add(Homebrew) fails on OSX

2014-02-02 Thread Elliot Saba
What version of git do you have installed? On Feb 2, 2014 10:29 AM, Alex alexc...@googlemail.com wrote: Hi, I just tried to install Homebrew via Pkg in a fresh build of julia (also wiped .julia), but got the following error: _ _ _ _(_)_ | A fresh approach to

Re: [julia-users] Pkg.add(Homebrew) fails on OSX

2014-02-02 Thread Alex
Hi Elliot, I have git version 1.7.9.6 (Apple Git-31.1) but everything used to work a couple of weeks ago ...

Re: [julia-users] Just installed Julia, some questions about parallelizing it

2014-02-02 Thread Jeff Pickhardt
Oh! That makes sense. I should've definitely parallelized the compilation then. It took a while. On Sunday, February 2, 2014 7:31:14 PM UTC-8, John Myles White wrote: You shouldn't need to recompile julia to use parallel processing tools. Every time you load the Julia REPL you can control

Re: [julia-users] @printf() format string question

2014-02-02 Thread Jake Bolewski
I don't think you can do this as a macro, you want to use a function instead wrapping multiple @printf's as you stated. the behavior you are asking for is to partially evaluate the string function at compile time (hack) macro myprintf(args...) if length(args) == 0 error(@myprintf:

[julia-users] Re: Julia version manager?

2014-02-02 Thread Jake Bolewski
No but there is work in this direction. Pkg just started using versioned directories to support multiple julia releases. On Sunday, February 2, 2014 10:32:26 PM UTC-5, Jeff Pickhardt wrote: Is there an equivalent to rvm (Ruby Version Manager) for having multiple versions of Julia installed

Re: [julia-users] Julia version manager?

2014-02-02 Thread Isaiah Norton
You should be able to use the JULIA_PKGDIR and a wrapper script to do this. On Sun, Feb 2, 2014 at 10:32 PM, Jeff Pickhardt pickha...@gmail.com wrote: Is there an equivalent to rvm (Ruby Version Manager) for having multiple versions of Julia installed at the same time?

[julia-users] Re: Error when opening notebook in IJulia

2014-02-02 Thread Steven G. Johnson
This looks like an error on the IPython side, not in in Julia. If you just run ipython notebook to open a Python notebook (not IJulia), does it work? (Be aware that running a firewall on your machine may break the IPython notebook. e.g. for the Sophos

Re: [julia-users] base64 decode

2014-02-02 Thread Steven G. Johnson
On Sunday, February 2, 2014 4:01:47 AM UTC-5, John Travers wrote: Yes, that solves my problem., thanks! But it might be nice to have the symmetric functions (i.e. decode as well as encode) in base. Definitely; I think this was always the intention, but it didn't get implemented at the time