# Latest

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

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

**Page:** 1629

---

## [Data loader for Flux](https://discourse.julialang.org/t/data-loader-for-flux/46775)

<div class="topic-metadata">

**Author:** [@SubhadityaMukherjee](https://discourse.julialang.org/u/SubhadityaMukherjee)\
**Replies:** 2\
**Last updated:** [September 17, 2020, 4:35pm UTC](https://discourse.julialang.org/t/data-loader-for-flux/46775 "2020-09-17T16:35:01Z")

</div>

TL;DR - Work with any data in Flux Want to do Deep learning with Flux.jl with custom data (Computer vision/ NLP etc)? Don’t want to write your own functions again and again? I am trying to build a package that will all…

---

## [How to recover Julia execution flags from julia?](https://discourse.julialang.org/t/how-to-recover-julia-execution-flags-from-julia/46790)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [September 17, 2020, 4:27pm UTC](https://discourse.julialang.org/t/how-to-recover-julia-execution-flags-from-julia/46790 "2020-09-17T16:27:19Z")

</div>

Hi, Is it possible to know how julia have been launch (-Ox) during a julia code execution ?

---

## [Is it proper practice to have a main method](https://discourse.julialang.org/t/is-it-proper-practice-to-have-a-main-method/46787)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 4:07pm UTC](https://discourse.julialang.org/t/is-it-proper-practice-to-have-a-main-method/46787 "2020-09-17T16:07:21Z")

</div>

I’m learning Julia, and right now I’m only working with one file, let’s call it main.jl. Is it proper practice to include a main method, as outlined here? I found this thread from last year, but for simple introduction …

---

## [ImageInTerminal with Julia 1.5.1](https://discourse.julialang.org/t/imageinterminal-with-julia-1-5-1/46786)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 3:58pm UTC](https://discourse.julialang.org/t/imageinterminal-with-julia-1-5-1/46786 "2020-09-17T15:58:44Z")

</div>

I receive the following alert: using ImageInTerminal, ImageView \[ Info: Precompiling ImageInTerminal \[d8c32880-2388-543b-8c61-d9f865259254\] ┌ Warning: ImageInTerminal is not supported for Windows platform: Julia at leas…

---

## [\[ANN\] SossMLJ.jl - Probabilistic Programming for MLJ modeling](https://discourse.julialang.org/t/ann-sossmlj-jl-probabilistic-programming-for-mlj-modeling/46780)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 3:48pm UTC](https://discourse.julialang.org/t/ann-sossmlj-jl-probabilistic-programming-for-mlj-modeling/46780 "2020-09-17T15:48:32Z")

</div>

@dilumaluthge and I are pleased to announce the release of SossMLJ.jl, which makes it easy to use models from the Soss.jl probabilistic programming language in MLJ.jl. Here’s a linear regression example, expressed as a …

---

## [NLsolve stops quickly](https://discourse.julialang.org/t/nlsolve-stops-quickly/46777)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 5\
**Last updated:** [September 17, 2020, 3:37pm UTC](https://discourse.julialang.org/t/nlsolve-stops-quickly/46777 "2020-09-17T15:37:44Z")

</div>

Hey everyone, I have a multivariate non-linear root-finding problem for which I would like to use NLsolve.jl. It does not seem to work, however: using NLsolve function f!(F, β) F = mbagg(β, par) - mc.(β, par = par)…

---

## [VegaLite - Interactive plots?](https://discourse.julialang.org/t/vegalite-interactive-plots/46708)

<div class="topic-metadata">

**Author:** [@Episki](https://discourse.julialang.org/u/Episki)\
**Replies:** 3\
**Last updated:** [September 17, 2020, 3:04pm UTC](https://discourse.julialang.org/t/vegalite-interactive-plots/46708 "2020-09-17T15:04:05Z")

</div>

Hi, is there a way to make VegaLite.jl plots interactive? is it somehow planned for future releases?(Home · VegaLite.jl). I’m looking for something similar to Altair for Python (https://altair-viz.github.io/) which is …

---

## [Submodule needs pyplot and it breaks documenter](https://discourse.julialang.org/t/submodule-needs-pyplot-and-it-breaks-documenter/46785)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 0\
**Last updated:** [September 17, 2020, 2:55pm UTC](https://discourse.julialang.org/t/submodule-needs-pyplot-and-it-breaks-documenter/46785 "2020-09-17T14:55:34Z")

</div>

I am building a package and have a submodule that uses PyPlot. The main package does not. When I try using MyPkg I get a complaint unless PyPlot is in the Project.toml. Having put it in and pushed the new material, I g…

---

## [Amortized Hierarchical Variational Model](https://discourse.julialang.org/t/amortized-hierarchical-variational-model/46665)

<div class="topic-metadata">

**Author:** [@darleybarreto](https://discourse.julialang.org/u/darleybarreto)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 2:49pm UTC](https://discourse.julialang.org/t/amortized-hierarchical-variational-model/46665 "2020-09-17T14:49:16Z")

</div>

Suppose I have a complex neural network giving four parameters mu, precision, alpha, beta, which may be fixed for all training, learned during training or varying for each batch, such as: X,Y = next\_batch(data) (mu,prec…

---

## [Plot a bar from the following table Please](https://discourse.julialang.org/t/plot-a-bar-from-the-following-table-please/46779)

<div class="topic-metadata">

**Author:** [@Mun\_Barimukh](https://discourse.julialang.org/u/Mun_Barimukh)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 2:47pm UTC](https://discourse.julialang.org/t/plot-a-bar-from-the-following-table-please/46779 "2020-09-17T14:47:59Z")

</div>

I have the following table. Please help me out to get a bar chart from the table. using Pkg;Pkg.add(“StatsPlots”);using DataFrames;df=DataFrame(m) df2 = df |\> x → begin x\[:shoeprice\] =parse.(Int, replace.(df.shoeprice,…

---

## [Type alias or newtype wrapper?](https://discourse.julialang.org/t/type-alias-or-newtype-wrapper/46770)

<div class="topic-metadata">

**Author:** [@matklad](https://discourse.julialang.org/u/matklad)\
**Replies:** 7\
**Last updated:** [September 17, 2020, 1:34pm UTC](https://discourse.julialang.org/t/type-alias-or-newtype-wrapper/46770 "2020-09-17T13:34:37Z")

</div>

Hi! I am writing a small from-scratch ray tracer to get myself acquainted with julia. I’ve defined a color type as struct Color r::UInt8 g::UInt8 b::UInt8 end What would be the most idiomatic definition fo…

---

## [Julia master error on update packages](https://discourse.julialang.org/t/julia-master-error-on-update-packages/46778)

<div class="topic-metadata">

**Author:** [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 1:14pm UTC](https://discourse.julialang.org/t/julia-master-error-on-update-packages/46778 "2020-09-17T13:14:07Z")

</div>

With master Julia Version 1.6.0-DEV.943 Commit 205fcd7b16 (2020-09-17 03:00 UTC) Platform Info: OS: Linux (x86\_64-suse-linux) CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz WORD\_SIZE: 64 LIBM: libopenlibm LLVM:…

---

## [How to add a row to DataFrame where one field is missing](https://discourse.julialang.org/t/how-to-add-a-row-to-dataframe-where-one-field-is-missing/46740)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 12:12pm UTC](https://discourse.julialang.org/t/how-to-add-a-row-to-dataframe-where-one-field-is-missing/46740 "2020-09-17T12:12:03Z")

</div>

The MWE below tries to add a row to a DataFrame where some rows have missing values: tps = \[String,Int64,Int64\] nms = \["str","int","int2"\] df = DataFrame(tps,nms) data = \[(str="a",int=1,int2=missing),(str="b",int=2,int2…

---

## [Is there a short version of: \`Pkg.TOML.parse(open("Project.toml"))\["deps"\] |\> keys |\> collect .|\> Pkg.add\`?](https://discourse.julialang.org/t/is-there-a-short-version-of-pkg-toml-parse-open-project-toml-deps-keys-collect-pkg-add/46768)

<div class="topic-metadata">

**Author:** [@arabidopsis](https://discourse.julialang.org/u/arabidopsis)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 12:02pm UTC](https://discourse.julialang.org/t/is-there-a-short-version-of-pkg-toml-parse-open-project-toml-deps-keys-collect-pkg-add/46768 "2020-09-17T12:02:50Z")

</div>

I was trying to add the required depedencies from a repo with a Project.toml file. I tried activate/update/resolve etc. They did things… except seemingly add any packages. I finally used the code snippet above to read …

---

## [Feature to show precompiled functions in current REPL session](https://discourse.julialang.org/t/feature-to-show-precompiled-functions-in-current-repl-session/46762)

<div class="topic-metadata">

**Author:** [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 12:00pm UTC](https://discourse.julialang.org/t/feature-to-show-precompiled-functions-in-current-repl-session/46762 "2020-09-17T12:00:54Z")

</div>

Hi all, Does someone know whether there is a way to show what functions are already precompiled in the current REPL session? I think such function could be useful to create a REPL instance manager (htop for Julia) in…

---

## [Are custom sysimages cross-platform for the same Julia version?](https://discourse.julialang.org/t/are-custom-sysimages-cross-platform-for-the-same-julia-version/46764)

<div class="topic-metadata">

**Author:** [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Replies:** 2\
**Last updated:** [September 17, 2020, 10:37am UTC](https://discourse.julialang.org/t/are-custom-sysimages-cross-platform-for-the-same-julia-version/46764 "2020-09-17T10:37:23Z")

</div>

Hi all, I was wondering the sysimages of PackageCompiler are they cross-platform for the same Julia version? Furthermore (and related) do the sysimages contain lowered LLVM code or do they actually contain platform spec…

---

## [SparseMatrixCSC definition in function](https://discourse.julialang.org/t/sparsematrixcsc-definition-in-function/46766)

<div class="topic-metadata">

**Author:** [@jmurga](https://discourse.julialang.org/u/jmurga)\
**Replies:** 4\
**Last updated:** [September 17, 2020, 10:20am UTC](https://discourse.julialang.org/t/sparsematrixcsc-definition-in-function/46766 "2020-09-17T10:20:56Z")

</div>

Hi everyone! I’m developing a module within several functions. I found some troubles with the type definition at some inputs functions. I don’t know why but I cannot use SparseMatrixCSC type as the input type. After bu…

---

## [Readdlm \> strange behaviour](https://discourse.julialang.org/t/readdlm-strange-behaviour/46765)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 10:06am UTC](https://discourse.julialang.org/t/readdlm-strange-behaviour/46765 "2020-09-17T10:06:31Z")

</div>

I heve 14 line in file but readdlm reads only no empty lines ? What wrong ? julia\> readdlm("file.txt",'\\t') 3×1 Array{Any,2}: "00-028" "reqweae" "qwe" julia\> readdlm("file.txt",'\\r') 3×1 Array{Any,2}: "00-028" "…

---

## [Starting a small local web server with HTTP.jl?](https://discourse.julialang.org/t/starting-a-small-local-web-server-with-http-jl/11668)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 18\
**Last updated:** [September 17, 2020, 9:38am UTC](https://discourse.julialang.org/t/starting-a-small-local-web-server-with-http-jl/11668 "2020-09-17T09:38:22Z")

</div>

I’m looking for a way to host a local directory as a small, static, website. The local web server in Node.js offers exactly what I need (running ws in the terminal starts a local web server in the current directory whic…

---

## [Pkg: attack vectors](https://discourse.julialang.org/t/pkg-attack-vectors/18340)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 25\
**Last updated:** [September 17, 2020, 9:19am UTC](https://discourse.julialang.org/t/pkg-attack-vectors/18340 "2020-09-17T09:19:23Z")

</div>

Pkg ecosystem: Learning from other's mistakes has gotten a bit long and wandering, as these discussions tend to. I’d like to have a very focused thread about attack vectors against the security of the package ecosystem. …

---

## [Environment and PackageCompiler.jl](https://discourse.julialang.org/t/environment-and-packagecompiler-jl/46761)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 0\
**Last updated:** [September 17, 2020, 8:53am UTC](https://discourse.julialang.org/t/environment-and-packagecompiler-jl/46761 "2020-09-17T08:53:10Z")

</div>

Is PackageCompiler.jl works depending on which environment is activated? For example, precompiling package A.jl at default env. with replace\_default=true option would not affect the same package A.jl in different env.?

---

## [Are there people doing coding live streams?](https://discourse.julialang.org/t/are-there-people-doing-coding-live-streams/46734)

<div class="topic-metadata">

**Author:** [@andre1sk](https://discourse.julialang.org/u/andre1sk)\
**Replies:** 3\
**Last updated:** [September 17, 2020, 7:05am UTC](https://discourse.julialang.org/t/are-there-people-doing-coding-live-streams/46734 "2020-09-17T07:05:12Z")

</div>

Like Jon Gjengset for Rust?

---

## [Programming numeric simulations of thermodynamic systems in Julia](https://discourse.julialang.org/t/programming-numeric-simulations-of-thermodynamic-systems-in-julia/46753)

<div class="topic-metadata">

**Author:** [@Eulerian](https://discourse.julialang.org/u/Eulerian)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 6:54am UTC](https://discourse.julialang.org/t/programming-numeric-simulations-of-thermodynamic-systems-in-julia/46753 "2020-09-17T06:54:10Z")

</div>

Hi Julia Community, I’m really new to the Julia language and this is my first post in the forum. Moreover english is not my mother tongue, so I hope you can understand my question and help me to increase my skills with …

---

## [How to escape boolean operators in HTTP.escapeuri()?](https://discourse.julialang.org/t/how-to-escape-boolean-operators-in-http-escapeuri/46733)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [September 17, 2020, 3:44am UTC](https://discourse.julialang.org/t/how-to-escape-boolean-operators-in-http-escapeuri/46733 "2020-09-17T03:44:40Z")

</div>

I need to escape a string that has characters defined in the apache Lucene implementation Ex. 1 (the “+” asserts that the identifier intNum is included somewhere in the doc) +intNum%20NOT%20natNum # all non-positive in…

---

## [A review article about Numpy was published in Nature](https://discourse.julialang.org/t/a-review-article-about-numpy-was-published-in-nature/46739)

<div class="topic-metadata">

**Author:** [@peters](https://discourse.julialang.org/u/peters)\
**Replies:** 6\
**Last updated:** [September 17, 2020, 3:58am UTC](https://discourse.julialang.org/t/a-review-article-about-numpy-was-published-in-nature/46739 "2020-09-17T03:58:43Z")

</div>

A review article about Numpy was published in Nature. Even though Julia already has superior support for array programming, I think Julia developers can learn something useful from the article. https://www.nature.com/ar…

---

## [StatsModels values(Schema) no longer works](https://discourse.julialang.org/t/statsmodels-values-schema-no-longer-works/46659)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 3\
**Last updated:** [September 17, 2020, 2:23am UTC](https://discourse.julialang.org/t/statsmodels-values-schema-no-longer-works/46659 "2020-09-17T02:23:20Z")

</div>

About a year ago, using StatsModels 0.6.5, the following code worked: function exploder(formula::FormulaTerm, df) s = schema(formula, df) function iscat(x) return isa(x, CategoricalTerm) end cats…

---

## [Unable to push my package to GitHub](https://discourse.julialang.org/t/unable-to-push-my-package-to-github/42193)

<div class="topic-metadata">

**Author:** [@jbpatzer](https://discourse.julialang.org/u/jbpatzer)\
**Replies:** 23\
**Last updated:** [September 17, 2020, 12:53am UTC](https://discourse.julialang.org/t/unable-to-push-my-package-to-github/42193 "2020-09-17T00:53:03Z")

</div>

I’ve managed to convert my code from MATLAB to Julia, turned it into a module, and then a package, and committed some changes using git, all in Juliapro. I now want to get the package onto Github. I have watched videos, …

---

## [Less than approx equals? \<≈](https://discourse.julialang.org/t/less-than-approx-equals/45436)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 21\
**Last updated:** [September 17, 2020, 12:04am UTC](https://discourse.julialang.org/t/less-than-approx-equals/45436 "2020-09-17T00:04:22Z")

</div>

leaq(a,b) = (a \<= b) || (a ≈ b) leaq(a,b,c) = leaq(a,b) && leaq(b,c) Is there a better way of doing this? The only alternative I can think of is to subtract some epsilon from the lesser part of the inequality based on …

---

## [Is it possible to define a \`\`+!\`\` function?](https://discourse.julialang.org/t/is-it-possible-to-define-a-function/46475)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 22\
**Last updated:** [September 16, 2020, 11:48pm UTC](https://discourse.julialang.org/t/is-it-possible-to-define-a-function/46475 "2020-09-16T23:48:52Z")

</div>

Tried this but no luck. julia\> (+!)(x, y) = 0 ERROR: syntax: invalid function name "+(!)" around REPL\[35\]:1 or julia\> function +!(x, y) = 0 end ERROR: syntax: expected "end" in definition of function "+" The idea is…

---

## [Call a constructor by interpolation](https://discourse.julialang.org/t/call-a-constructor-by-interpolation/46732)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 2\
**Last updated:** [September 16, 2020, 10:51pm UTC](https://discourse.julialang.org/t/call-a-constructor-by-interpolation/46732 "2020-09-16T22:51:46Z")

</div>

I need to programmatically initialize an empty DataFrame using a vector of names and a vector of types: Here is an example of doing this explicitly: DataFrame(mystrings=String\[\],myints=Int64\[\]) 0×2 DataFrame MWE for d…

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

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