# Latest

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

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

**Page:** 1195

---

## [Strange error when enabling multiple threads](https://discourse.julialang.org/t/strange-error-when-enabling-multiple-threads/72208)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [November 28, 2021, 8:22pm UTC](https://discourse.julialang.org/t/strange-error-when-enabling-multiple-threads/72208 "2021-11-28T20:22:40Z")

</div>

I have some code that fails with " ERROR: UndefVarError: T not defined" when I run julia with multiple threads and works fine otherwise. The complete details can be found in https://github.com/invenia/Impute.jl/issues/1…

---

## [Dropping Github history from a published package](https://discourse.julialang.org/t/dropping-github-history-from-a-published-package/72172)

<div class="topic-metadata">

**Author:** [@goedman](https://discourse.julialang.org/u/goedman)\
**Replies:** 14\
**Last updated:** [November 28, 2021, 7:35pm UTC](https://discourse.julialang.org/t/dropping-github-history-from-a-published-package/72172 "2021-11-28T19:35:12Z")

</div>

Someone kindly pointed out to me that my package StatisticalRethinking.jl is severely bloated. It contains more than 1Gb of garbage in the .git/objects/pack directory (multiple copies of a few pretty old iJulia notebook …

---

## [Adjusting the height of Colorbar in Makie.jl](https://discourse.julialang.org/t/adjusting-the-height-of-colorbar-in-makie-jl/72206)

<div class="topic-metadata">

**Author:** [@mmkim1210](https://discourse.julialang.org/u/mmkim1210)\
**Replies:** 1\
**Last updated:** [November 28, 2021, 6:16pm UTC](https://discourse.julialang.org/t/adjusting-the-height-of-colorbar-in-makie-jl/72206 "2021-11-28T18:16:24Z")

</div>

Would it be possible to customize the height of colorbar in Makie? I have noticed that width can be adjusted, but how about height? Thank you.

---

## [Inner repeat without allocations](https://discourse.julialang.org/t/inner-repeat-without-allocations/72204)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 5:40pm UTC](https://discourse.julialang.org/t/inner-repeat-without-allocations/72204 "2021-11-28T17:40:46Z")

</div>

I want to achieve the effect of the following code: X = randn(1000, 1000) Y = zeros(2000, 2000) Y .= repeat(X, inner=(2,2)) The first two lines are just initialization. I would like the third line to run without alloc…

---

## [Blurred Plot in side panel](https://discourse.julialang.org/t/blurred-plot-in-side-panel/72006)

<div class="topic-metadata">

**Author:** [@zmoitier](https://discourse.julialang.org/u/zmoitier)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 3:38pm UTC](https://discourse.julialang.org/t/blurred-plot-in-side-panel/72006 "2021-11-28T15:38:55Z")

</div>

The plot inside vscode are blurred / fuzzy. If I take the documentation example: using Plots x = 1:10; y = rand(10); # These are the plotting data plot(x, y, label = "my label") I get the following print screen: Y…

---

## [Element-wise operations in Tullio.jl on GPU](https://discourse.julialang.org/t/element-wise-operations-in-tullio-jl-on-gpu/72186)

<div class="topic-metadata">

**Author:** [@cuihantao](https://discourse.julialang.org/u/cuihantao)\
**Replies:** 2\
**Last updated:** [November 28, 2021, 3:34pm UTC](https://discourse.julialang.org/t/element-wise-operations-in-tullio-jl-on-gpu/72186 "2021-11-28T15:34:47Z")

</div>

Hello, I wonder what is the correct way to implement element-wise operations in Tullio.jl on GPU. The MWE is as follows: using CUDA, Tullio using BenchmarkTools mul(A, B, C) = @tullio C\[k\] = A\[k\] \* B\[k\] a = rand(8000…

---

## [How do (long held) security concerns in Python’s \`pip\` relate to Julia’s \`Pkg\`?](https://discourse.julialang.org/t/how-do-long-held-security-concerns-in-python-s-pip-relate-to-julia-s-pkg/72198)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 3:00pm UTC](https://discourse.julialang.org/t/how-do-long-held-security-concerns-in-python-s-pip-relate-to-julia-s-pkg/72198 "2021-11-28T15:00:41Z")

</div>

I’ve learned that, for a while, folks have noted some security concerns with Python’s pip because packages can execute code arbitrarily on install. I believe Julia’s Pkg can also execute code arbitrarily on install thro…

---

## [How do Julia Core developers work?](https://discourse.julialang.org/t/how-do-julia-core-developers-work/72195)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 2\
**Last updated:** [November 28, 2021, 2:36pm UTC](https://discourse.julialang.org/t/how-do-julia-core-developers-work/72195 "2021-11-28T14:36:52Z")

</div>

Hi, I am curious to know how Julia Core developers work when they want to fix a bug (can be specific to an OS) or add a new feature to Julia? I am aware of all the CI and tools to build and test Julia on various platfo…

---

## [Failed Process Running a Binary File (solidity compiler)](https://discourse.julialang.org/t/failed-process-running-a-binary-file-solidity-compiler/72170)

<div class="topic-metadata">

**Author:** [@tlorans](https://discourse.julialang.org/u/tlorans)\
**Replies:** 2\
**Last updated:** [November 28, 2021, 1:16pm UTC](https://discourse.julialang.org/t/failed-process-running-a-binary-file-solidity-compiler/72170 "2021-11-28T13:16:26Z")

</div>

Hello, I’m trying to build a version management tool for the solidity compiler solc in Julia, and, while the process seems to work properly, I’ve got a curious warning message at then end of the process. Here a MWE: u…

---

## [Unstable learning of neural net with few nodes using Flux](https://discourse.julialang.org/t/unstable-learning-of-neural-net-with-few-nodes-using-flux/72115)

<div class="topic-metadata">

**Author:** [@Handam](https://discourse.julialang.org/u/Handam)\
**Replies:** 9\
**Last updated:** [November 28, 2021, 10:18am UTC](https://discourse.julialang.org/t/unstable-learning-of-neural-net-with-few-nodes-using-flux/72115 "2021-11-28T10:18:38Z")

</div>

I have a neural network with only one binary input node, one hidden layer and one output node. When I try to train the network, such that it outputs the value x\_1 when the input is 0 and x\_2 when the input is 1, it will …

---

## [SQLite, DataFrame and Missing](https://discourse.julialang.org/t/sqlite-dataframe-and-missing/72171)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 8:25am UTC](https://discourse.julialang.org/t/sqlite-dataframe-and-missing/72171 "2021-11-28T08:25:19Z")

</div>

Hello Julia is wonderful, but this got me stymied I am reading a sqlite table into a dataframe, where one column is r real and all values are missing. I use df=DBInterface.execute(db, sql) |\> DataFrame; and get df…

---

## [\`something\` function is not that much useful with eager args eval, what about a macro one?](https://discourse.julialang.org/t/something-function-is-not-that-much-useful-with-eager-args-eval-what-about-a-macro-one/72188)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 6:53am UTC](https://discourse.julialang.org/t/something-function-is-not-that-much-useful-with-eager-args-eval-what-about-a-macro-one/72188 "2021-11-28T06:53:20Z")

</div>

It’s more of an ifelse, since all its args are eagerly evaluated (think & vs &&, and why there is not an and function equivalent to &&). Use on real code™ can lead to significant penalty, if “else clause” args are comput…

---

## [Integrated table viewer questions](https://discourse.julialang.org/t/integrated-table-viewer-questions/72187)

<div class="topic-metadata">

**Author:** [@PeteS](https://discourse.julialang.org/u/PeteS)\
**Replies:** 0\
**Last updated:** [November 28, 2021, 5:58am UTC](https://discourse.julialang.org/t/integrated-table-viewer-questions/72187 "2021-11-28T05:58:06Z")

</div>

The integrated table viewer is great, many thanks to those involved. A couple of queries. I invoke it with vscodedisplay(mytable, "mytitle") and the tab reads Julia Table: mytitle. Is there any way I can remove/replac…

---

## [Smoothing over date axis in AlgebraOfGraphics](https://discourse.julialang.org/t/smoothing-over-date-axis-in-algebraofgraphics/72152)

<div class="topic-metadata">

**Author:** [@sleak](https://discourse.julialang.org/u/sleak)\
**Replies:** 2\
**Last updated:** [November 28, 2021, 5:22am UTC](https://discourse.julialang.org/t/smoothing-over-date-axis-in-algebraofgraphics/72152 "2021-11-28T05:22:12Z")

</div>

I have a bunch of observations (date on x-axis, weight on y-axis) that I want to plot a trend line through. Using DataFrames and AlgebraOfGraphics I can plot the individual points: using AlgebraOfGraphics using CairoMak…

---

## [Appending trailing slashes to paths](https://discourse.julialang.org/t/appending-trailing-slashes-to-paths/15922)

<div class="topic-metadata">

**Author:** [@fbruetting](https://discourse.julialang.org/u/fbruetting)\
**Replies:** 24\
**Last updated:** [November 28, 2021, 2:07am UTC](https://discourse.julialang.org/t/appending-trailing-slashes-to-paths/15922 "2021-11-28T02:07:08Z")

</div>

Won’t it be useful to always append trailing slashes to paths for all core path functions? We then would see at first glance if a path leads to a directory or a file. When you see for example ~/config, you can’t tell if …

---

## [PyPlot on macOS Monterey with M1](https://discourse.julialang.org/t/pyplot-on-macos-monterey-with-m1/72185)

<div class="topic-metadata">

**Author:** [@George9000](https://discourse.julialang.org/u/George9000)\
**Replies:** 0\
**Last updated:** [November 27, 2021, 11:53pm UTC](https://discourse.julialang.org/t/pyplot-on-macos-monterey-with-m1/72185 "2021-11-27T23:53:56Z")

</div>

While trying out Fatou.jl, I had difficulty getting PyPlot to work on an M1 Mac. Here is the environement and steps that got things working. Python I am not using Conda. I did follow directions here to set things up on …

---

## [Announcing: package download stats!](https://discourse.julialang.org/t/announcing-package-download-stats/69073)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 44\
**Last updated:** [November 27, 2021, 11:45pm UTC](https://discourse.julialang.org/t/announcing-package-download-stats/69073 "2021-11-27T23:45:29Z")

</div>

After some years of getting the package server architecture in place and working (mostly) reliably, @staticfloat and I finally had some time to work on collecting logs into a data warehouse (we’re using Snowflake) and de…

---

## [NLopt:FORCED\_STOP for vector-valued constraint](https://discourse.julialang.org/t/nlopt-forced-stop-for-vector-valued-constraint/72117)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 1\
**Last updated:** [November 27, 2021, 11:00pm UTC](https://discourse.julialang.org/t/nlopt-forced-stop-for-vector-valued-constraint/72117 "2021-11-27T23:00:22Z")

</div>

The following code tries to solve Ax = b subject to x \>= 0 using the NLopt package. using NLopt A = \[0.0372 0.2869; 0.6861 0.7071; 0.6233 0.6245; 0.6344 0.6170\] b = \[0.8587; 0.1781; 0.0747; 0.8405\] function myfunc(x::Ve…

---

## [Custom rrule for Feedback Alignment](https://discourse.julialang.org/t/custom-rrule-for-feedback-alignment/72159)

<div class="topic-metadata">

**Author:** [@Rasmus\_Hoier](https://discourse.julialang.org/u/Rasmus_Hoier)\
**Replies:** 2\
**Last updated:** [November 27, 2021, 8:10pm UTC](https://discourse.julialang.org/t/custom-rrule-for-feedback-alignment/72159 "2021-11-27T20:10:36Z")

</div>

Hi, I am trying to use a custom rrule to implement Feedback Alignment learning (which is just like BP except that the error signals are propagated backwards using random feedback weights B, which is supposed to be more …

---

## [Summing a vector of vectors in a non-allocating way](https://discourse.julialang.org/t/summing-a-vector-of-vectors-in-a-non-allocating-way/72161)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 10\
**Last updated:** [November 27, 2021, 7:57pm UTC](https://discourse.julialang.org/t/summing-a-vector-of-vectors-in-a-non-allocating-way/72161 "2021-11-27T19:57:57Z")

</div>

What’s going wrong here, I get a DimensionMismatch error when I run this: input = repeat(\[ones(2)\], 4) output = zeros(2) sum(input) # Gives a 2-element Vector{Float64} sum!(output, input) # Gives a DimensionMismatch err…

---

## [Pandas dataframe convert to Array](https://discourse.julialang.org/t/pandas-dataframe-convert-to-array/72178)

<div class="topic-metadata">

**Author:** [@libensvivit](https://discourse.julialang.org/u/libensvivit)\
**Replies:** 4\
**Last updated:** [November 27, 2021, 7:23pm UTC](https://discourse.julialang.org/t/pandas-dataframe-convert-to-array/72178 "2021-11-27T19:23:52Z")

</div>

using Pandas using Plots: plot df = read\_table("M.out/table.txt") x = Array(df\["# t (s)"\]) plot(x, Array(df\["mx ()"\])) plot!(x, Array(df\["my ()"\])) plot!(x, Array(df\["mz ()"\])) In this code is there a way to reconst…

---

## [How to read gif image files in Julia?](https://discourse.julialang.org/t/how-to-read-gif-image-files-in-julia/72177)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 1\
**Last updated:** [November 27, 2021, 6:49pm UTC](https://discourse.julialang.org/t/how-to-read-gif-image-files-in-julia/72177 "2021-11-27T18:49:58Z")

</div>

How to read gif image files in Julia?

---

## [Why no := operator for initializing variables](https://discourse.julialang.org/t/why-no-operator-for-initializing-variables/62949)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 39\
**Last updated:** [November 27, 2021, 6:17pm UTC](https://discourse.julialang.org/t/why-no-operator-for-initializing-variables/62949 "2021-11-27T18:17:11Z")

</div>

Hi, I have been wondering if there is a reason for not making for not making the initialization of variables explicit. I think this is done very elegantly in golang with the “:=” operator. Like this one would know exact…

---

## [Why macro instead of a function?](https://discourse.julialang.org/t/why-macro-instead-of-a-function/72154)

<div class="topic-metadata">

**Author:** [@cesarmarinhorj](https://discourse.julialang.org/u/cesarmarinhorj)\
**Replies:** 3\
**Last updated:** [November 27, 2021, 2:42pm UTC](https://discourse.julialang.org/t/why-macro-instead-of-a-function/72154 "2021-11-27T14:42:23Z")

</div>

why @sprintf instead of sprintf?

---

## [PostDoc position: Machine Learning in Global Socioeconomic Data](https://discourse.julialang.org/t/postdoc-position-machine-learning-in-global-socioeconomic-data/72164)

<div class="topic-metadata">

**Author:** [@mafla](https://discourse.julialang.org/u/mafla)\
**Replies:** 0\
**Last updated:** [November 27, 2021, 1:04pm UTC](https://discourse.julialang.org/t/postdoc-position-machine-learning-in-global-socioeconomic-data/72164 "2021-11-27T13:04:30Z")

</div>

Dear Julia community, we am looking for a postdoctoral researcher to work with us on Machine Learning in Global Socioeconomic Data. We are a newly established Research Center for Earth System Research at Leipzig Univers…

---

## [PostDoc position: Machine Learning for understanding Earth System processes](https://discourse.julialang.org/t/postdoc-position-machine-learning-for-understanding-earth-system-processes/72162)

<div class="topic-metadata">

**Author:** [@mafla](https://discourse.julialang.org/u/mafla)\
**Replies:** 0\
**Last updated:** [November 27, 2021, 12:53pm UTC](https://discourse.julialang.org/t/postdoc-position-machine-learning-for-understanding-earth-system-processes/72162 "2021-11-27T12:53:57Z")

</div>

Hi there, I am looking for a PostDoc (or outstanding PhD student) to work with us on Machine Learning for understanding Earth System processes. We are a newly established Research Center for Earth System Research at Leip…

---

## [Complex step differentiation method explained](https://discourse.julialang.org/t/complex-step-differentiation-method-explained/14647)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 8\
**Last updated:** [November 27, 2021, 11:33am UTC](https://discourse.julialang.org/t/complex-step-differentiation-method-explained/14647 "2021-11-27T11:33:20Z")

</div>

I wrote a brief post explaining the “complex step method” that was the first topic in Nick Higham’s JuliaCon 2018 talk. (Using Julia for demonstrations, of course !)

---

## [\[support\] Pytorch for Julia](https://discourse.julialang.org/t/support-pytorch-for-julia/46211)

<div class="topic-metadata">

**Author:** [@newtojulia](https://discourse.julialang.org/u/newtojulia)\
**Replies:** 10\
**Last updated:** [November 27, 2021, 11:18am UTC](https://discourse.julialang.org/t/support-pytorch-for-julia/46211 "2021-11-27T11:18:27Z")

</div>

Is there any Pytorch framework in Julia.

---

## [Sciml\_train with BFGS() (post-training with ADAM)causes following error](https://discourse.julialang.org/t/sciml-train-with-bfgs-post-training-with-adam-causes-following-error/71635)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 6\
**Last updated:** [November 27, 2021, 10:59am UTC](https://discourse.julialang.org/t/sciml-train-with-bfgs-post-training-with-adam-causes-following-error/71635 "2021-11-27T10:59:01Z")

</div>

I am able to minimize the loss using ADAM to some extent… but here is the error i get after I try to reduce it using BFGS(). Any ideas on how to resolve this ? Warning: AD methods failed, using numerical differentiat…

---

## [Solving complex differential equation gives MethodError](https://discourse.julialang.org/t/solving-complex-differential-equation-gives-methoderror/72145)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 1\
**Last updated:** [November 27, 2021, 10:47am UTC](https://discourse.julialang.org/t/solving-complex-differential-equation-gives-methoderror/72145 "2021-11-27T10:47:56Z")

</div>

The following code tries to solve the complex ODE y’ = (0.3 + it)sin(y)/v with y(-5) = 0.53 + 0.3i. using DifferentialEquations function sysDEUD!(dΦdξ, Φ, p, ξ) ν, x₀ = p η = x₀ + im\*ξ dΦdξ\[1\] = η\*sin(Φ)/ν e…

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

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