# Latest

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

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

**Page:** 1107

---

## [Create a PostgreSQL Table from a DataFrame or CSV with Schema Inference](https://discourse.julialang.org/t/create-a-postgresql-table-from-a-dataframe-or-csv-with-schema-inference/77328)

<div class="topic-metadata">

**Author:** [@dliden](https://discourse.julialang.org/u/dliden)\
**Replies:** 2\
**Last updated:** [March 3, 2022, 5:19am UTC](https://discourse.julialang.org/t/create-a-postgresql-table-from-a-dataframe-or-csv-with-schema-inference/77328 "2022-03-03T05:19:03Z")

</div>

I am interested in finding a good method for creating a new table in a PostgreSQL database from a CSV or DataFrame without explicitly identifying the column types, much in the way that the Pandas DataFrame.to\_sql() works…

---

## [How to set series as NOT selected in Plotly interactive HTML](https://discourse.julialang.org/t/how-to-set-series-as-not-selected-in-plotly-interactive-html/76671)

<div class="topic-metadata">

**Author:** [@CaoHua](https://discourse.julialang.org/u/CaoHua)\
**Replies:** 2\
**Last updated:** [March 3, 2022, 5:05am UTC](https://discourse.julialang.org/t/how-to-set-series-as-not-selected-in-plotly-interactive-html/76671 "2022-03-03T05:05:04Z")

</div>

Dears, I am using Plotly as the backend to generate line chart, and save the chart as html file. There are several series/lines in the chart. And I would like to show just part of them as the default. How can I set up…

---

## [HTTP post usage](https://discourse.julialang.org/t/http-post-usage/74014)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 6\
**Last updated:** [March 3, 2022, 1:57am UTC](https://discourse.julialang.org/t/http-post-usage/74014 "2022-03-03T01:57:39Z")

</div>

Hi, I’m using http.jl for oauth2. I have no issues getting an authorization code but I get an error trying to exchange the code for a token. resp=HTTP.post("https://identity.xero.com/connect/token",headers=Dict("Autho…

---

## [Source to practice linear regression problems using Julia](https://discourse.julialang.org/t/source-to-practice-linear-regression-problems-using-julia/77271)

<div class="topic-metadata">

**Author:** [@MS\_PRAGATI](https://discourse.julialang.org/u/MS_PRAGATI)\
**Replies:** 3\
**Last updated:** [March 3, 2022, 1:06am UTC](https://discourse.julialang.org/t/source-to-practice-linear-regression-problems-using-julia/77271 "2022-03-03T01:06:25Z")

</div>

could you provide some sources to study Linear regression problems using Julia programming language?

---

## [Does anyone have a progress bar for pmap?](https://discourse.julialang.org/t/does-anyone-have-a-progress-bar-for-pmap/11729)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 4\
**Last updated:** [March 3, 2022, 12:20am UTC](https://discourse.julialang.org/t/does-anyone-have-a-progress-bar-for-pmap/11729 "2022-03-03T00:20:43Z")

</div>

I guess it’s been a while since anyone’s asked it, but does somebody have a working progress bar for pmap sitting around? Related to: Displaying Parallel Progress Bars - #5 by adamslc Way to add progress bar to map f…

---

## [Cbc solver crashes Julia with multithreading](https://discourse.julialang.org/t/cbc-solver-crashes-julia-with-multithreading/73859)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 11\
**Last updated:** [March 2, 2022, 10:26pm UTC](https://discourse.julialang.org/t/cbc-solver-crashes-julia-with-multithreading/73859 "2022-03-02T22:26:32Z")

</div>

The Cbc solver crashes Julia when using more than one threads for optimization. It gives an error message that Julia has exited. Here is a MWE based on JuMP tutorial on facility location: using JuMP, Cbc, LinearAlgebra,…

---

## [How to adapt julia-1.0 code for julia-1.6](https://discourse.julialang.org/t/how-to-adapt-julia-1-0-code-for-julia-1-6/77229)

<div class="topic-metadata">

**Author:** [@jjdegruijter](https://discourse.julialang.org/u/jjdegruijter)\
**Replies:** 14\
**Last updated:** [March 2, 2022, 10:06pm UTC](https://discourse.julialang.org/t/how-to-adapt-julia-1-0-code-for-julia-1-6/77229 "2022-03-02T22:06:07Z")

</div>

My julia code worked with version 1.0, but not with version 1.6. Adapting my code to version 1.6 appears to be not as simple as I hoped. Is there a text that explains how to do it?

---

## [Julia in laboratory](https://discourse.julialang.org/t/julia-in-laboratory/77171)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 9:36pm UTC](https://discourse.julialang.org/t/julia-in-laboratory/77171 "2022-03-02T21:36:36Z")

</div>

Hi All, have you tried to control the experiments (data acquisition and instrument control) in laboratory using https://github.com/JaneliaSciComp/NIDAQ.jl together with some GUI interface? We would like to move from Lab…

---

## [Removing axes in Plots.jl 3D plot](https://discourse.julialang.org/t/removing-axes-in-plots-jl-3d-plot/9104)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 2\
**Last updated:** [March 2, 2022, 7:03pm UTC](https://discourse.julialang.org/t/removing-axes-in-plots-jl-3d-plot/9104 "2022-03-02T19:03:37Z")

</div>

Very much similar to Removing Grid and Plot Manipulation on PyPlot 3D Figures, I have a 3D plot drawn with Plots.jl (rather than PyPlot.jl) where I would like to remove the axes/box, i.e. I want the image to be floating …

---

## [Storing stationary points during solving](https://discourse.julialang.org/t/storing-stationary-points-during-solving/77258)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 5\
**Last updated:** [March 2, 2022, 7:59pm UTC](https://discourse.julialang.org/t/storing-stationary-points-during-solving/77258 "2022-03-02T19:59:10Z")

</div>

In our library of SIR models (see e.g. https://github.com/epirecipes/sir-julia/blob/master/markdown/ode/ode.md), I’m trying to store the maximum of one of the state variables (I); I don’t want to just calculate the maxim…

---

## [Help testing PrettyTables v2](https://discourse.julialang.org/t/help-testing-prettytables-v2/76752)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 19\
**Last updated:** [March 2, 2022, 6:16pm UTC](https://discourse.julialang.org/t/help-testing-prettytables-v2/76752 "2022-03-02T18:16:31Z")

</div>

Hi! I have been working for a while in a huge rewrite of PrettyTables.jl internals. When I first developed this package, it was thought to be something straightforward: take a matrix and print it in a formatted table. I…

---

## [Workflow for using package artifacts](https://discourse.julialang.org/t/workflow-for-using-package-artifacts/77319)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 6:00pm UTC](https://discourse.julialang.org/t/workflow-for-using-package-artifacts/77319 "2022-03-02T18:00:09Z")

</div>

I’m working on library for creating counterfactual explanations. For the docs I want to make some pretrained Flux.jl models and data available as artifacts. I’m puzzled as to where I’m actually supposed to host the data. …

---

## [\[Declined\] Call to cancel Russian Language sessions of JuliaCon 2022](https://discourse.julialang.org/t/declined-call-to-cancel-russian-language-sessions-of-juliacon-2022/77203)

<div class="topic-metadata">

**Author:** [@MikaelSlevinsky](https://discourse.julialang.org/u/MikaelSlevinsky)\
**Replies:** 34\
**Last updated:** [March 2, 2022, 4:51pm UTC](https://discourse.julialang.org/t/declined-call-to-cancel-russian-language-sessions-of-juliacon-2022/77203 "2022-03-02T16:51:56Z")

</div>

I call on the organizers of JuliaCon 2022 and beyond to cancel all russian sessions until the status quo ante 2014 is restored in Ukraine. Today, it is reported that the russian federation carpet bombed civilians (indis…

---

## [Invoking a macro within the invocation of another macro](https://discourse.julialang.org/t/invoking-a-macro-within-the-invocation-of-another-macro/77313)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 0\
**Last updated:** [March 2, 2022, 4:20pm UTC](https://discourse.julialang.org/t/invoking-a-macro-within-the-invocation-of-another-macro/77313 "2022-03-02T16:20:58Z")

</div>

I’m still having trouble with Julia macros. I’ve defined some structs for implementing BNF grammars. I want my grammars to capture source locations. to this end, I’m trying to define a macro with which to wrap each st…

---

## [Different calculation results when using CPU vs. GPU with CUDA.jl](https://discourse.julialang.org/t/different-calculation-results-when-using-cpu-vs-gpu-with-cuda-jl/77150)

<div class="topic-metadata">

**Author:** [@Mari](https://discourse.julialang.org/u/Mari)\
**Replies:** 2\
**Last updated:** [March 2, 2022, 4:14pm UTC](https://discourse.julialang.org/t/different-calculation-results-when-using-cpu-vs-gpu-with-cuda-jl/77150 "2022-03-02T16:14:29Z")

</div>

Hi everyone, I am rather new to GPU programming and I am having difficulty understanding why I get different results when running a function on GPU vs. CPU. The function involves atomic operation, and even running it on…

---

## [Heatmap get scrambled](https://discourse.julialang.org/t/heatmap-get-scrambled/77292)

<div class="topic-metadata">

**Author:** [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Replies:** 5\
**Last updated:** [March 2, 2022, 3:50pm UTC](https://discourse.julialang.org/t/heatmap-get-scrambled/77292 "2022-03-02T15:50:55Z")

</div>

When I try to implement a solution from my last question, I run into new problems: p1 and p2 (generated below) result in two completely different plots. I expected that they would look very similar except for the fact th…

---

## [MKL slower than openblas in intel cpu](https://discourse.julialang.org/t/mkl-slower-than-openblas-in-intel-cpu/77169)

<div class="topic-metadata">

**Author:** [@Jae-Mo\_Lihm](https://discourse.julialang.org/u/Jae-Mo_Lihm)\
**Replies:** 7\
**Last updated:** [March 2, 2022, 3:48pm UTC](https://discourse.julialang.org/t/mkl-slower-than-openblas-in-intel-cpu/77169 "2022-03-02T15:48:01Z")

</div>

I found MKL is ~1.5 times slower than openblas for matrix-matrix multiplication (both without multithreading). Since I’m using intel CPU, I expected MKL to be faster. Is there anything obviously wrong in this benchmark?…

---

## [Varargs and type aliasing](https://discourse.julialang.org/t/varargs-and-type-aliasing/77089)

<div class="topic-metadata">

**Author:** [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Replies:** 9\
**Last updated:** [March 2, 2022, 3:31pm UTC](https://discourse.julialang.org/t/varargs-and-type-aliasing/77089 "2022-03-02T15:31:06Z")

</div>

I tried to create a type alias of Vararg (with a specific number of arguments) as follows. const FormArgs{K,D} = Vararg{StaticVector{D}, K} However, if I try FormArgs{3,2} it does not produce Vararg{StaticVector{2},3} …

---

## [Performance of using CartesianIndices with MArray](https://discourse.julialang.org/t/performance-of-using-cartesianindices-with-marray/77167)

<div class="topic-metadata">

**Author:** [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Replies:** 2\
**Last updated:** [March 2, 2022, 3:29pm UTC](https://discourse.julialang.org/t/performance-of-using-cartesianindices-with-marray/77167 "2022-03-02T15:29:10Z")

</div>

Multidimensional algorithms built on CartesianIndices seem to have significant performance overhead when applied to StaticArrays.MArray​s, but not regular Array​s. Writing several functions with nested loops for differe…

---

## [KNITRO.jl cannot be added with latest JuMP, MathOptInterface](https://discourse.julialang.org/t/knitro-jl-cannot-be-added-with-latest-jump-mathoptinterface/77290)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [March 2, 2022, 2:50pm UTC](https://discourse.julialang.org/t/knitro-jl-cannot-be-added-with-latest-jump-mathoptinterface/77290 "2022-03-02T14:50:30Z")

</div>

Dear All, If I try to install KNITRO add KNITRO it downgrades JuMP and MathoptInterface Resolving package versions... Installed BinaryProvider ───── v0.5.10 Installed MutableArithmetics ─ v0.3.3 Installed …

---

## [Typos in Julia](https://discourse.julialang.org/t/typos-in-julia/77267)

<div class="topic-metadata">

**Author:** [@ameresv](https://discourse.julialang.org/u/ameresv)\
**Replies:** 3\
**Last updated:** [March 2, 2022, 2:19pm UTC](https://discourse.julialang.org/t/typos-in-julia/77267 "2022-03-02T14:19:41Z")

</div>

This could be a silly question, but why this -\> is accepted and → does not? The latter does really help me in the readability of my code and, in my case, is obtained with alt + 26. Is there a future development on it? …

---

## [GLM/FixedEffectModels Error: expansion cannot be computed](https://discourse.julialang.org/t/glm-fixedeffectmodels-error-expansion-cannot-be-computed/77030)

<div class="topic-metadata">

**Author:** [@Shresth-Garg](https://discourse.julialang.org/u/Shresth-Garg)\
**Replies:** 12\
**Last updated:** [March 2, 2022, 1:53pm UTC](https://discourse.julialang.org/t/glm-fixedeffectmodels-error-expansion-cannot-be-computed/77030 "2022-03-02T13:53:49Z")

</div>

I recently updated my Julia setup to 1.7.2, along with updating all the packages. I am getting a strange error when running a linear model under both GLM and FixedEffectModels. I get this error only on some specification…

---

## [Extracting elements from dictionary containing a struct, where the struct is made up of a dictionary containing a nested struct](https://discourse.julialang.org/t/extracting-elements-from-dictionary-containing-a-struct-where-the-struct-is-made-up-of-a-dictionary-containing-a-nested-struct/77288)

<div class="topic-metadata">

**Author:** [@Christian\_Brunbjerg](https://discourse.julialang.org/u/Christian_Brunbjerg)\
**Replies:** 6\
**Last updated:** [March 2, 2022, 1:48pm UTC](https://discourse.julialang.org/t/extracting-elements-from-dictionary-containing-a-struct-where-the-struct-is-made-up-of-a-dictionary-containing-a-nested-struct/77288 "2022-03-02T13:48:24Z")

</div>

\#Initializing the 2 structs struct inner value::Float64 end struct outer inner::Any end #Initializing the 2 dictionaries outer\_dic = Dict() inner\_dic = Dict() #Defining the values for the inner dictionary inne…

---

## [New Package: SlackSDK](https://discourse.julialang.org/t/new-package-slacksdk/77300)

<div class="topic-metadata">

**Author:** [@avik](https://discourse.julialang.org/u/avik)\
**Replies:** 0\
**Last updated:** [March 2, 2022, 1:28pm UTC](https://discourse.julialang.org/t/new-package-slacksdk/77300 "2022-03-02T13:28:08Z")

</div>

I thought some of you would be interested in a recent weekend project of mine: SlackSDK.jl There are a few other Julia projects out there that interface with Slack, but most of them seem to implement a small set of func…

---

## [Why doesn't FixedPointNumbers.jl allow comparison with integers?](https://discourse.julialang.org/t/why-doesnt-fixedpointnumbers-jl-allow-comparison-with-integers/77214)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 3\
**Last updated:** [March 2, 2022, 1:18pm UTC](https://discourse.julialang.org/t/why-doesnt-fixedpointnumbers-jl-allow-comparison-with-integers/77214 "2022-03-02T13:18:59Z")

</div>

I am using FixedPointNumbers.jl to implement an approximation algorithm, and I have been running into the following issue: julia\> using FixedPointNumbers julia\> FP = Fixed{Int16, 4} Q11f4 (alias for Fixed{Int16, 4}) jul…

---

## [\`show\` method for \`Function\` subtype](https://discourse.julialang.org/t/show-method-for-function-subtype/77297)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 12:32pm UTC](https://discourse.julialang.org/t/show-method-for-function-subtype/77297 "2022-03-02T12:32:08Z")

</div>

julia\> struct MyFunction \<: Function x end julia\> (f::MyFunction)(arg) = f.x\*arg julia\> Base.show(io::IO, f::MyFunction) = println(io, "MyFunction with x=$(f.x)") julia\> f = MyFunction(3) (::My…

---

## [Modify custom solver to deal with multidimensional arrays](https://discourse.julialang.org/t/modify-custom-solver-to-deal-with-multidimensional-arrays/74845)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 10\
**Last updated:** [March 2, 2022, 11:57am UTC](https://discourse.julialang.org/t/modify-custom-solver-to-deal-with-multidimensional-arrays/74845 "2022-03-02T11:57:59Z")

</div>

Some time ago @longemen3000 shared with me his custom nl equation solver written with NLSolvers here. It works well when the system is provided as a vector. I tried to modify it to accept systems provided with multidimen…

---

## [Heatmap with irregularly spaced grids](https://discourse.julialang.org/t/heatmap-with-irregularly-spaced-grids/77259)

<div class="topic-metadata">

**Author:** [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Replies:** 9\
**Last updated:** [March 2, 2022, 10:59am UTC](https://discourse.julialang.org/t/heatmap-with-irregularly-spaced-grids/77259 "2022-03-02T10:59:03Z")

</div>

I’m trying to create a figure with two heatmaps where the x and y variables are irregularly spaced, the scale of the colors are the same in both heatmaps, and there is only one colorbar. In Python, I would do import …

---

## [Adding Guide.manual\_color\_key to Geom.ribbon plot with hex codes](https://discourse.julialang.org/t/adding-guide-manual-color-key-to-geom-ribbon-plot-with-hex-codes/77281)

<div class="topic-metadata">

**Author:** [@colebrookson](https://discourse.julialang.org/u/colebrookson)\
**Replies:** 1\
**Last updated:** [March 2, 2022, 10:29am UTC](https://discourse.julialang.org/t/adding-guide-manual-color-key-to-geom-ribbon-plot-with-hex-codes/77281 "2022-03-02T10:29:40Z")

</div>

I’m assuming I’m just missing something, but I can’t find how to do this in the docs. Say I have a plot from the following data using DataFrames, Gadfly, Distributions # make some data x = range(0, 2π, length=100) y1…

---

## [Mapreduce with broadcasting](https://discourse.julialang.org/t/mapreduce-with-broadcasting/77053)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 9\
**Last updated:** [March 2, 2022, 10:28am UTC](https://discourse.julialang.org/t/mapreduce-with-broadcasting/77053 "2022-03-02T10:28:50Z")

</div>

I want to perform a mapreduce over multiple iterators that don’t have the same dimensions, but which can be broadcast together. For example: arr1 = rand(1, 1, 3) arr2 = rand(100, 100, 1) mapreduce(+, \*, arr1, arr2; dim…

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

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