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

Show Layered.jl canvas as a new window

Hi, I know you can save the Canvas as a PNG/SVG/PDF in Layered.jl, but how would I display it in a new window. I know this is possible with Cairo (which is what Layered.jl is based on) and a Gtk...

View Article


Counterexamples to the interpretation `

Continuing the discussion from A precise definition of what it means to be an instance of an abstract type: The following appears to contradict the claim <: means “is a subtype of” that appears in...

View Article


SLURM: Julia scripts do not exit or produce any output

Dear Julia community, After successfully experimenting with Julia on my local machine, I am trying to get it to work on a cluster running SLURM. After submitting a batch script (see below for an...

View Article

Index data from DelimitedFiles by name

I know there is CSV.jl, but I am wondering what the easiest way to access the data by their column names would be if I just use DelimitedFiles.jl. My first approach would look like this, but maybe...

View Article

Derivative for a set of ... points

Dear all, I am successfully playing with sol = solve(ensembleprob,SRIW1(),EnsembleThreads(),trajectories=ϕ,saveat=δt); which generates a nice set of values. Among those values sol[1,:,:]; is a...

View Article


Advice / options for filtering output of long-running search procedure

I have an exhaustive search procedure that runs for a long time and will generate multiple positive instances. I would like to filter its output and finally print the results. Inspired by the...

View Article

ERROR: expected the file `src/*` to exist for package `**` at `/tmp/**`

I tried to add my own package from github repo and locally. I get the following error: ERROR: expected the file `src/Package.jl` to exist for package `Package.jl` at `/tmp/jl_UTO0yG` I tried following...

View Article

Error message in array indexing

Hi! I’m on Julia 1.5.3 The last expression is the result of a typing error that I made. The previous expression is something I was aiming to type. Probably this is something that I should know but...

View Article


How do I fix incremental compilation warning?

How do I fix the following incremental compilation issue (or is it OK)? WARNING: Method definition latex(IO, Markdown.LaTeX) in module Markdown at ...v1.5/Markdown/src/IPython/IPython.jl:28...

View Article


Converting CSV to Parquet in Julia

Hi. I have a simple dataframe that I want to convert to parquet. This is my attempt: begin df = CSV.read("/home/onur/julia-assignment/temp.csv", DataFrame) prq = Parquet.File(df) end But this is the...

View Article

Show the full error stacktrace in REPL and pipe it to a file?

Once an error occurs and the REPL shows the error and the stacktrace, is there a good way to record it and pipe/record it to a file just from the REPL? julia> myFunction() ERROR: Error in module....

View Article

Pkg.TOML.ParserError

Hi, I’ve been using Julia without issue for 6+ months. A few weeks ago I turned my computer in for a SSD upgrade, resulting in a fresh install of Win10 (and therefore Julia). I am now seeing...

View Article

Want to generate samples with all items being sampled the same number of times?

Is there any library that can help me generate random “batches” of data such that every item appears in the same number of batches (with the exception that some items may appear one more time than...

View Article


Is "import" required for user-defined modules?

When using modules, is “import” or “using” needed? The reason I ask is that in the following toy example, according to my reading of the documentation, an “import” (or “using”) statement is required....

View Article

Union{Some{T}, Nothing} behaviour

I cannot figure out how to obtain a non-nothing output from the following code. julia> struct B a::Union{Some{T}, Nothing} where {T<:Integer} end julia> b = B(nothing) B(nothing) julia> b...

View Article


How to get local variables into SharedArray constructors?

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

How to use a function to retrieve a single row of data from Parquet

Hi. I have a dataframe like this: data1336×710 41.1 KB I want to be able to get the numerical data for a single row, say, “Algeria”. This is the function that I wrote for that. function...

View Article


How to debug "Local instance of remote reference not found"?

I tried to make a self-contained MWE but can’t replicate the error. For some reason it doesn’t like the @sync: @sync @distributed for d in 1:ndocs...

View Article

Image may be NSFW.
Clik here to view.

VS Code: Julia Env different in status bar and REPL

As title already says, why does VC Code show two different activatated envs? I want to work in Oceananigans instead of in v1.5 but the REPL doesnt change. 11 posts - 2 participants Read full topic

View Article

Twinx shows left yticks on right y axis

I am struggling to generate a plot with two y-axes. The left y-ticks show up on the right y-axis. Also, I am uisng rightmargin = 1.5Plots.cm, box = :on because the label margins are broken. using...

View Article
Browsing all 2795 articles
Browse latest View live