What's the easiest way to set up multi-node distributed computing with Julia?
I was thinking, is it easier to just buy another Raspberry pi, install Julia and then try to set up SSH into it? Or is it just to spinning a few EC2 instances and do it from there? Does anyone have...
View ArticleRunning Documenter after PkgTemplates, what to put for "sitename"
I attempted to use PkgTemplates to create a package, running the following: t = Template(; dir="~/code", plugins=[ Git(; manifest=true, ssh=true), Codecov(), TravisCI(; x86=true),...
View ArticleComplete End-to-end guide for professional Julia development guide
I find that it’s actually hard to find info on how to do professional Julia development from end to end. By that I mean How to set up a Julia repo on Github/Gitlab (use PkgTemplates.jl) What to...
View ArticleThe Pkg REPL-mode [opts]
Where the list of command options and their documentation for Package Mode or Package Management could be found cmd [opts] [args] For example: st -m Plots GR where I could read about the option: -m 5...
View ArticleIs it recommend to close TCPSocket after use?
I’m using a TCPSocket but connect in a inner block e.g.: tcp = TCPSocket() # 1 if condition tcp = connect(1234) end ... I know that in C# one has to close and dispose streams and stuff. Is the same...
View ArticleThree dots `...`
At various points in my exploration of Julia code, I find ... being used. For example, in help for symbol ?Symbol Symbol(x...) -> Symbol And, currently, I’m using the following code that includes...
View ArticleTesting performance of functions that are 'parametric over input collections'
I have the following MWE for two methods: addUnits1 is parametric in the type of an input vector, while addUnits2 gives the parameters of the individual elements of the input vector. struct...
View ArticleBasic setup of HTTP server with MbedTLS
Could anyone please point me to an example where HTTP.jl and MbedTLS.jl are used to create a server with an https connection? Currently I’m trying to merge the docs of the two packages like this:...
View ArticleError when loading Queryverse: ParquetFiles [46a..27f] is required but does...
I am trying to load Qeuryverse, but facing this issue. Here is the error: using Queryverse ┌ Info: Precompiling Queryverse [612083be-0b0f-5412-89c1-4e7c75506a58] └ @ Base loading.jl:1278 ERROR:...
View ArticleNo method matching `save` error upon calling `load` for a .png file `using...
The following code using Images Img = load("Img.png") produces the following error ERROR: MethodError: no method matching save(::Base64.Base64EncodePipe, ::Array{RGBA{Float32},2},...
View ArticleCannot install Zygote to Julia 1.5.0
Hi all. I have installed Julia on my new device, also switching from 1.4.1 to 1.5.0. However, now I am having troubles installing Zygote. So, for whatever reason it is not detecting any available...
View Article`vscodedisplay` no longer works after including DataFrame into image
This is really easy to replicate using PackageCompiler create_sysimage(:DataFrames, replace_default=true) `` then restart Julia in VSCode using DataFrames a = DataFrame(a=1:3) vscodedisplay(a) Then...
View Article"and", "or", bitwise or shortcircuit, what we get searching docs
I am teaching some programming using Julia, and I faced a common student mistake which I think is justified from what we get when searching the docs. If we search “and or Julia” on google, we get,...
View ArticleSet struct's parameters using a function whose first argument is for the struct
Hi, I’m trying to reuse a function to set parameters of a struct. For example, I have a function whose the first argument should have type MyStruct: function set_parameter(mystruct::MyStruct)...
View ArticleIterating over types of tuple elements in @generated function
I am writing a generated function and want to iterate over the types of the inputs to generate some splendid code. This works @generated function foo(t...) for c ∈ t Core.println(c) end return :(...
View ArticleWhy these two ways of function definition lead to different optimization...
I define the same objective function in two ways: function logit1(α, X, y) loglike = -sum(y[i]*α'*X[i,:] .- log.(1 .+ exp.(α'*X[i,:])) for i=1:length(y)) return loglike end function logit2(α, X, y)...
View ArticleMutating array in gradients?
I’m a Julia newbie trying to switch over from Python! I’m trying to implement a bayes neural net. for some practice. When trying to track gradients in my model I’m getting the following error:...
View ArticleConvert a percentage string (e.g. "99.8%") to Float64 when extracting data...
Hi, Does anyone know if there is a possible way to convert a percentage from a string to a Float64 when extracting data from a CSV. Or is the only way to convert the data to decimal format in excel...
View ArticleHow to view kwargs
When using a package such as PlotlyJS.jl, ( Such as I am). How does one find all kwargs available for a particular function. PoltyJS does not document what they are. They do show you how to use them...
View ArticleRegistry Issue- Haven't been able to resolve
I have been trying to install a package in IJulia, but I get the following error: Using Pkg Pkg.add(“CVS”) Installing known registries into ~/.julia...
View Article