Error in adding Plots Pkg
Plots I have just started learning Julia. I am using Windows 10 I have a problem installing the Plots package. julia> Pkg.add(“Plots”) Updating registry at C:\Users\HP\.julia\registries\General...
View ArticleChanging DEPOT_PATH
Dear all, I need to change the folder .julia to another, after instalation (JuliaPro). The DEPOT_PATH is given by: julia> DEPOT_PATH 3-element Array{String,1}: "C:\\Users\\Usuário\\.julia"...
View ArticleDebugging Warning: Package Base does not have Parameters in its dependencies:
I am trying to make my own package with PkgTemplates and I get the following error julia> using InformationJobSearch [ Info: Precompiling InformationJobSearch [ae686e5f-2e63-48c8-ad06-f757a7909ed6]...
View ArticleHow to request for conda to support Julia install for Windows OS?
Hi, I noticed that we can use Anaconda to install Julia, but unfortunately it appears to be available only for Linux and Mac (OSX). How do we request for a Windows version to be made available? Or if...
View ArticlePuzzled by scope rules
When running function ten() j = 1 while j < 10 global j += 1 end end println(ten()) one gets ERROR: LoadError: UndefVarError: j not defined Which would be the correct way to define j? The block...
View ArticleWhat is the best way to override a function in different modules?
Hi, What is the best practice to make sure to avoid the following type of warnings? WARNING: both ABM_Sim and Production export "produce!"; uses of it in module Main must be qualified I have 2 modules...
View ArticleLaunching and managing a webserver
Hi all, I have developped an app in Julia that will served by a webserver made of HTTP.jl functions. I want to use it in a production environment. It means at least: to start it properly, keep it...
View ArticleFast and simple search for an object by field value, like in a database
Hello, I need a fast and simple search for an object by field value, like in a database. for example, search for an object with the maximum field value, search by object field value search object with...
View ArticleMake NLOpt ignore some candidates
Hey, I am using NLopt to minimize (gradient-free) a function f(\theta), where \theta is a vector of parameters. There is a non-trivial combination of these parameters for which f(\theta) is not...
View ArticleAccessing Matlab-function from Julia
Hello everyone, I recently started to work with Julia and need to evaluate some custom matlab-functions in my julia-scripts. Therefore, I added the package MATLAB.jl and updated the environment...
View ArticleParametric types help
This does work: abstract type AbstractBar end struct Foo{T <: Real,V <: AbstractBar} bar::Vector{V} t::Vector{T} end struct Bar <: AbstractBar b::Float64 end Foo{T}() where {T} =...
View ArticleAnyone used sockets to listen for python3 objects?
Hi all just coded up a simple python script that posts to a socket ,every 5 seconds, a message containing the following objects. integer unixdatetime float64 string 20 bytes float64 writing a listener...
View ArticleConverting CSV string values to floats (Python to Julia)
I am very new to Julia and I am struggling with the following. I have a python hdf5 file in Python full of data and I convert it to a Python bumpy DataFrame which I then save to a csv file. Then I...
View ArticleHow to avoid repeatedly calling include()?
Hello Julia Community , I’m developing my first Julia package at the moment. In the main module of this package, there are many functions that call functions from other modules. For example: module...
View ArticleFormat LightGraph
Hi! I am experimenting with LightGraph and GraphPlot packages. Below code is a MWE using LightGraphs using GraphPlot using Random label(n=12) = randstring(n) n = 5 m_adj = randn(n,n) .>= 0 g =...
View ArticleGeneric way to apply function to a dimension of a matrix
Hello! The mean function from statistics has the “dims” option, which lets me average a matrix into a vector by averaging the rows or columns. Is there a generic way to do this without for loops? Say...
View ArticleQuestion about square brackets with for and f.() calls
Hi there! Who can explain, how it works? A = [i + 3*j for i=0:2, j=1:3] f.(A) f.(A) 3 posts - 3 participants Read full topic
View ArticleWhat does it mean x=-3:0.1:3?
what does it mean x = -3:0.1:3 ? How it works? 6 posts - 3 participants Read full topic
View ArticleError running the ODE tutorial script
Hi Everyone, I’m trying to run the ODE tutorial (Ordinary Differential Equations · DifferentialEquations.jl), but the code fails to run. I’m using a mac with BigSur and using vscode as the editor. I...
View ArticleEnums with multiple non Integer values
I am looking to reproduce enumerated value type such as available in Java and Kotlin. The values are singletons and play nicely as keys in dictionaries. A text book (Java) example looks like this:...
View Article