Skip to content
#

The Julia Language

julia logo

Julia is a high-level dynamic programming language designed to address the needs of high-performance numerical analysis and computational science. It provides a sophisticated compiler, distributed parallel execution, numerical accuracy, and an extensive mathematical function library.

Here are 2,081 public repositories matching this topic...

casperdcl
casperdcl commented Jul 16, 2019

perhaps it would be nice to provide an example where injected parameters are inside a dictionary or object:

# parameters
import argparse
args = argparse.Namespace()
args_dict = {}

args.a = 1
args_dict['b'] = 2
papermill ... -p args.a 1.618 -p "args_dict['b']" 3.14159

This would of course be useful for making transition between *.py scripts (using e.g

ChrisRackauckas
ChrisRackauckas commented Feb 2, 2020
using OrdinaryDiffEq, StaticArrays, BenchmarkTools, SimpleDiffEq
@inline function lorenz(u,p,t)
    SA[10.0(u[2]-u[1]),u[1]*(28.0-u[3]) - u[2],u[1]*u[2] - (8/3)*u[3]]
end
u0 = SA[1.0;0.0;0.0]
tspan = (0.0,1000.0)
prob = ODEProblem(lorenz,u0,tspan)
@btime sol = solve(prob,Tsit5())
@btime sol = solve(prob,Tsit5(),progress=true)
@btime sol = solve(prob,Tsit5(),progress=true,progres
JuMP.jl
jverzani
jverzani commented Jan 5, 2020

After upgrading sympy to 1.5.1, I've noticed an error in sympy's Matrix constructor:

julia> using PyCall  #  [438e738f] PyCall v1.91.2
julia> sympy = PyCall.pyimport_conda("sympy", "sympy")
julia> sympy.__version__ # "1.5.1"
julia> sympy.Matrix([[1,1],[2,2]])
ERROR: PyError ($(Expr(:escape, :(ccall(#= /Users/verzani/.julia/packages/PyCall/ttONZ/src/pyfncall.jl:44 =# @pysym(:PyObject_
tlienart
tlienart commented Oct 21, 2019

In learning_curve! (but not only there) you can specify a measure which, by default, is set to rms; however if you leave it to default and try to do this on a classifier you'll get an error.

It would be easy to change so that it takes a reasonable default measure for the type of model something like

function learning_curve!(mach::Machine{<:Supervised};
                      
goretkin
goretkin commented Nov 12, 2019
julia> (@cxx fabs(2.0);)
2.0

julia> (@cxx fabs(2.0);) == 2.0
true

julia> @cxx fabs(2.0) == 2.0;
ERROR: UndefVarError: fabs not defined
Stacktrace:
 [1] top-level scope at REPL[10]:1

julia> @cxx (fabs(2.0) == 2.0;)
ERROR: LoadError: Unrecognized CPP Expression begin
    fabs(2.0) == 2.0
end (block)
Stacktrace:
 [1] error(::String, ::Expr, ::String, ::Symbol, ::String) at ./e
asinghvi17
asinghvi17 commented Jun 25, 2019

Plots.jl has a lot of small, easy-to-implement convenience functions and recipes that would be nice to have in AbstractPlotting, or StatsMakie.

  • stephist:
    stephist(x)
    stephist(x)

Make a histogram step plot (bin counts are represented using horizontal lines
instead of bars). See `histogram`. 
  • scatterhist:
    scatterhist(x)
    scatt
fredcallaway
fredcallaway commented Feb 2, 2020

fit_mle(Beta, rand(10)) gives ERROR: suffstats is not implemented for (Beta, Array{Float64,1}).

I checked the source code and found there is a fit function implemented, but it doesn't take weights.

The docs explicitly say that fit_mle has been implemented for Beta.

rafaqz
rafaqz commented Oct 26, 2017

Julia makes it really easy to run string macro code blocks for at least R and Matlab. But in vim they are highlighted in all green! It's an impediment to using other languages freely.

Vim markdown has code block highlighting (with g:markdown_fenced_languages etc), could something like that be possible for julia? It may be as easy as copying the markdown highlighting code and changing the regex

yuri-la-torre-ortiz
yuri-la-torre-ortiz commented Mar 2, 2019

Hi there. It's my first day coding & I really appreciate this resource and I find it more or less easy to follow. However, I would recommend either providing a link to a glossary or simply having a glossary available for absolute beginners to explain terminology such as those referring to the various data types & examples given. Just to make the language a bit more accessible.

I'm enjoying

jessebett
jessebett commented Oct 7, 2019

The following snippets included in a test.jmd with the build command. Note I'm using """ to indicate code blocks as Github intercepts the markdown.

weave(papersdir("test.jmd"), 
  out_path=:doc,
  doctype = "md2pdf"
  )

demonstrate the various ways Figures are not working.

"""julia
using Plots

plot(1:10)
"""

This works, as expected. The plot takes up

bug

Created by Jeff Bezanson, Stefan Karpinski, Viral B. Shah, Alan Edelman

Released February 14, 2012

Organization
JuliaLang
Website
julialang.org
Wikipedia
Wikipedia

Related Topics

language
You can’t perform that action at this time.