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

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 Article


Changing 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 Article


Debugging 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Puzzled 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 Article


What 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 Article

Launching 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 Article

Fast 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 Article


Make 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 Article


Accessing 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 Article

Parametric 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 Article

Anyone 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 Article

Converting 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Format 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 Article


Generic 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 Article

Question 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 Article


What 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 Article

Error 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 Article

Enums 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
Browsing all 2795 articles
Browse latest View live