Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
52 views

The @info collapses the array and also tries to print it as column which makes no sense for logging. How to tell it to print full array? Without overriding the default printing/show functions globally ...
Alex Craft's user avatar
  • 15.8k
-2 votes
0 answers
59 views

I got this error for updating Julia to the latest version using Juliaup: PS C:\Users\Shayan> juliaup update Checking for new Julia versions Checking for new version on channel 'nightly' is taking a ...
Shayan's user avatar
  • 6,706
0 votes
0 answers
35 views

I'm trying to run the below code. using Catlab using Catlab.CategoricalAlgebra using Catlab.Theories using Catlab.Graphs using Catlab.Graphics @present SchGraph(FreeSchema) begin V::Ob E::Ob src::...
huck's user avatar
  • 1
2 votes
3 answers
117 views

I want to create an array that would accept any type (it fail): values = fill((; some=missing), 10) values[1] = (; some=1) without writing bloated code like this values = Vector{NamedTuple{(:some,),...
Alex Craft's user avatar
  • 15.8k
1 vote
1 answer
83 views

How to implement @parallel_map macro? results = @parallel_map for i in 1:10 i^2 end So that it won't use Any like code below (I assume it slow down code)? results = Vector{Any}(undef, 10) # ...
Alex Craft's user avatar
  • 15.8k
3 votes
1 answer
35 views

Julia 1.11.7 (Also tried in 1.10.1) on Linux. Plots v1.41.1 using Plots; gr() titles = hcat(["X "*string(x) for x in collect(15:-1:8)'], ["X "*string(x) for x in collect(0:7)']) ...
Jen-Feng Hsu's user avatar
0 votes
1 answer
55 views

How to implement text"Hi $(1+2)" # => Hi 3? If possible I would like to keep following structure: macro bind_doc() quote text(s::AbstractString) = println(s) macro text_str(...
Alex Craft's user avatar
  • 15.8k
3 votes
1 answer
114 views

I'm trying to write a parametric struct where one of the parameters is a Boolean value type, and where the type of a member should depend on the value of this Boolean. The struct should also inherit ...
MadScience's user avatar
0 votes
1 answer
45 views

I have a value-parametric struct struct T{p} ... end where p::Int is expected. For each concrete type T{p}, I want to maintain a global(!) constant with value f(p) for some function f. The point ...
Bubaya's user avatar
  • 893
2 votes
1 answer
91 views

I have a function that generates plots in Makie. I want to compute a bunch of these plots and turn it into a gif. The data for these plots is usually difficult to compute, so maybe at best I can ...
Mstislav Keldysh's user avatar
0 votes
0 answers
108 views

Right now I am running a model optimization to optimize one set of parameter for several sites (in total 47 sites, i.e. the cost function sum over these 47 results). Site computation is independent ...
Xu Shan's user avatar
  • 325
1 vote
1 answer
68 views

By default the run button (triangle) in VS Code runs as new process, not in REPL. This is only available in the drop down next to it. Is it possible to set running in REPL as default? Note: I am ...
Laurence_jj's user avatar
0 votes
0 answers
48 views

I am very new to Julia. I am working on a project written in Julia and I am using the following script: import Pkg Pkg.activate(@__DIR__) project_root = normpath(joinpath(@__DIR__, "..", &...
Raul Guarini Riva's user avatar
3 votes
2 answers
100 views

Is there global setting to round everything that's printed to the terminal in Julia to 4 decimal places? Any print - float, arrays, matrices, dataframes, structures - if it has float it should be ...
Alex Craft's user avatar
  • 15.8k
1 vote
1 answer
60 views

I do not understand how constructors interact with the type system at all in the following circumstance. struct Monomial{T<:Number} coeff::T exp::Int end struct Poly{T<:Number} exprs:...
learningjulia83's user avatar
2 votes
1 answer
54 views

I have some list of parameters and some complicated function that computes something based on these parameters. I then want to compute some list in the following way: params = [1,2,3] func(x) = x+1 ...
Mstislav Keldysh's user avatar
1 vote
1 answer
39 views

I want to make a heatmap of values that are compute over a triangular lattice. The issue is, that this seems to not display correctly. For example, the following code gives the following output: using ...
Mstislav Keldysh's user avatar
0 votes
0 answers
59 views

I am trying to follow a tutorial which requires the Lathe package. To install the package, I did: using Pkg Pkg.add("Lathe") This returns the error: Resolving package versions... ERROR: ...
Khara's user avatar
  • 3
1 vote
1 answer
53 views

On a multi-user Linux platform, you want to install a Julia environment once while it is being used by many users (possibly at the same time). One can create a central installation of a Julia ...
Bart Theelen's user avatar
0 votes
1 answer
149 views

I am on a standard Windows machine trying to set up a new Julia project, but I'm completely unable to install any packages. Every attempt to run Pkg.instantiate() fails with the exact same error, the ...
user2004820's user avatar
0 votes
0 answers
32 views

I upgraded Julia to version 1.10.9 but the Jupyter kernel to which the Julia extension is configured seems not to recognise this upgrade. How can I ensure that the Julia upgrade is also extended to ...
Smara Kazenango's user avatar
0 votes
0 answers
22 views

I want to delete multiple objects from S3 with AWS.jl. Looping over S3.delete_object() works fine, but is not that fast. using AWS @service S3 bucket = "my_bucket" keys = ["tmp/file1&...
fc9.30's user avatar
  • 2,611
0 votes
0 answers
43 views

I have tried a tutorial for ProfileView (https://github.com/timholy/ProfileView.jl): function profile_test(n) for i = 1:n A = randn(100,100,20) m = maximum(A) Am = ...
armando's user avatar
  • 1,508
0 votes
2 answers
104 views

Not sure whether this is intended behaviour, but it confuses me: When I do match(r"\d+", "10, 11, 12") I only get the first match, in this case m.match <- "10". m....
Hadamard's user avatar
0 votes
0 answers
125 views

I'm getting an error when running the julia set up command jl_home<-"C:/Users/[INSERT_USER_HERE]/AppData/Local/Programs/Julia-1.11.4/bin" julia_setup(jl_home) returns: Julia version 1.11....
Grant Ravary's user avatar

1
2 3 4 5
257