# Latest

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

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

**Page:** 1553

---

## [Array indexing with begin](https://discourse.julialang.org/t/array-indexing-with-begin/51495)

<div class="topic-metadata">

**Author:** [@OlivierHnt](https://discourse.julialang.org/u/OlivierHnt)\
**Replies:** 2\
**Last updated:** [December 9, 2020, 4:52am UTC](https://discourse.julialang.org/t/array-indexing-with-begin/51495 "2020-12-09T04:52:18Z")

</div>

I ran into the following (Julia v1.5.3): julia\> A = rand(2,2); julia\> Meta.@lower A\[end,1\] :($(Expr(:thunk, CodeInfo( @ none within \`top-level scope' 1 ─ %1 = Base.lastindex(A, 1) │ %2 = Base.getindex(A, %1, 1) └…

---

## [Piping into an external program from Julia output](https://discourse.julialang.org/t/piping-into-an-external-program-from-julia-output/42691)

<div class="topic-metadata">

**Author:** [@nstgc](https://discourse.julialang.org/u/nstgc)\
**Replies:** 16\
**Last updated:** [December 8, 2020, 9:24pm UTC](https://discourse.julialang.org/t/piping-into-an-external-program-from-julia-output/42691 "2020-12-08T21:24:48Z")

</div>

What I’m trying to do is process a bunch of files with a Julia function, which then is fed into an external program, and fed again into a Julia function. So basically func1(file) | run(\`CMD\`) |func2(stdin) which made …

---

## [Quick debugging using println?](https://discourse.julialang.org/t/quick-debugging-using-println/51398)

<div class="topic-metadata">

**Author:** [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Replies:** 11\
**Last updated:** [December 8, 2020, 9:31pm UTC](https://discourse.julialang.org/t/quick-debugging-using-println/51398 "2020-12-08T21:31:06Z")

</div>

Hi there, I have noticed that using println within a function (for quick debugging) doesn’t work in Jupyter Notebook. Nothing is printed in the output cell. So what is an idiomatic way in Julia to match the functionali…

---

## [Creating some neural networks](https://discourse.julialang.org/t/creating-some-neural-networks/50958)

<div class="topic-metadata">

**Author:** [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Replies:** 11\
**Last updated:** [December 8, 2020, 8:36pm UTC](https://discourse.julialang.org/t/creating-some-neural-networks/50958 "2020-12-08T20:36:50Z")

</div>

Hello guys, i am getting really desperate. For my bachelor thesis i need to create simple MLP classifying anything, simple MLP for MNIST, simple CNN for MNIST and simple LSTM/GRU network. I am really close to deadline a…

---

## [Installing Pluto: Precompiling failed](https://discourse.julialang.org/t/installing-pluto-precompiling-failed/50426)

<div class="topic-metadata">

**Author:** [@SnowLeopard](https://discourse.julialang.org/u/SnowLeopard)\
**Replies:** 3\
**Last updated:** [November 19, 2020, 4:20pm UTC](https://discourse.julialang.org/t/installing-pluto-precompiling-failed/50426 "2020-11-19T16:20:47Z")

</div>

Hi everyone, I’m trying to install Pluto following 18.S191 Introduction to Computational Thinking After “import Pluto” I get the following errors: ERROR: LoadError: InitError: could not load library "C:\\Users\\ThisUser…

---

## [Problem Adding a dimesion to array/vector](https://discourse.julialang.org/t/problem-adding-a-dimesion-to-array-vector/51431)

<div class="topic-metadata">

**Author:** [@lorrp1](https://discourse.julialang.org/u/lorrp1)\
**Replies:** 7\
**Last updated:** [December 8, 2020, 8:01pm UTC](https://discourse.julialang.org/t/problem-adding-a-dimesion-to-array-vector/51431 "2020-12-08T20:01:15Z")

</div>

Hello, i have a Vector{Any} with 25701 elements made of: 100×40 Array{Float64,2} id like to add a dimension to it so from 25701 \* 100 \* 40\*1 i have tried like written here https://stackoverflow.com/questions/4231231…

---

## [Artifacts, package updating, and system libraries (Julia 1.5.2)](https://discourse.julialang.org/t/artifacts-package-updating-and-system-libraries-julia-1-5-2/51468)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 5\
**Last updated:** [December 8, 2020, 6:32pm UTC](https://discourse.julialang.org/t/artifacts-package-updating-and-system-libraries-julia-1-5-2/51468 "2020-12-08T18:32:54Z")

</div>

When I do \] up, I see a lot of artifacts corresponding to downloads of libraries that already exist on my FreeBSD 12 system. Thus it seems that the package system is becoming more and more heavy-weight. Being a user, I …

---

## [Packages for interval and radius of power series](https://discourse.julialang.org/t/packages-for-interval-and-radius-of-power-series/51230)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 24\
**Last updated:** [December 8, 2020, 6:06pm UTC](https://discourse.julialang.org/t/packages-for-interval-and-radius-of-power-series/51230 "2020-12-08T18:06:14Z")

</div>

What packages exist for studying power series(not sure the plural)? I’m trying to find the formula that originated the series, as well as the radius and interval of convergence.

---

## [\[ANN\] Oceananigans.jl: Fast and friendly fluid dynamics on CPUs and GPUs](https://discourse.julialang.org/t/ann-oceananigans-jl-fast-and-friendly-fluid-dynamics-on-cpus-and-gpus/51459)

<div class="topic-metadata">

**Author:** [@PolarizedPoutine](https://discourse.julialang.org/u/PolarizedPoutine)\
**Replies:** 0\
**Last updated:** [December 8, 2020, 1:44pm UTC](https://discourse.julialang.org/t/ann-oceananigans-jl-fast-and-friendly-fluid-dynamics-on-cpus-and-gpus/51459 "2020-12-08T13:44:40Z")

</div>

Oceananigans.jl is a fast and friendly package for three-dimensional incompressible fluid dynamics on regular grids that features Fast, pure Julia GPU and multi-threaded execution (thanks to @vchuravy for KernelAbstrac…

---

## [How to flush stdout](https://discourse.julialang.org/t/how-to-flush-stdout/10146)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 3\
**Last updated:** [December 8, 2020, 5:29pm UTC](https://discourse.julialang.org/t/how-to-flush-stdout/10146 "2020-12-08T17:29:48Z")

</div>

I have a Julia script that has a bunch of println statements interleaved some heavy computation functions. I typically run such scripts, redirect to a file, and then do tail -f to see what’s going on. It appears that t…

---

## [Use a certain branch of a package dependency for Github Actions CI](https://discourse.julialang.org/t/use-a-certain-branch-of-a-package-dependency-for-github-actions-ci/51452)

<div class="topic-metadata">

**Author:** [@corbat](https://discourse.julialang.org/u/corbat)\
**Replies:** 1\
**Last updated:** [December 8, 2020, 12:48pm UTC](https://discourse.julialang.org/t/use-a-certain-branch-of-a-package-dependency-for-github-actions-ci/51452 "2020-12-08T12:48:12Z")

</div>

Hi, I’m currently trying to set up GitHub Actions CI for my (still dev) package. However, my package depends on the current master branch of another package (the last release is breaking compatibility). I could not fi…

---

## [Recursive function does not return last value](https://discourse.julialang.org/t/recursive-function-does-not-return-last-value/51469)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 4\
**Last updated:** [December 8, 2020, 4:17pm UTC](https://discourse.julialang.org/t/recursive-function-does-not-return-last-value/51469 "2020-12-08T16:17:17Z")

</div>

Hi, I wrote a custom algorithm to find the root of my equation (I know, there is much better out there, but my function is not differentiable and it s defined decreasing) Anyway, this is the algorithm. I would like to …

---

## [Thread-local \`Dict\` for each thread?](https://discourse.julialang.org/t/thread-local-dict-for-each-thread/51441)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 3\
**Last updated:** [December 8, 2020, 3:38pm UTC](https://discourse.julialang.org/t/thread-local-dict-for-each-thread/51441 "2020-12-08T15:38:49Z")

</div>

How can I change my code to go from using a single global Dict to having a different thread-local Dict for each thread? For example, suppose I have a package that looks like this: module MyModule const MYDICT = Dict{S…

---

## [Ternary operator if only syntax](https://discourse.julialang.org/t/ternary-operator-if-only-syntax/51443)

<div class="topic-metadata">

**Author:** [@Azzaare](https://discourse.julialang.org/u/Azzaare)\
**Replies:** 7\
**Last updated:** [December 8, 2020, 3:26pm UTC](https://discourse.julialang.org/t/ternary-operator-if-only-syntax/51443 "2020-12-08T15:26:43Z")

</div>

Hi there! Is there any good reason to not have an if only syntax available for ternary operator where the two following syntax would be equivalent: a ? b and a ? b : nothing ?

---

## [Pluto instalation problem](https://discourse.julialang.org/t/pluto-instalation-problem/51426)

<div class="topic-metadata">

**Author:** [@1119](https://discourse.julialang.org/u/1119)\
**Replies:** 2\
**Last updated:** [December 8, 2020, 2:44pm UTC](https://discourse.julialang.org/t/pluto-instalation-problem/51426 "2020-12-08T14:44:10Z")

</div>

Hi! I’m trying to install Pluto, following https://youtu.be/OOjKEgbt8AI . After the “add Pluto” command, a yellow warning appears reading “Warning: could not download http://pkg.julialang.org/registries.” Then it looks l…

---

## [\[Solved\] Time evaluation issue in a non-autonomous ODE](https://discourse.julialang.org/t/solved-time-evaluation-issue-in-a-non-autonomous-ode/51458)

<div class="topic-metadata">

**Author:** [@Wen-Wei\_Tseng](https://discourse.julialang.org/u/Wen-Wei_Tseng)\
**Replies:** 2\
**Last updated:** [December 8, 2020, 2:09pm UTC](https://discourse.julialang.org/t/solved-time-evaluation-issue-in-a-non-autonomous-ode/51458 "2020-12-08T14:09:22Z")

</div>

Hello everyone, I found a weird situation that a time-dependent parameter seemed to be ignored in my calcium dynamics model. After some trimming, I had an MWE here. Any suggestions/corrections are welcome. Edit: solved …

---

## [A differentiable and slicable 2D data structure for parameters?](https://discourse.julialang.org/t/a-differentiable-and-slicable-2d-data-structure-for-parameters/51405)

<div class="topic-metadata">

**Author:** [@kmaile](https://discourse.julialang.org/u/kmaile)\
**Replies:** 0\
**Last updated:** [December 7, 2020, 3:28pm UTC](https://discourse.julialang.org/t/a-differentiable-and-slicable-2d-data-structure-for-parameters/51405 "2020-12-07T15:28:36Z")

</div>

I am implementing neural architecture search methods in Julia. One class of them uses trainable architecture weights to learn the best option for each layer of the network. Each repeated cell within a network has N layer…

---

## [Bezier curve from python to julia](https://discourse.julialang.org/t/bezier-curve-from-python-to-julia/22630)

<div class="topic-metadata">

**Author:** [@Angela\_Mulenga](https://discourse.julialang.org/u/Angela_Mulenga)\
**Replies:** 2\
**Last updated:** [April 2, 2019, 1:01pm UTC](https://discourse.julialang.org/t/bezier-curve-from-python-to-julia/22630 "2019-04-02T13:01:42Z")

</div>

I have this bezier curve diagram I created in Python but i need to redo it in Julia. I looked up alot of articles but still couldn’t learn how to do it. Please help by commenting on how to do it. It can be a part of thi…

---

## [abspath("PackageName") in a subfolder expands to the wrong path](https://discourse.julialang.org/t/abspath-packagename-in-a-subfolder-expands-to-the-wrong-path/51447)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [December 8, 2020, 10:21am UTC](https://discourse.julialang.org/t/abspath-packagename-in-a-subfolder-expands-to-the-wrong-path/51447 "2020-12-08T10:21:35Z")

</div>

I have a package, BetaML, where I included in a subfolder “notebooks” some notebooks for documentation. If in these notebooks I run abspath("BetaML"), it expands to “/home/lobianco/.julia/dev/BetaML/notebooks/BetaML” (t…

---

## [Makie.jl - How to plot a colorlegend?](https://discourse.julialang.org/t/makie-jl-how-to-plot-a-colorlegend/46132)

<div class="topic-metadata">

**Author:** [@yosuga](https://discourse.julialang.org/u/yosuga)\
**Replies:** 1\
**Last updated:** [December 8, 2020, 9:37am UTC](https://discourse.julialang.org/t/makie-jl-how-to-plot-a-colorlegend/46132 "2020-12-08T09:37:47Z")

</div>

I’m trying to plot a colorlegend when its colorrang is (::Float64,::Float64). But this sample code doesn’t work. using Makie using FileIO using LinearAlgebra using AbstractPlotting r = LinRange(-20, 20, 500); # our v…

---

## [How to use \`Anonymous Function\` in \`Function Piping\`?](https://discourse.julialang.org/t/how-to-use-anonymous-function-in-function-piping/51392)

<div class="topic-metadata">

**Author:** [@KyleJT](https://discourse.julialang.org/u/KyleJT)\
**Replies:** 8\
**Last updated:** [December 8, 2020, 7:47am UTC](https://discourse.julialang.org/t/how-to-use-anonymous-function-in-function-piping/51392 "2020-12-08T07:47:24Z")

</div>

Currently, I’m learning the Function Piping. And I try to imitate the following example: julia\> 1:10 |\> sum |\> sqrt with function piping to realize my purpose: Step 1: Square each element in the list, Step 2: Sum the…

---

## [ModelingToolkit variable with Distributions.cdf()](https://discourse.julialang.org/t/modelingtoolkit-variable-with-distributions-cdf/51434)

<div class="topic-metadata">

**Author:** [@jmmm](https://discourse.julialang.org/u/jmmm)\
**Replies:** 4\
**Last updated:** [December 8, 2020, 3:36am UTC](https://discourse.julialang.org/t/modelingtoolkit-variable-with-distributions-cdf/51434 "2020-12-08T03:36:20Z")

</div>

Hi, I am new to Julia and trying out the ModelingToolking package. I have a basic understanding of the type system and the dynamic dispatch, but couldn’t figure out why this didn’t work. This works perfectly - almost m…

---

## [Julia + ESS + org-mode = ob-ess-julia](https://discourse.julialang.org/t/julia-ess-org-mode-ob-ess-julia/48491)

<div class="topic-metadata">

**Author:** [@fsantos](https://discourse.julialang.org/u/fsantos)\
**Replies:** 3\
**Last updated:** [December 8, 2020, 2:42am UTC](https://discourse.julialang.org/t/julia-ess-org-mode-ob-ess-julia/48491 "2020-12-08T02:42:33Z")

</div>

Hi there, Since the good old ob-julia is now orphaned, there was no real support for Julia within org-mode these days. I tried to fill this gap with a very light and simple Emacs package based on ESS: ob-ess-julia. It’s…

---

## [URLs Required for Julia 1.5 Package Manager](https://discourse.julialang.org/t/urls-required-for-julia-1-5-package-manager/51420)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 2\
**Last updated:** [December 8, 2020, 12:01am UTC](https://discourse.julialang.org/t/urls-required-for-julia-1-5-package-manager/51420 "2020-12-08T00:01:49Z")

</div>

Regarding the configuration of firewalls, what new URLs are required to reach the package management infrastructure that is used by Julia v1.5?

---

## [Do something when value is stated as top-level](https://discourse.julialang.org/t/do-something-when-value-is-stated-as-top-level/51427)

<div class="topic-metadata">

**Author:** [@circonflexe](https://discourse.julialang.org/u/circonflexe)\
**Replies:** 3\
**Last updated:** [December 7, 2020, 11:23pm UTC](https://discourse.julialang.org/t/do-something-when-value-is-stated-as-top-level/51427 "2020-12-07T23:23:24Z")

</div>

Is there any way to create a hook that is called when some values (say, values of a certain type) are stated as top-level? Perhaps by overloading the eval function?

---

## [Round values for dataset](https://discourse.julialang.org/t/round-values-for-dataset/51159)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 13\
**Last updated:** [December 7, 2020, 8:13pm UTC](https://discourse.julialang.org/t/round-values-for-dataset/51159 "2020-12-07T20:13:00Z")

</div>

x=1.000001 df=DataFrame(A=x) for i in 1:10 x=x+1 push!(df,(x)) end Is there a way to round this to say, 5 decimal places?, and to have that rounding thougout the dataframe?

---

## [Error in JuMP / dataframe: How to get rid of missing and replace with blanks in DataFrames?](https://discourse.julialang.org/t/error-in-jump-dataframe-how-to-get-rid-of-missing-and-replace-with-blanks-in-dataframes/51417)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 9\
**Last updated:** [December 7, 2020, 8:12pm UTC](https://discourse.julialang.org/t/error-in-jump-dataframe-how-to-get-rid-of-missing-and-replace-with-blanks-in-dataframes/51417 "2020-12-07T20:12:44Z")

</div>

I am running into an error and the error message suggests that the source is JuMP. But I think the source is missing reported in dataframe. I would like to get rid of missing so the dataframe shows those entries as blank…

---

## [@sync usage and better documentation for Asynchronous Programming](https://discourse.julialang.org/t/sync-usage-and-better-documentation-for-asynchronous-programming/51410)

<div class="topic-metadata">

**Author:** [@KaarthikSundar](https://discourse.julialang.org/u/KaarthikSundar)\
**Replies:** 1\
**Last updated:** [December 7, 2020, 7:50pm UTC](https://discourse.julialang.org/t/sync-usage-and-better-documentation-for-asynchronous-programming/51410 "2020-12-07T19:50:50Z")

</div>

I am trying to understand the usage of @sync and @async macros in Julia. I am trying to get this MWE to work and the program does not terminate. Any help is appreciated. function process\_node(nodes, id) @show id …

---

## [Plots: reducing subplot size](https://discourse.julialang.org/t/plots-reducing-subplot-size/51407)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 0\
**Last updated:** [December 7, 2020, 3:49pm UTC](https://discourse.julialang.org/t/plots-reducing-subplot-size/51407 "2020-12-07T15:49:45Z")

</div>

Hi, I’m making composed plots where the legend would be the same for each subplot. As such, I want only one legend for all plots and it would have to be next to the grid layout. At the moment I can only set label = "" f…

---

## [Release docs for non-registered package](https://discourse.julialang.org/t/release-docs-for-non-registered-package/51395)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 10\
**Last updated:** [December 7, 2020, 4:40pm UTC](https://discourse.julialang.org/t/release-docs-for-non-registered-package/51395 "2020-12-07T16:40:18Z")

</div>

I have some packages which I do not intend to register in the Julia general registry. However, they the complete package structure, and I would like to use the TagBot, Docs, etc, as if the package was registered. Is that…

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

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