[julia-users] Where can I put code that will be run every time "using Module" is executed, and not just the first time?

2016-11-02 Thread Scott Lundberg
In Jupyter it is convenient to dump JS library code to the notebook when "using Module" is run. This is simple to do in the Module's __init__(), and saves a ton of memory since later visualizations can share this common JS library code. However, if a user re-executes the cell, the library code

Re: [julia-users] Re: How to specify a template argument as a super type

2016-04-02 Thread Scott Lundberg
pe that Julia introduces for every > parameterized type; `Name1` is different from `Name1{S}`). > > Since Julia uses single inheritance, you also need to have either > `Name1 <: S` or `S <: Name1`. Both would be strange, since they would > introduce a relation between `N

Re: [julia-users] Re: How to specify a template argument as a super type

2016-04-02 Thread Scott Lundberg
stract, what is the purpose of the type parameter? In other > words, > > what is the ultimate goal you're reaching for? > > > > //T > > > > On Saturday, April 2, 2016 at 3:17:34 AM UTC+2, Scott Lundberg wrote: > >> > >> You can define: &

[julia-users] How to specify a template argument as a super type

2016-04-01 Thread Scott Lundberg
You can define: abstract Name1{S <: Name2} <: Name3{S} but I want to define: abstract Name1{S <: Name2} <: S However the second line does not work. Is there some other way to accomplish the same thing? Thanks!

[julia-users] Line continuation in 2D matrix notation

2015-12-08 Thread Scott Lundberg
I am trying to define a 2D matrix using the literal notation: m = [a b; c d] ...but where the elements can be long function calls for example: m = [ my_long_function_call(with, many, arguments, even="optional", ones=true) my_long_function_call(with, many, arguments, even="optional", o