Quantcast
Channel: First steps - JuliaLang
Browsing all 2795 articles
Browse latest View live

Different plotly behavour across computers

I am using Plots with the plotly() backend for plotting a time vector against a vector containing 10 vectors using the following: plot(time_vect, dataMat, hover = time_vect, layout = (10,1)) This...

View Article


Question on Warning: `getindex(o::PyObject, s::AbstractString)` is deprecated...

I want to modify rcParams by rcParams = PyDict(matplotlib["rcParams"]) rcParams["text.usetex"] = true; rcParams["text.latex.preamble"] = raw"\usepackage{{amsmath}}"; but I get the getindex warning....

View Article


Slow compilation, i think, not sure how to debug

I have a very simple program, on the order of 50 lines, which uses CSV to read a 2 entry-per-line, 448 line CSV file. i have put @time on the using statements and they are normal (oh why oh why is...

View Article

Destructor for structs

Does Julia lang has something like a destructor or finalizer for structs? 2 posts - 2 participants Read full topic

View Article

ODEs inside a Turing model

I’m trying to write an HMM using Turing. The forward model from one time step to another is given by a system of differential equations. I wrote this up but I’m getting an error: MethodError: no...

View Article


Problems updating/installing packages due to anti-virus

I am using Kaspersky anti-virus on Windows 10 and I have been having some issues when I try to install or upgrade some packages in Julia. I am not totally sure about this but when I have problems I...

View Article

New Install but Macro @vectorize_1arg not found

Hi, I have just installed Julia but I have a script with @vectorize_1arg Macro that it says is not defined. But looking at the Julia documentation it should be in the base install. Do I need any other...

View Article

SMTPClient: Format mail body

Is there a way to format the content of an email in SMTPClient.jl with HTML tags or in another way? For example by using this example but with additional <b> tags body = IOBuffer( "Date: Fri, 18...

View Article


Makie.jl: Plotting contour with fillrange=true above lines

Hello, I am trying to learn how to use Makie and found myself in a situation where I would like to plot some lines and a contour plot with filllrange=true (or also a heatmap) on the same scene while...

View Article


Expected behaviour of println.(Array) (or @. println(Array) )

Hi. Just to clarify a silly doubt. What is the expected behavior of println.(x) where x is an Array? I was expecting that println would be executed to each position of x, but julia> x = rand(5)...

View Article

Having trouble figuring out which line the error is in

When I get an error message like this: MethodError: Cannot `convert` an object of type Float64 to an object of type Array{Float64,1} Closest candidates are: convert(::Type{Array{Float64,1}},...

View Article

Image may be NSFW.
Clik here to view.

Help converting pymc3 switchpoint analysis code to Turing.jl

Hey all, I’ve been trying to practice turing.jl and Julia as a whole and its been a great experience so far! I am having some trouble coming from pymc3 background, any help and direction is much...

View Article

Use and Documentation of -> and =>

Newbie here. -> and => are not in the punctuation list of the Julia documentation. Can they be added or are they not applicable for some reason? I have gathered that -> is used to define...

View Article


Writing complex-entried vectors to text files

How do I write a vector with Complex{Float64} type entries into a text file so that I may read it later ? writedlm() does not seem to work : t = rand(Complex{Float64}, 3); writedlm("t.txt", t, ""); t2...

View Article

Nlp package with lemmatizer

Would you suggest NLP package, which allows doing lemmortization. Thank you in advance. 1 post - 1 participant Read full topic

View Article


Image may be NSFW.
Clik here to view.

Looking for tips on parallelism for Differential Equations Problems

Hey, community! I am new in Julia and in multithreading/parallel computing. I am trying to clarify some things that I’ve read and to find the best way to solve my problem given my computational...

View Article

PyCall not properly installed

I am not able to use any package which has some connection with the PyCall package. I tried following the instructions in one of the cases (for using ScikitLearn package) and have given the output...

View Article


How do PyCall use already existed Python with installed packages

Would you suggest, How do PyCall use already existed Python with installed packages. thank you in advance. 3 posts - 3 participants Read full topic

View Article

Change the color of the text in console

Hello ! Is there a way to change the color of println() output text in console in windows? Thank you! 14 posts - 5 participants Read full topic

View Article

Partitioning a matrix in batches

Hi there, Let’s say I have a matrix of size 20x10. What is the best way to partition this matrix into batches of 20x2? In an ideal world I would like to have them structured as...

View Article
Browsing all 2795 articles
Browse latest View live


Latest Images