# Latest

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

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

**Page:** 1411

---

## [Can someone replicate this GLM problem with linear regression on your computer?](https://discourse.julialang.org/t/can-someone-replicate-this-glm-problem-with-linear-regression-on-your-computer/60098)

<div class="topic-metadata">

**Author:** [@Chen](https://discourse.julialang.org/u/Chen)\
**Replies:** 13\
**Last updated:** [April 27, 2021, 1:31pm UTC](https://discourse.julialang.org/t/can-someone-replicate-this-glm-problem-with-linear-regression-on-your-computer/60098 "2021-04-27T13:31:59Z")

</div>

The CSV file is here: https://github.com/JuliaStats/GLM.jl/files/6384056/Car-Training.csv The GLM issue that I reported is here: https://github.com/JuliaStats/GLM.jl/issues/426 The codes are very simple: using GLM usi…

---

## [Error in PDE Example](https://discourse.julialang.org/t/error-in-pde-example/60040)

<div class="topic-metadata">

**Author:** [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 1:31pm UTC](https://discourse.julialang.org/t/error-in-pde-example/60040 "2021-04-27T13:31:21Z")

</div>

I’m trying to follow the example for solving the heat equation PDE from the DiffEqOperators page, but I am running into an error in the discretization step. The code is using OrdinaryDiffEq, ModelingToolkit, DiffEqOpera…

---

## [Iterators.product](https://discourse.julialang.org/t/iterators-product/60078)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 5\
**Last updated:** [April 27, 2021, 1:24pm UTC](https://discourse.julialang.org/t/iterators-product/60078 "2021-04-27T13:24:57Z")

</div>

Hello everyone. Can anyone help me see why result 1 and 2 are different. Thank you. function test() u = \[1,0\] d = \[0,1\] N = 2 base = ntuple(i-\>\[u,d\],N) # result 1 for q in Iterators.product(base) println(q) end…

---

## [PhD position: machine learning for human learning](https://discourse.julialang.org/t/phd-position-machine-learning-for-human-learning/59113)

<div class="topic-metadata">

**Author:** [@alvorithm](https://discourse.julialang.org/u/alvorithm)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 12:39pm UTC](https://discourse.julialang.org/t/phd-position-machine-learning-for-human-learning/59113 "2021-04-27T12:39:07Z")

</div>

Dear Julians, transformers of code, wielders of symbols and squeezers of eps, We are offering a PhD position at the ML ⇌ Science Colaboratory in Tübingen, Germany. We seek to develop an adaptive learning approach that …

---

## [Use of interpolation function in ode model written in R/diffeqr](https://discourse.julialang.org/t/use-of-interpolation-function-in-ode-model-written-in-r-diffeqr/60046)

<div class="topic-metadata">

**Author:** [@fkrauer](https://discourse.julialang.org/u/fkrauer)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 12:20pm UTC](https://discourse.julialang.org/t/use-of-interpolation-function-in-ode-model-written-in-r-diffeqr/60046 "2021-04-27T12:20:51Z")

</div>

Hi all I am using Julia’s diffeq through R (diffeqr library) for the simulation of a simple SIR ode model. I want to interpolate a parameter value from the time in the ode model. I can set up a julia ODE model and call …

---

## [Julia 1.6.1 broken in Mac OSX?](https://discourse.julialang.org/t/julia-1-6-1-broken-in-mac-osx/60099)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 12:03pm UTC](https://discourse.julialang.org/t/julia-1-6-1-broken-in-mac-osx/60099 "2021-04-27T12:03:02Z")

</div>

Hi all. I just upgraded to Julia 1.6.1 very exited. When running julia from Atom or the Terminal i get this message: Press Enter to start a new session. Hold on tight while we are installing some packages for you. Thi…

---

## [Julia in AWS](https://discourse.julialang.org/t/julia-in-aws/60049)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 10:37am UTC](https://discourse.julialang.org/t/julia-in-aws/60049 "2021-04-27T10:37:46Z")

</div>

Hi, I’m using parallel computing to increase the performance of my code. I have access to a pc with 36 cores, but I think I could do better if I ran my code in a machine with more cores and/or run the same code simultan…

---

## [Subplots with one common legend](https://discourse.julialang.org/t/subplots-with-one-common-legend/60020)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 3\
**Last updated:** [April 27, 2021, 9:48am UTC](https://discourse.julialang.org/t/subplots-with-one-common-legend/60020 "2021-04-27T09:48:17Z")

</div>

I am trying to plot many subplots with one common legend that is not on the subplots but in between the two subplot rows where it is empty. Moreover, it should not enlarge the space between the row and make the plot unne…

---

## [Create gif](https://discourse.julialang.org/t/create-gif/59029)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 9\
**Last updated:** [April 27, 2021, 9:54am UTC](https://discourse.julialang.org/t/create-gif/59029 "2021-04-27T09:54:02Z")

</div>

I need to create an animated image (gif) from this script from a set of temperatures \[ T0 -|- T2 \]: \[EvptTemp CndsTemp\] 55 33 55 34 55 35 55 36 55 37 55 38 55 39 55 40 55 41 5…

---

## [Reading only some results files in some folder](https://discourse.julialang.org/t/reading-only-some-results-files-in-some-folder/60089)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 0\
**Last updated:** [April 27, 2021, 9:17am UTC](https://discourse.julialang.org/t/reading-only-some-results-files-in-some-folder/60089 "2021-04-27T09:17:07Z")

</div>

I am using the package DrWatson to run simulations. I have one script writing many results files to some folder. Now I want to be able to read only some of these files (e.g. one of them) and not all of them. I am usua…

---

## [Loading .csv into a DataFrame with missing insertion and column-type correction (one-linerish)](https://discourse.julialang.org/t/loading-csv-into-a-dataframe-with-missing-insertion-and-column-type-correction-one-linerish/60088)

<div class="topic-metadata">

**Author:** [@egolep](https://discourse.julialang.org/u/egolep)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 9:02am UTC](https://discourse.julialang.org/t/loading-csv-into-a-dataframe-with-missing-insertion-and-column-type-correction-one-linerish/60088 "2021-04-27T09:02:36Z")

</div>

Hi, forgive me if the question is trivial or if there have been similar or identical questions already answered, but I’ve not been able to find them. I have to load a .csv file into a DataFrame, but the file contains “…

---

## [@eval vs defining on module](https://discourse.julialang.org/t/eval-vs-defining-on-module/60083)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 7:53am UTC](https://discourse.julialang.org/t/eval-vs-defining-on-module/60083 "2021-04-27T07:53:31Z")

</div>

In this question, users want to change the behavior of a function in Base. What’s the difference between this post’s suggestion of @eval Base begin path\_color = :red function print\_stackframe(io, i, frame::StackFrame…

---

## [Hiding decorations in a 3D scene](https://discourse.julialang.org/t/hiding-decorations-in-a-3d-scene/60067)

<div class="topic-metadata">

**Author:** [@LarryLegend33](https://discourse.julialang.org/u/LarryLegend33)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 6:24am UTC](https://discourse.julialang.org/t/hiding-decorations-in-a-3d-scene/60067 "2021-04-27T06:24:38Z")

</div>

Hi, I’m using the wireframe plotting method to render some meshes and having success rotating the meshes as visual stimuli for psychophysics experiments. I’d like to hide the decorations of all axes so that the only thi…

---

## [Locking in multithreading](https://discourse.julialang.org/t/locking-in-multithreading/60023)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 6:00am UTC](https://discourse.julialang.org/t/locking-in-multithreading/60023 "2021-04-27T06:00:00Z")

</div>

Hi, Here is a piece of code (not a MWE…) function parallelkernel!(elca,idof,R,...) # fast typestable kernel @threads for iel ∈ eachindex(elca) r = incremental(elca\[iel\],...) #lock(lk) do R…

---

## [Issue with Plots.scalefontsizes()](https://discourse.julialang.org/t/issue-with-plots-scalefontsizes/60050)

<div class="topic-metadata">

**Author:** [@gregory](https://discourse.julialang.org/u/gregory)\
**Replies:** 3\
**Last updated:** [April 26, 2021, 11:59pm UTC](https://discourse.julialang.org/t/issue-with-plots-scalefontsizes/60050 "2021-04-26T23:59:28Z")

</div>

A MWE of my issue: function testPlot(α::Real=1.0) Plots.scalefontsizes(α) p1=plot(rand(10),title="mytitle") Plots.scalefontsizes() return p1 end The title is scaled appropriately, but the ticks are not changed. …

---

## [Type declaration in function definition](https://discourse.julialang.org/t/type-declaration-in-function-definition/60075)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [April 27, 2021, 2:49am UTC](https://discourse.julialang.org/t/type-declaration-in-function-definition/60075 "2021-04-27T02:49:03Z")

</div>

Perhaps I’m wrong, but I think there was a time when defining functions like f(x::Real) = ... was discouraged because of performance reasons. Instead, people were told to use f(x::T) where {T \<: Real} = .... Yet, I see t…

---

## [Why is this type inference failed](https://discourse.julialang.org/t/why-is-this-type-inference-failed/60077)

<div class="topic-metadata">

**Author:** [@N5N3](https://discourse.julialang.org/u/N5N3)\
**Replies:** 1\
**Last updated:** [April 27, 2021, 2:44am UTC](https://discourse.julialang.org/t/why-is-this-type-inference-failed/60077 "2021-04-27T02:44:23Z")

</div>

function interfer\_test( obj::T, Ls::NTuple{2,\<:Integer}, ) where {T} CT = complex(T) mem\_init = ntuple(\_ -\> zeros(CT, Ls), Val(4)) end @code\_warntype interfer\_test(1,(100,100)) The above code returns Va…

---

## [Reading the ProfileView Flamegraph](https://discourse.julialang.org/t/reading-the-profileview-flamegraph/60034)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 3\
**Last updated:** [April 27, 2021, 2:33am UTC](https://discourse.julialang.org/t/reading-the-profileview-flamegraph/60034 "2021-04-27T02:33:18Z")

</div>

Below is a flamegraph from a profiling run I just performed. For context, this is not exactly performance critical code, but it cannot be arbitrarily slow either. I would like to make sure I am reading/interpreting this…

---

## [Unable to load Twitter.jl in Pluto](https://discourse.julialang.org/t/unable-to-load-twitter-jl-in-pluto/60073)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 0\
**Last updated:** [April 27, 2021, 2:14am UTC](https://discourse.julialang.org/t/unable-to-load-twitter-jl-in-pluto/60073 "2021-04-27T02:14:38Z")

</div>

When I’m using Pluto, I’m able to add Twitter.jl Pkg.add("Twitter") works just fine, but using Twitter gives the error Failed to precompile Twitter \[92393bbf-ba23-5323-a3fa-fbe1e5f35af8\] to ~/.julia/compiled/v1.6/T…

---

## [How do I add \[1.5.3\] to VS code in Ubuntu?](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 45\
**Last updated:** [April 27, 2021, 1:26am UTC](https://discourse.julialang.org/t/how-do-i-add-1-5-3-to-vs-code-in-ubuntu/53127 "2021-04-27T01:26:28Z")

</div>

I downloaded 1.6.0 into a file called Julia in my home directory. I tried to enter export PATH="$PATH:/path/to/~/Julia/julia-1.6.0-beta1-linux-x86\_64/julia-1.6.0-beta1/bin" into VS Code, so it would find this file, bu…

---

## [Code sample for logging into a web site and downloading a csv file](https://discourse.julialang.org/t/code-sample-for-logging-into-a-web-site-and-downloading-a-csv-file/60057)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 4\
**Last updated:** [April 27, 2021, 12:07am UTC](https://discourse.julialang.org/t/code-sample-for-logging-into-a-web-site-and-downloading-a-csv-file/60057 "2021-04-27T00:07:34Z")

</div>

Hi there, I have looked around on discourse and can’t seem to find a suggested approach that offers best practices for the following: 1 go to a web site 2 login using user and password 3 navigate to a page 4 downloa…

---

## [How to make type-stable: passing an element of a vector of functions](https://discourse.julialang.org/t/how-to-make-type-stable-passing-an-element-of-a-vector-of-functions/60068)

<div class="topic-metadata">

**Author:** [@sofiablopez](https://discourse.julialang.org/u/sofiablopez)\
**Replies:** 4\
**Last updated:** [April 26, 2021, 11:31pm UTC](https://discourse.julialang.org/t/how-to-make-type-stable-passing-an-element-of-a-vector-of-functions/60068 "2021-04-26T23:31:44Z")

</div>

I have an array of functions, and I need to iterate it and pass each element of the array to another function. How can I make it type-stable? This code illustrates my problem: function f(g::Function, x::Int64) ret…

---

## [How to get anonymous function from its type?](https://discourse.julialang.org/t/how-to-get-anonymous-function-from-its-type/53843)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 3\
**Last updated:** [April 26, 2021, 11:16pm UTC](https://discourse.julialang.org/t/how-to-get-anonymous-function-from-its-type/53843 "2021-04-26T23:16:01Z")

</div>

f = x -\> x + 1 T = typeof(f) # ==\> var"#2#4" Given a type T of an anonymous function, can I get that function? I.e. given var#"2#4" get object f? I get the type T from the lowered representation of code (actually, from…

---

## [Plots grid line at every integer or half integer](https://discourse.julialang.org/t/plots-grid-line-at-every-integer-or-half-integer/60059)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 2\
**Last updated:** [April 26, 2021, 10:43pm UTC](https://discourse.julialang.org/t/plots-grid-line-at-every-integer-or-half-integer/60059 "2021-04-26T22:43:40Z")

</div>

Is there a way to specify Plots.jl to have a grid line at every integer without manually listing the integers? I want grid lines based on the plot extent, without calculating the extent beforehand (since Plots.jl will do…

---

## [Flux and chemistry](https://discourse.julialang.org/t/flux-and-chemistry/59742)

<div class="topic-metadata">

**Author:** [@aquarelleX332](https://discourse.julialang.org/u/aquarelleX332)\
**Replies:** 4\
**Last updated:** [April 26, 2021, 10:42pm UTC](https://discourse.julialang.org/t/flux-and-chemistry/59742 "2021-04-26T22:42:02Z")

</div>

Hello everyone, I am aware that ChemometricsTools.jl is a machine learning library for chemistry (mainly to process chemical data). Could you help me to find some examples of Flux application in chemistry (and possibl…

---

## [Please share your favorite JuliaCon moment(s) & clip(s)!](https://discourse.julialang.org/t/please-share-your-favorite-juliacon-moment-s-clip-s/59285)

<div class="topic-metadata">

**Author:** [@xorJane](https://discourse.julialang.org/u/xorJane)\
**Replies:** 2\
**Last updated:** [April 26, 2021, 9:58pm UTC](https://discourse.julialang.org/t/please-share-your-favorite-juliacon-moment-s-clip-s/59285 "2021-04-26T21:58:06Z")

</div>

Hi all, The JuliaCon 2021 organizing committee is compiling moments/clips/snapshots from previous JuliaCons. We’d love for you to share your favorite JuliaCon moments, especially if you can provide a link to a video & t…

---

## [Quantum scientist positions with Julia experience](https://discourse.julialang.org/t/quantum-scientist-positions-with-julia-experience/60062)

<div class="topic-metadata">

**Author:** [@nmoran](https://discourse.julialang.org/u/nmoran)\
**Replies:** 0\
**Last updated:** [April 26, 2021, 8:28pm UTC](https://discourse.julialang.org/t/quantum-scientist-positions-with-julia-experience/60062 "2021-04-26T20:28:33Z")

</div>

We are looking for a quantum computational scientist to work on open source Julia packages (https://github.com/JuliaQX). 10 month contract initially, but expect it will be renewed beyond this. More info at: https://www…

---

## [How to change the column width of a DataFrame](https://discourse.julialang.org/t/how-to-change-the-column-width-of-a-dataframe/60047)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [April 26, 2021, 7:35pm UTC](https://discourse.julialang.org/t/how-to-change-the-column-width-of-a-dataframe/60047 "2021-04-26T19:35:13Z")

</div>

I have the following data frame: julia\> df 11729×4 DataFrame Row │ time\_rel X Y Z │ Float64 Array… …

---

## [Account problem - not sure where to go](https://discourse.julialang.org/t/account-problem-not-sure-where-to-go/60032)

<div class="topic-metadata">

**Author:** [@tro3](https://discourse.julialang.org/u/tro3)\
**Replies:** 4\
**Last updated:** [April 26, 2021, 7:32pm UTC](https://discourse.julialang.org/t/account-problem-not-sure-where-to-go/60032 "2021-04-26T19:32:26Z")

</div>

Not sure where to turn here. Something broke on my Julia Discourse account. I have not been getting notification emails for more than a year, and 50% of the time when I go to the site it either does not load or just pa…

---

## [How run .jl file in jupyter?](https://discourse.julialang.org/t/how-run-jl-file-in-jupyter/60054)

<div class="topic-metadata">

**Author:** [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Replies:** 1\
**Last updated:** [April 26, 2021, 7:16pm UTC](https://discourse.julialang.org/t/how-run-jl-file-in-jupyter/60054 "2021-04-26T19:16:11Z")

</div>

I have julia, Ijulia, jupyter (via anaconda) installed and can open a notebook in jupyter and execute a julia command. But how there, in the jupyter notebook, do I run an existing .jl file?

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

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