# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1850

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1851

---

## [Some beginners questions](https://discourse.julialang.org/t/some-beginners-questions/32982)

<div class="topic-metadata">

**Author:** [@flip101](https://discourse.julialang.org/u/flip101)\
**Replies:** 14\
**Last updated:** [January 6, 2020, 5:05pm UTC](https://discourse.julialang.org/t/some-beginners-questions/32982 "2020-01-06T17:05:23Z")

</div>

Hello i’m new to Julia. I have a couple of questions. Is there a command to start a new project like cargo init (rust). So that it generates some files (Project.toml maybe?). If there is no such command maybe there is…

---

## [Optimization problem](https://discourse.julialang.org/t/optimization-problem/33026)

<div class="topic-metadata">

**Author:** [@Caterina\_Cerutti](https://discourse.julialang.org/u/Caterina_Cerutti)\
**Replies:** 1\
**Last updated:** [January 6, 2020, 4:34pm UTC](https://discourse.julialang.org/t/optimization-problem/33026 "2020-01-06T16:34:10Z")

</div>

EXERCISE: A municipalized company must purchase rubbish bins in an area of the city. There are n types of bins on the market, each characterized by a ci cost and a Ki capacity (i = 1, …, n). M collection points have bee…

---

## [Patrick Winston's advice for speakers (YouTube video)](https://discourse.julialang.org/t/patrick-winstons-advice-for-speakers-youtube-video/33029)

<div class="topic-metadata">

**Author:** [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Replies:** 1\
**Last updated:** [January 6, 2020, 3:59pm UTC](https://discourse.julialang.org/t/patrick-winstons-advice-for-speakers-youtube-video/33029 "2020-01-06T15:59:22Z")

</div>

I enjoyed this talk by Patrick Winston of MIT on how to give a presentation: Plenty of tips and things to do - and not do - when giving a talk.

---

## [What distributed linear algebra algorithm will be a good contribute?](https://discourse.julialang.org/t/what-distributed-linear-algebra-algorithm-will-be-a-good-contribute/33020)

<div class="topic-metadata">

**Author:** [@Ali\_Mamdouh](https://discourse.julialang.org/u/Ali_Mamdouh)\
**Replies:** 7\
**Last updated:** [January 6, 2020, 2:38pm UTC](https://discourse.julialang.org/t/what-distributed-linear-algebra-algorithm-will-be-a-good-contribute/33020 "2020-01-06T14:38:57Z")

</div>

i am cs student who is willing to participate in gsoc with julia , i think distributed linear algebra routines will make a good gsoc project , and i think there is a lot of work we can do , so i decided to start from …

---

## [Julia Logo: Commercial Font](https://discourse.julialang.org/t/julia-logo-commercial-font/26418)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 9\
**Last updated:** [January 6, 2020, 1:17pm UTC](https://discourse.julialang.org/t/julia-logo-commercial-font/26418 "2020-01-06T13:17:44Z")

</div>

It’s a pity that the font in Julia’s logo, MN Latin, is commercial. Apparently it comes bundled with MacOS but as a Windows user that doesn’t help much. I did find Tamil MN in the https://github.com/JuliaLang/julia-logo…

---

## [Use GPU to generate known sparse matrix](https://discourse.julialang.org/t/use-gpu-to-generate-known-sparse-matrix/33023)

<div class="topic-metadata">

**Author:** [@FujiwaraTakumiEH](https://discourse.julialang.org/u/FujiwaraTakumiEH)\
**Replies:** 2\
**Last updated:** [January 6, 2020, 12:51pm UTC](https://discourse.julialang.org/t/use-gpu-to-generate-known-sparse-matrix/33023 "2020-01-06T12:51:19Z")

</div>

Suppose we have a known matrix A: \\begin{equation} A=\\left\[\\begin{array}{lll} {1} & {0} & {0} \\\\ {0} & {2} & {4} \\\\ {0} & {0} & {3} \\end{array}\\right\] \\end{equation} At this point, I want to express A as a sparse matr…

---

## [Example of Async/Distributed loading into a single shared Channel](https://discourse.julialang.org/t/example-of-async-distributed-loading-into-a-single-shared-channel/11815)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 2\
**Last updated:** [January 6, 2020, 11:45am UTC](https://discourse.julialang.org/t/example-of-async-distributed-loading-into-a-single-shared-channel/11815 "2020-01-06T11:45:39Z")

</div>

I think this is a fairly common senario: You have a collection of files, and each file contains a set of records (e.g. one JSON entry per line). And you which to kinda lazily load up those records, without caring abou…

---

## [This if statements is not work properly](https://discourse.julialang.org/t/this-if-statements-is-not-work-properly/33019)

<div class="topic-metadata">

**Author:** [@dialektike](https://discourse.julialang.org/u/dialektike)\
**Replies:** 2\
**Last updated:** [January 6, 2020, 6:54am UTC](https://discourse.julialang.org/t/this-if-statements-is-not-work-properly/33019 "2020-01-06T06:54:07Z")

</div>

julia\> function step\_function(x) if x \> 0 return 1 eles return 0 end end step\_function (generic function with 1 method) julia\> x = \[-1.0, 1.0, 2.0\] 3…

---

## [How does GPU programming work (Knet example)?](https://discourse.julialang.org/t/how-does-gpu-programming-work-knet-example/32841)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 5\
**Last updated:** [January 6, 2020, 5:37am UTC](https://discourse.julialang.org/t/how-does-gpu-programming-work-knet-example/32841 "2020-01-06T05:37:21Z")

</div>

Can anyone give a high-level summary of how julia and GPU programming work? In what cases can we write julia code and have it run on the GPU, and in what cases will it not work? I am confused. I needed to clean an imag…

---

## [User module workaround?](https://discourse.julialang.org/t/user-module-workaround/33015)

<div class="topic-metadata">

**Author:** [@garychow](https://discourse.julialang.org/u/garychow)\
**Replies:** 0\
**Last updated:** [January 6, 2020, 4:25am UTC](https://discourse.julialang.org/t/user-module-workaround/33015 "2020-01-06T04:25:24Z")

</div>

Hi Guys, I wonder if there is any usable workaround for julia in vscode to load user module? Thanks

---

## [Best ways to do hyper-parameter tuning](https://discourse.julialang.org/t/best-ways-to-do-hyper-parameter-tuning/33010)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 3\
**Last updated:** [January 6, 2020, 2:28am UTC](https://discourse.julialang.org/t/best-ways-to-do-hyper-parameter-tuning/33010 "2020-01-06T02:28:30Z")

</div>

I’d like to tune a model in JLBoost (an awesome, all Julia package by @xiaodai builds on XGBoost, LightGBM, & Catboost). using RDatasets, DataFrames, JLBoost, MLJ; d = dataset("MASS", "Boston"); train, test = partition…

---

## [Help with updating a legacy Julia code](https://discourse.julialang.org/t/help-with-updating-a-legacy-julia-code/33013)

<div class="topic-metadata">

**Author:** [@gfaccin](https://discourse.julialang.org/u/gfaccin)\
**Replies:** 2\
**Last updated:** [January 6, 2020, 2:26am UTC](https://discourse.julialang.org/t/help-with-updating-a-legacy-julia-code/33013 "2020-01-06T02:26:56Z")

</div>

Hi all, I’m completely new to Julia. I’ve got a Julia simulation code that seems to have been written in an old version of Julia. Thus, it uses a lot of deprecated syntax which fails to execute in the version I have (w…

---

## [Ranges with zero step](https://discourse.julialang.org/t/ranges-with-zero-step/32970)

<div class="topic-metadata">

**Author:** [@Xnartharax](https://discourse.julialang.org/u/Xnartharax)\
**Replies:** 3\
**Last updated:** [January 6, 2020, 2:23am UTC](https://discourse.julialang.org/t/ranges-with-zero-step/32970 "2020-01-06T02:23:44Z")

</div>

This is my first post here and English is not my native language so please excuse some (hopefully minor) mistakes. I ran across a problem when trying to iterate over some cubic space. I want to give a function two corne…

---

## [Newbie question regarding opening files](https://discourse.julialang.org/t/newbie-question-regarding-opening-files/7856)

<div class="topic-metadata">

**Author:** [@ajimithing](https://discourse.julialang.org/u/ajimithing)\
**Replies:** 11\
**Last updated:** [January 6, 2020, 1:40am UTC](https://discourse.julialang.org/t/newbie-question-regarding-opening-files/7856 "2020-01-06T01:40:42Z")

</div>

I have no background with computer programming, but am a daily fantasy sports player. I recently came across a paper - “Picking Winners Using Integer Programming” by David Hunter, Juan Pablo Vielma, and Tauhid Zaman. Ma…

---

## [\[ANN\] PrettyTables 0.8.0](https://discourse.julialang.org/t/ann-prettytables-0-8-0/32985)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 13\
**Last updated:** [January 6, 2020, 1:06am UTC](https://discourse.julialang.org/t/ann-prettytables-0-8-0/32985 "2020-01-06T01:06:07Z")

</div>

Hi guys! I have just requested the registration of the v0.8.0 of PrettyTables.jl. This version has two major features. The first is that you can use the function include\_pt\_to\_file to add a table into a file between tw…

---

## [Change symbol size inside legend with Plots, pyplot()](https://discourse.julialang.org/t/change-symbol-size-inside-legend-with-plots-pyplot/30632)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 0\
**Last updated:** [November 2, 2019, 5:10pm UTC](https://discourse.julialang.org/t/change-symbol-size-inside-legend-with-plots-pyplot/30632 "2019-11-02T17:10:49Z")

</div>

No matter how large is markesize in a scatter plot, the symbol in the legend is always tiny. Any idea on how to fix it? Thank you

---

## [ImageMajick.jl, Gtk.jl fail to load in Julia 1.3.1](https://discourse.julialang.org/t/imagemajick-jl-gtk-jl-fail-to-load-in-julia-1-3-1/32989)

<div class="topic-metadata">

**Author:** [@magister-ludi](https://discourse.julialang.org/u/magister-ludi)\
**Replies:** 3\
**Last updated:** [January 5, 2020, 10:32pm UTC](https://discourse.julialang.org/t/imagemajick-jl-gtk-jl-fail-to-load-in-julia-1-3-1/32989 "2020-01-05T22:32:39Z")

</div>

I have just updated ImageMagick.jl to v1.1.1 and Gtk.jl to v1.1.2. They installed without any apparent problem, but when I try, say, using ImageMagick precompilation fails: \[ Info: Precompiling ImageMagick \[6218d12a-5…

---

## [Infix macros and tuple valued function broadcasting](https://discourse.julialang.org/t/infix-macros-and-tuple-valued-function-broadcasting/33002)

<div class="topic-metadata">

**Author:** [@Jakub\_Wronowski](https://discourse.julialang.org/u/Jakub_Wronowski)\
**Replies:** 5\
**Last updated:** [January 5, 2020, 9:17pm UTC](https://discourse.julialang.org/t/infix-macros-and-tuple-valued-function-broadcasting/33002 "2020-01-05T21:17:09Z")

</div>

Hello :slight\_smile: I am using modular arithmetic extensively and there are two things that I am missing: Possibility to define infix macro. I’d like to use syntax like this: x = H .\* Y @mod 17 and @mod macro wou…

---

## [Would somebody suggest what is the right to work in a parallel loop and write data to the same Dataframe?](https://discourse.julialang.org/t/would-somebody-suggest-what-is-the-right-to-work-in-a-parallel-loop-and-write-data-to-the-same-dataframe/32949)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 4\
**Last updated:** [January 5, 2020, 7:16pm UTC](https://discourse.julialang.org/t/would-somebody-suggest-what-is-the-right-to-work-in-a-parallel-loop-and-write-data-to-the-same-dataframe/32949 "2020-01-05T19:16:58Z")

</div>

Would somebody suggest what is the right to work in a parallel loop and write data to the same Dataframe? Thank you in advance.

---

## [Meta-learning in Julia](https://discourse.julialang.org/t/meta-learning-in-julia/32975)

<div class="topic-metadata">

**Author:** [@hayabu](https://discourse.julialang.org/u/hayabu)\
**Replies:** 3\
**Last updated:** [January 5, 2020, 6:57pm UTC](https://discourse.julialang.org/t/meta-learning-in-julia/32975 "2020-01-05T18:57:30Z")

</div>

Meta learning is a branch of machine learning that deals with learning to learn. An example of this is few-shot learning where the algorithm is trying to learn from a small dataset fast by given example of many datasets …

---

## [Debugging ERROR: ArgumentError: invalid version range](https://discourse.julialang.org/t/debugging-error-argumenterror-invalid-version-range/32979)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 7\
**Last updated:** [January 5, 2020, 5:42pm UTC](https://discourse.julialang.org/t/debugging-error-argumenterror-invalid-version-range/32979 "2020-01-05T17:42:04Z")

</div>

(v1.3) pkg\> activate debug Activating new environment at \`~/repos/scratch/debug/Project.toml\` (debug) pkg\> dev https://github.com/Klepac-Ceraj-Lab/echo\_analysis Updating registry at \`~/.julia/registries/BioJuliaRegist…

---

## [Rename registered package](https://discourse.julialang.org/t/rename-registered-package/32994)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 0\
**Last updated:** [January 5, 2020, 3:23pm UTC](https://discourse.julialang.org/t/rename-registered-package/32994 "2020-01-05T15:23:23Z")

</div>

Hi, I am thinking about renaming a registered package (TSAnalysis.jl) to something more explicit as suggested in a recent discussion. I am not sure what is the latest view on that - I have seen @ChrisRackauckas’ reply …

---

## [Values from Dictionary](https://discourse.julialang.org/t/values-from-dictionary/32996)

<div class="topic-metadata">

**Author:** [@ar12y](https://discourse.julialang.org/u/ar12y)\
**Replies:** 3\
**Last updated:** [January 5, 2020, 4:10pm UTC](https://discourse.julialang.org/t/values-from-dictionary/32996 "2020-01-05T16:10:14Z")

</div>

hi, I have the following dictionary called “states”: states=Dict{Any,Any}((0, 0) =\> Array{Any,1}\[\[\[0\], (0, 0), Any\[0, 0\]\], \[\[1\], (1, 0), Any\[1, 1\]\]\],(1, 0) =\> Array{Any,1}\[\[\[0\], (0, 1), Any\[1, 0\]\], \[\[1\], (1, 1), Any\[0,…

---

## [How to "collapse" a Vector of Vector?](https://discourse.julialang.org/t/how-to-collapse-a-vector-of-vector/32877)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 12\
**Last updated:** [January 5, 2020, 2:36pm UTC](https://discourse.julialang.org/t/how-to-collapse-a-vector-of-vector/32877 "2020-01-05T14:36:56Z")

</div>

julia\> vv = \[\[1.0, 2.0\], \[3.0, 4.0, 5.0\], \[6.0, 7.0\] \] 3-element Array{Array{Float64,1},1}: \[1.0, 2.0\] \[3.0, 4.0, 5.0\] \[6.0, 7.0\] is there an efficient way to transform it into: \[1.0, 2.0, 3.0, 4.0, 5.0, 6…

---

## [Using Laplacians to find fiedler values](https://discourse.julialang.org/t/using-laplacians-to-find-fiedler-values/32907)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 3\
**Last updated:** [January 5, 2020, 12:01pm UTC](https://discourse.julialang.org/t/using-laplacians-to-find-fiedler-values/32907 "2020-01-05T12:01:46Z")

</div>

@danspielman I am trying to find the fiedler value for a directed graph using fiedler command in Laplacians package in Julia. using LightGraphs using Laplacians g=watts\_strogatz(100,12,0.0,is\_directed=true) a=adjacenc…

---

## [GMT.jl Installation on Windows 10](https://discourse.julialang.org/t/gmt-jl-installation-on-windows-10/32954)

<div class="topic-metadata">

**Author:** [@Dervis](https://discourse.julialang.org/u/Dervis)\
**Replies:** 4\
**Last updated:** [January 5, 2020, 4:35am UTC](https://discourse.julialang.org/t/gmt-jl-installation-on-windows-10/32954 "2020-01-05T04:35:41Z")

</div>

Hello, Is there anyone who was able to successfully install GMT.jl? I am trying to run following: However, getting following error: error compiling common\_plot\_xyz: error compiling gmt: could not load library “gmt\_…

---

## [SymPy.jl analogue of \`as\_dict\` and \`gens\`](https://discourse.julialang.org/t/sympy-jl-analogue-of-as-dict-and-gens/32972)

<div class="topic-metadata">

**Author:** [@tdp](https://discourse.julialang.org/u/tdp)\
**Replies:** 3\
**Last updated:** [January 5, 2020, 4:09am UTC](https://discourse.julialang.org/t/sympy-jl-analogue-of-as-dict-and-gens/32972 "2020-01-05T04:09:21Z")

</div>

Hi, What are the SymPy.jl analogues for as\_dict and gens? See below for a minimal piece of code I would like to translate from SymPy to SymPy.jl. This is part of a larger project I am translating from Python to Julia wh…

---

## [Multithreaded task spreading](https://discourse.julialang.org/t/multithreaded-task-spreading/32966)

<div class="topic-metadata">

**Author:** [@tro3](https://discourse.julialang.org/u/tro3)\
**Replies:** 6\
**Last updated:** [January 5, 2020, 12:53am UTC](https://discourse.julialang.org/t/multithreaded-task-spreading/32966 "2020-01-05T00:53:42Z")

</div>

Apologies for the simple question. If I keep the number of active Threads.@spawn tasks \<= numthreads, will I keep to a more-or-less one task per thread distribution? I am working on a TaskPool that manages incoming task…

---

## [HTTP.get() doesn't work in parallel function](https://discourse.julialang.org/t/http-get-doesnt-work-in-parallel-function/32956)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 5\
**Last updated:** [January 4, 2020, 7:33pm UTC](https://discourse.julialang.org/t/http-get-doesnt-work-in-parallel-function/32956 "2020-01-04T19:33:24Z")

</div>

HTTP.get() doesn’t work in parallel function. Does anybody knows, how to manage HTTP.get() parallel works? Thank you in advance.

---

## [Listing all names available in a module](https://discourse.julialang.org/t/listing-all-names-available-in-a-module/32601)

<div class="topic-metadata">

**Author:** [@gcv](https://discourse.julialang.org/u/gcv)\
**Replies:** 3\
**Last updated:** [January 4, 2020, 7:01pm UTC](https://discourse.julialang.org/t/listing-all-names-available-in-a-module/32601 "2020-01-04T19:01:31Z")

</div>

Is there a way to figure out which names are available in the context of a given module? I want to list all names defined in the module, and imported into the module’s namespace with using, and all modules referenced wit…

[Previous page](https://discourse.julialang.org/latest.md?page=1849)

[Next page](https://discourse.julialang.org/latest.md?page=1851)
