# Latest

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

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

**Page:** 1239

---

## [Makie: fitting of x- or y-axes to visible data range?](https://discourse.julialang.org/t/makie-fitting-of-x-or-y-axes-to-visible-data-range/69758)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 2:25pm UTC](https://discourse.julialang.org/t/makie-fitting-of-x-or-y-axes-to-visible-data-range/69758 "2021-10-14T14:25:13Z")

</div>

How to optimally fit an x- or y-axis to visible data? (the automatic equivalent of manually x- or y-axis zooming) Related: How to get the minimum/maximum coordinates of visible zoomed in data?

---

## [The Julia Debugging Cheat Sheet](https://discourse.julialang.org/t/the-julia-debugging-cheat-sheet/69751)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 1\
**Last updated:** [October 14, 2021, 1:54pm UTC](https://discourse.julialang.org/t/the-julia-debugging-cheat-sheet/69751 "2021-10-14T13:54:00Z")

</div>

.. is yet to be made .. Experts/volunteers? Python Debugging Cheat Sheet found on Data Science Dojo auf Twitter: “#Python Debugging Cheat Sheet https://t.co/rWZ1i9RcA8” / Twitter

---

## [Is there any issue with https://juliastats.org?](https://discourse.julialang.org/t/is-there-any-issue-with-https-juliastats-org/69729)

<div class="topic-metadata">

**Author:** [@Naba7](https://discourse.julialang.org/u/Naba7)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 2:04pm UTC](https://discourse.julialang.org/t/is-there-any-issue-with-https-juliastats-org/69729 "2021-10-14T14:04:33Z")

</div>

I am finding it difficult to use any of the documentations for juliastats.org. Is this an internal issue or JuliaHub host issue?

---

## [Broadcasting a function on GPU](https://discourse.julialang.org/t/broadcasting-a-function-on-gpu/69694)

<div class="topic-metadata">

**Author:** [@lodygaw](https://discourse.julialang.org/u/lodygaw)\
**Replies:** 3\
**Last updated:** [October 14, 2021, 1:51pm UTC](https://discourse.julialang.org/t/broadcasting-a-function-on-gpu/69694 "2021-10-14T13:51:36Z")

</div>

Hi, I am looking for some advice on finding the most efficient way to parallelize my code on GPU. Let’s assume the simplified situation: struct MyOtherStruct1 end struct MyOtherStruct2 end struct MyStructType1 end str…

---

## [Does Julia have something equivalent to matlab's Cell Array?](https://discourse.julialang.org/t/does-julia-have-something-equivalent-to-matlabs-cell-array/69756)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 3\
**Last updated:** [October 14, 2021, 1:45pm UTC](https://discourse.julialang.org/t/does-julia-have-something-equivalent-to-matlabs-cell-array/69756 "2021-10-14T13:45:22Z")

</div>

I have 20 land/sea masks (gridded data at 360x180 degrees). I want to save them into a cell array called A. In Matlab I would do this: A{1} = grid1; A{2} = grid2; … How could I do the same thing in Julia, so that I c…

---

## [Body Mass Index (BMI) Calculator with Dash Julia](https://discourse.julialang.org/t/body-mass-index-bmi-calculator-with-dash-julia/69711)

<div class="topic-metadata">

**Author:** [@cepel](https://discourse.julialang.org/u/cepel)\
**Replies:** 0\
**Last updated:** [October 13, 2021, 6:37pm UTC](https://discourse.julialang.org/t/body-mass-index-bmi-calculator-with-dash-julia/69711 "2021-10-13T18:37:11Z")

</div>

Hey everyone! I developed a new Dash Julia application for body mass index (BMI) calculation. You can calculate BMI value and see the weight ranges. Feel free to review the codes on GitHub and ask me anything. Live on …

---

## [Parallel and distributed very slow](https://discourse.julialang.org/t/parallel-and-distributed-very-slow/69735)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 6\
**Last updated:** [October 14, 2021, 12:36pm UTC](https://discourse.julialang.org/t/parallel-and-distributed-very-slow/69735 "2021-10-14T12:36:20Z")

</div>

Hi ! I am trying to learn how to distribute or use parellel computing on CPU, I don’t understand why, it is slower that a sequential for… As I really do not understand why, I ask for your help, thank you using Benchmar…

---

## [Multilayer perceptron with multidimensional output array using Flux](https://discourse.julialang.org/t/multilayer-perceptron-with-multidimensional-output-array-using-flux/69747)

<div class="topic-metadata">

**Author:** [@FrootLoops](https://discourse.julialang.org/u/FrootLoops)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 12:50pm UTC](https://discourse.julialang.org/t/multilayer-perceptron-with-multidimensional-output-array-using-flux/69747 "2021-10-14T12:50:22Z")

</div>

Hi, I have some problems coding a multilayer perceptron using Flux. My data is given in the form D=(x\_i, y\_i)\_{i=1}^n where x\_i is a scalar and y\_i is a 3-dim vector . I want to train a neural network using flux. Due to…

---

## [Makie: Animation via Node() works with text(), but not with scatter()](https://discourse.julialang.org/t/makie-animation-via-node-works-with-text-but-not-with-scatter/28100)

<div class="topic-metadata">

**Author:** [@Arjen\_Suijker](https://discourse.julialang.org/u/Arjen_Suijker)\
**Replies:** 8\
**Last updated:** [October 14, 2021, 12:39pm UTC](https://discourse.julialang.org/t/makie-animation-via-node-works-with-text-but-not-with-scatter/28100 "2021-10-14T12:39:24Z")

</div>

I have been struggling with this for days, I don’t know if this is a bug or if I’m just missing something. I want to animate both text and and scatters based on real-time input. I’m using Node for this (Observables). Th…

---

## [Corrections for juliadatascience book](https://discourse.julialang.org/t/corrections-for-juliadatascience-book/69204)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 23\
**Last updated:** [October 14, 2021, 12:25pm UTC](https://discourse.julialang.org/t/corrections-for-juliadatascience-book/69204 "2021-10-14T12:25:30Z")

</div>

It’s incredible what wrong definitions the authors of the juliadatascience give in their online book, accessible at: https://juliadatascience.io/. There are so many scientists on this forum and no one has read what th…

---

## [Forcing Neldermead from Optim.jl to abort when "stuck"](https://discourse.julialang.org/t/forcing-neldermead-from-optim-jl-to-abort-when-stuck/69041)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 8\
**Last updated:** [October 14, 2021, 12:16pm UTC](https://discourse.julialang.org/t/forcing-neldermead-from-optim-jl-to-abort-when-stuck/69041 "2021-10-14T12:16:32Z")

</div>

I am a very frequent user of the Nelder-Mead optimisation routine (of the excellent Optim.jl package) which I find very effective for problems with a handful of free parameters to tune. I have very little knowledge of ho…

---

## [The columns and the rows - puzzled about performance](https://discourse.julialang.org/t/the-columns-and-the-rows-puzzled-about-performance/69741)

<div class="topic-metadata">

**Author:** [@Niceno](https://discourse.julialang.org/u/Niceno)\
**Replies:** 8\
**Last updated:** [October 14, 2021, 12:05pm UTC](https://discourse.julialang.org/t/the-columns-and-the-rows-puzzled-about-performance/69741 "2021-10-14T12:05:29Z")

</div>

Dear all, I have been using Julia for about three weeks now and, to my understanding, she uses a column-major matrix storage system. That would also mean, if I get things right, that loops which access matrix entries i…

---

## [ProgressMeter and IJulia - multiple progress bars](https://discourse.julialang.org/t/progressmeter-and-ijulia-multiple-progress-bars/69744)

<div class="topic-metadata">

**Author:** [@CompulsoryCoffee](https://discourse.julialang.org/u/CompulsoryCoffee)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 11:28am UTC](https://discourse.julialang.org/t/progressmeter-and-ijulia-multiple-progress-bars/69744 "2021-10-14T11:28:53Z")

</div>

Hi, I am trying to use ProgressMeter within a notebook but the output of a for loop shows several consecutive progress bars. Any chance I can get only one? Thanks @showprogress 1 "Computing..." for i in 1:50 sleep…

---

## [Dimension names in HDF5](https://discourse.julialang.org/t/dimension-names-in-hdf5/69743)

<div class="topic-metadata">

**Author:** [@Chiil](https://discourse.julialang.org/u/Chiil)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 11:20am UTC](https://discourse.julialang.org/t/dimension-names-in-hdf5/69743 "2021-10-14T11:20:44Z")

</div>

I am writing multidimensional arrays to HDF5 and I would like to make use of the HDF option to specify the datasets that contain the dimensions of the array (to be concrete, it is for instance a 3D temperature field, wit…

---

## [Periodic Boundary conditions in ParallelStencil / ImplicitGlobalGrid](https://discourse.julialang.org/t/periodic-boundary-conditions-in-parallelstencil-implicitglobalgrid/69670)

<div class="topic-metadata">

**Author:** [@gerhardu](https://discourse.julialang.org/u/gerhardu)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 10:53am UTC](https://discourse.julialang.org/t/periodic-boundary-conditions-in-parallelstencil-implicitglobalgrid/69670 "2021-10-14T10:53:25Z")

</div>

Hello, i want to solve a pde with periodic boundary conditions on multiple processors. There is a good way to do it with Petsc, but i would like to move to julia. Is there a way to do this with ParallelStencil / Impli…

---

## [Using LightGraphs to study ODEproblems](https://discourse.julialang.org/t/using-lightgraphs-to-study-odeproblems/69545)

<div class="topic-metadata">

**Author:** [@Frazze](https://discourse.julialang.org/u/Frazze)\
**Replies:** 3\
**Last updated:** [October 14, 2021, 10:41am UTC](https://discourse.julialang.org/t/using-lightgraphs-to-study-odeproblems/69545 "2021-10-14T10:41:33Z")

</div>

Hi everyone, I’m studying an ODEProblem where the function have a laplacian operator. #Domain and grid Nx = 40 Ny = 40 lx = 12 ly = 12 # the Laplacian operator function Laplacian2D(Nx, Ny, lx, ly) hx = lx/Nx hy = l…

---

## [Compressed array-on-disk](https://discourse.julialang.org/t/compressed-array-on-disk/69410)

<div class="topic-metadata">

**Author:** [@grero](https://discourse.julialang.org/u/grero)\
**Replies:** 9\
**Last updated:** [October 11, 2021, 1:36pm UTC](https://discourse.julialang.org/t/compressed-array-on-disk/69410 "2021-10-11T13:36:51Z")

</div>

I am working on an algorithm that fits an HMM model to some data. As part of the fitting I need to run the so-called \[forward-backward\] algorithm (Forward–backward algorithm - Wikipedia). This involves constructing matri…

---

## [Reuse PlotlyJS Blink window](https://discourse.julialang.org/t/reuse-plotlyjs-blink-window/69728)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 1\
**Last updated:** [October 14, 2021, 8:50am UTC](https://discourse.julialang.org/t/reuse-plotlyjs-blink-window/69728 "2021-10-14T08:50:42Z")

</div>

Very basic question: when using PlotlyJS with the Blink display window, how can I get subsequent calls to plot() to reuse the same Blink window rather than opening new windows?

---

## [How to handle an array of dictionaries?](https://discourse.julialang.org/t/how-to-handle-an-array-of-dictionaries/69649)

<div class="topic-metadata">

**Author:** [@trg818](https://discourse.julialang.org/u/trg818)\
**Replies:** 4\
**Last updated:** [October 14, 2021, 8:45am UTC](https://discourse.julialang.org/t/how-to-handle-an-array-of-dictionaries/69649 "2021-10-14T08:45:04Z")

</div>

It’s actually even more convoluted: I have a dictionary rspecs and want to allocate one of its elements, with key rname, as an array of dictionaries, whereby the array is to have length nw. This is what I tried: roomspe…

---

## [Custom \<span\> using Documenter.jl](https://discourse.julialang.org/t/custom-span-using-documenter-jl/69727)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 4:49am UTC](https://discourse.julialang.org/t/custom-span-using-documenter-jl/69727 "2021-10-14T04:49:09Z")

</div>

How can I insert a custom \<span\> element in a Documenter.jl markdown file? Specifically, I would like to create HTML like the following: Lorem ipsum \<span style="color: #f00;"\>dolor\</span\> sit amet. The following bit…

---

## [Julia + Dash + Curve from curvature](https://discourse.julialang.org/t/julia-dash-curve-from-curvature/69725)

<div class="topic-metadata">

**Author:** [@cvalero](https://discourse.julialang.org/u/cvalero)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 3:49am UTC](https://discourse.julialang.org/t/julia-dash-curve-from-curvature/69725 "2021-10-14T03:49:25Z")

</div>

I am happy share the Julia-Dash App: Curvature2D.jl This demo uses Julia and Dash to show how to construct a curve from a given curvature function. You can access the Heroku deployment at https://curvature-dash-app.he…

---

## [SSL error blocking packages?](https://discourse.julialang.org/t/ssl-error-blocking-packages/69720)

<div class="topic-metadata">

**Author:** [@reidr](https://discourse.julialang.org/u/reidr)\
**Replies:** 0\
**Last updated:** [October 13, 2021, 11:32pm UTC](https://discourse.julialang.org/t/ssl-error-blocking-packages/69720 "2021-10-13T23:32:20Z")

</div>

Trying a fresh installation moving from 1.6.1 to 1.6.3 and Pkg isn’t able to import any modules. Trying to import plots for example gives the following error: (@v1.6) pkg\> add “Plots” Installing known registries into ~…

---

## [Difference between running external programs and Tasks](https://discourse.julialang.org/t/difference-between-running-external-programs-and-tasks/69708)

<div class="topic-metadata">

**Author:** [@cswaney](https://discourse.julialang.org/u/cswaney)\
**Replies:** 1\
**Last updated:** [October 13, 2021, 10:59pm UTC](https://discourse.julialang.org/t/difference-between-running-external-programs-and-tasks/69708 "2021-10-13T22:59:15Z")

</div>

The Julia documentation states that external programs run using run(Cmd) are “run as julia 's immediate child process, using fork and exec calls.” By default, julia waits for the program to return, but commands can also …

---

## [Adapt code to Julia](https://discourse.julialang.org/t/adapt-code-to-julia/69707)

<div class="topic-metadata">

**Author:** [@vinicius\_de\_lima](https://discourse.julialang.org/u/vinicius_de_lima)\
**Replies:** 3\
**Last updated:** [October 13, 2021, 10:41pm UTC](https://discourse.julialang.org/t/adapt-code-to-julia/69707 "2021-10-13T22:41:29Z")

</div>

I’m trying to adapt the following matlab code to julia % MATLAB code to perform the cross validation lambda = 1; n = 1000; X = exprnd(1/lambda,\[n,1\]); m = 6:200; J = zeros(1,195); for i=1:195 \[num,binc\] = hist(X,m(…

---

## [Julia animation using PlotlyJS](https://discourse.julialang.org/t/julia-animation-using-plotlyjs/69684)

<div class="topic-metadata">

**Author:** [@cvalero](https://discourse.julialang.org/u/cvalero)\
**Replies:** 0\
**Last updated:** [October 13, 2021, 12:47pm UTC](https://discourse.julialang.org/t/julia-animation-using-plotlyjs/69684 "2021-10-13T12:47:17Z")

</div>

Hi, I am happy to share some code that shows how to do animations using Julia and PlotlyJS on a Jupyter Notebook. On the first cell of a Jupyter Notebook insert using PlotlyJS t = LinRange(0.0,2\*pi,250) ω1 = 2 ω2 = …

---

## [Can @view be used along with dataframesmeta](https://discourse.julialang.org/t/can-view-be-used-along-with-dataframesmeta/69701)

<div class="topic-metadata">

**Author:** [@vtomar](https://discourse.julialang.org/u/vtomar)\
**Replies:** 1\
**Last updated:** [October 13, 2021, 7:45pm UTC](https://discourse.julialang.org/t/can-view-be-used-along-with-dataframesmeta/69701 "2021-10-13T19:45:02Z")

</div>

I am trying to update values of a column in a dataframe and I see that I can use @view macro to reference the dataframe. Is there a way to use @view from dataframes and @subset from dataframesmeta to update a column valu…

---

## [PGFPlotsX.jl Tex Capacity Exceeded](https://discourse.julialang.org/t/pgfplotsx-jl-tex-capacity-exceeded/69697)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 3\
**Last updated:** [October 13, 2021, 6:56pm UTC](https://discourse.julialang.org/t/pgfplotsx-jl-tex-capacity-exceeded/69697 "2021-10-13T18:56:18Z")

</div>

Hi, I did a complex 3d chart in PGFPlotsX.jl. I tried to use it within a figure environment in latex, by including the .tikz version of the chart with \\begin{figure}\[!t\] \\input{./img/chart.tikz} \\end{figure} However,…

---

## [Writing Type Stable Loops](https://discourse.julialang.org/t/writing-type-stable-loops/69705)

<div class="topic-metadata">

**Author:** [@dleather](https://discourse.julialang.org/u/dleather)\
**Replies:** 10\
**Last updated:** [October 13, 2021, 6:49pm UTC](https://discourse.julialang.org/t/writing-type-stable-loops/69705 "2021-10-13T18:49:20Z")

</div>

For /While loops create a local scope. Thus, if you’d like to write a function the outputs variables defined inside of the for /while loop, one must declare these variables as global beforehand, or use a let wrapper. Th…

---

## [Tokyo 2020 Olympic Medals](https://discourse.julialang.org/t/tokyo-2020-olympic-medals/69641)

<div class="topic-metadata">

**Author:** [@cepel](https://discourse.julialang.org/u/cepel)\
**Replies:** 1\
**Last updated:** [October 13, 2021, 6:45pm UTC](https://discourse.julialang.org/t/tokyo-2020-olympic-medals/69641 "2021-10-13T18:45:41Z")

</div>

Hey everyone! I developed a Dash Julia application to visualize Tokyo 2020 Olympic Medals of teams, and open-sourced all the codes. You can see the application here: Live on Heroku ← Click Here GitHub ← Click Here (…

---

## [Seg Fault caused by loading a giant model](https://discourse.julialang.org/t/seg-fault-caused-by-loading-a-giant-model/69588)

<div class="topic-metadata">

**Author:** [@Tyler\_Ingebrand](https://discourse.julialang.org/u/Tyler_Ingebrand)\
**Replies:** 1\
**Last updated:** [October 13, 2021, 6:01pm UTC](https://discourse.julialang.org/t/seg-fault-caused-by-loading-a-giant-model/69588 "2021-10-13T18:01:24Z")

</div>

When using BSON, I am getting a seg fault when trying to load a saved model. Details below. The model is originally saved with: bson(savedir \* "policy.bson", policy = final\_policy) Then, in a different module, I am t…

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

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