# Latest

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

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

**Page:** 1306

---

## [Promotion to BigFloat -- no zero padding](https://discourse.julialang.org/t/promotion-to-bigfloat-no-zero-padding/66042)

<div class="topic-metadata">

**Author:** [@LolianSh](https://discourse.julialang.org/u/LolianSh)\
**Replies:** 8\
**Last updated:** [August 9, 2021, 12:47am UTC](https://discourse.julialang.org/t/promotion-to-bigfloat-no-zero-padding/66042 "2021-08-09T00:47:44Z")

</div>

Hi, I am encountering some problems when promoting Float64 to a BigFloat, specifically the fact that I do not get a zero padding beyond the Float64 precision. For example I have the following: julia\> BigFloat(0.01) 0.…

---

## [Getting Started with High Frequency Finance using Crypto Data and Julia](https://discourse.julialang.org/t/getting-started-with-high-frequency-finance-using-crypto-data-and-julia/63730)

<div class="topic-metadata">

**Author:** [@dm13450](https://discourse.julialang.org/u/dm13450)\
**Replies:** 11\
**Last updated:** [August 9, 2021, 12:03am UTC](https://discourse.julialang.org/t/getting-started-with-high-frequency-finance-using-crypto-data-and-julia/63730 "2021-08-09T00:03:08Z")

</div>

I’ve written about how to use my CoinbasePro.jl package in Julia to get started with some concepts in high frequency finance. Happy to answer any questions around the subject for anyone interested!

---

## [How to parallelize the product of sparse and dense matrices](https://discourse.julialang.org/t/how-to-parallelize-the-product-of-sparse-and-dense-matrices/65602)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 0\
**Last updated:** [July 31, 2021, 2:39pm UTC](https://discourse.julialang.org/t/how-to-parallelize-the-product-of-sparse-and-dense-matrices/65602 "2021-07-31T14:39:21Z")

</div>

This is a general question. Suppose we have a sparse CSR matrix A and a dense column majour matrix B, and we want to calculate the product. In principle, one can parallelize either over the rows of matrix A, or over the…

---

## [PlutoUI Print only prints last line. How can I make it print normally?](https://discourse.julialang.org/t/plutoui-print-only-prints-last-line-how-can-i-make-it-print-normally/65979)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 9\
**Last updated:** [August 8, 2021, 11:55pm UTC](https://discourse.julialang.org/t/plutoui-print-only-prints-last-line-how-can-i-make-it-print-normally/65979 "2021-08-08T23:55:24Z")

</div>

I’m trying to print a multiline figure in Pluto. println only goes to the REPL, and although Print from PlutoUI prints in the notebook, it only prints the last item. That is, if I do begin Print("GOK") Print("\\n") Pr…

---

## [Makie xrug/ yrug scatter plot](https://discourse.julialang.org/t/makie-xrug-yrug-scatter-plot/66009)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 2\
**Last updated:** [August 8, 2021, 11:32pm UTC](https://discourse.julialang.org/t/makie-xrug-yrug-scatter-plot/66009 "2021-08-08T23:32:34Z")

</div>

I tried to reproduce Gadfly’s xrug/yrug in Makie as in the example xrug/yrug. Appreciate your help. Thanks.

---

## [Evaluate function combining Float & Vector](https://discourse.julialang.org/t/evaluate-function-combining-float-vector/66044)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 8\
**Last updated:** [August 8, 2021, 11:08pm UTC](https://discourse.julialang.org/t/evaluate-function-combining-float-vector/66044 "2021-08-08T23:08:52Z")

</div>

Suppose I have a function of 3 variables: f(x,y,z)= x + y + z Suppose I have: a variable s=1.4, which is a Float64 a vector a=\[4.2;5.0\] which is a 2-element Vector{Float64}. How can I evaluate the function f at the…

---

## [StackOverFlow Error in SIR model using ModelingTookit](https://discourse.julialang.org/t/stackoverflow-error-in-sir-model-using-modelingtookit/64604)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 28\
**Last updated:** [August 8, 2021, 10:29pm UTC](https://discourse.julialang.org/t/stackoverflow-error-in-sir-model-using-modelingtookit/64604 "2021-08-08T22:29:00Z")

</div>

I am brand new to ModelingTookit, and as a first exercise I have defined a simple SIR model and tried to solve it and plot the solution. Unfortunately I’m getting a StackOverFlow Error that I can’t figure out. Here’s my …

---

## [Q: The scope for development of a flexible framework for coupled stiff integro-differential equations](https://discourse.julialang.org/t/q-the-scope-for-development-of-a-flexible-framework-for-coupled-stiff-integro-differential-equations/65935)

<div class="topic-metadata">

**Author:** [@SMijin](https://discourse.julialang.org/u/SMijin)\
**Replies:** 7\
**Last updated:** [August 8, 2021, 10:28pm UTC](https://discourse.julialang.org/t/q-the-scope-for-development-of-a-flexible-framework-for-coupled-stiff-integro-differential-equations/65935 "2021-08-08T22:28:27Z")

</div>

Hello, New user here, quite eager to get involved with the community, so my apologies for the long post! I work in fusion research, and am interested in testing modelling approaches for systems of coupled stiff integro…

---

## [DifferentialEquations.jl uses just one core](https://discourse.julialang.org/t/differentialequations-jl-uses-just-one-core/65916)

<div class="topic-metadata">

**Author:** [@Volker\_Weissmann](https://discourse.julialang.org/u/Volker_Weissmann)\
**Replies:** 18\
**Last updated:** [August 8, 2021, 10:18pm UTC](https://discourse.julialang.org/t/differentialequations-jl-uses-just-one-core/65916 "2021-08-08T22:18:26Z")

</div>

The documentation says that EnsembleThreads() uses multithreading: EnsembleThreads() - The default. This uses multithreading. It’s local (single computer, shared memory) parallelism only. Fastest when the trajectories…

---

## [Confusing dimension mismatch error](https://discourse.julialang.org/t/confusing-dimension-mismatch-error/66035)

<div class="topic-metadata">

**Author:** [@usman0311](https://discourse.julialang.org/u/usman0311)\
**Replies:** 8\
**Last updated:** [August 8, 2021, 9:13pm UTC](https://discourse.julialang.org/t/confusing-dimension-mismatch-error/66035 "2021-08-08T21:13:02Z")

</div>

I am trying to extract fitting parameters, but I am unable to understand the error, it looks like dimensions are same. Both En and abs are row vector of size 601. using LsqFit, DataFrames,DelimitedFiles, QuadGK α(E,p) …

---

## [Making the \`\`\`BigFloat\`\`\` type parametric](https://discourse.julialang.org/t/making-the-bigfloat-type-parametric/66037)

<div class="topic-metadata">

**Author:** [@Lucas\_Queiroz](https://discourse.julialang.org/u/Lucas_Queiroz)\
**Replies:** 3\
**Last updated:** [August 8, 2021, 9:01pm UTC](https://discourse.julialang.org/t/making-the-bigfloat-type-parametric/66037 "2021-08-08T21:01:04Z")

</div>

Hello! I am someone who is very enthusiastic about Julia language, and here I would like to comment about the BigFloat type, as well as make a proposal. The precision of BigFloat depends on a global state, which you ca…

---

## [Parallelizing a histogram](https://discourse.julialang.org/t/parallelizing-a-histogram/41260)

<div class="topic-metadata">

**Author:** [@Mattes](https://discourse.julialang.org/u/Mattes)\
**Replies:** 19\
**Last updated:** [August 8, 2021, 8:12pm UTC](https://discourse.julialang.org/t/parallelizing-a-histogram/41260 "2021-08-08T20:12:29Z")

</div>

I am trying to parallelize a simple histogram: n\_bins = 20000000 n\_elem = 100000000 hist = zeros(Int64, n\_bins) for i = 1:n\_elem bin = rand(UInt64)%n\_bins + 1 hist\[bin\] += 1 end In Fortran&OpenMP I would just u…

---

## [Get generic constructor of parametric type](https://discourse.julialang.org/t/get-generic-constructor-of-parametric-type/57189)

<div class="topic-metadata">

**Author:** [@MatFi](https://discourse.julialang.org/u/MatFi)\
**Replies:** 8\
**Last updated:** [August 8, 2021, 7:58pm UTC](https://discourse.julialang.org/t/get-generic-constructor-of-parametric-type/57189 "2021-08-08T19:58:09Z")

</div>

Is there a smart /easy way to get the generic constructor of a parametric type from its instance? I actually thought that this is a standard thing, but couldn’t find anything. abstract type AbstractFooBar end struct Fo…

---

## [Two post-doctoral positions on ecosystem/biodiversity/epidemiology models, Montréal](https://discourse.julialang.org/t/two-post-doctoral-positions-on-ecosystem-biodiversity-epidemiology-models-montreal/65945)

<div class="topic-metadata">

**Author:** [@tpoisot](https://discourse.julialang.org/u/tpoisot)\
**Replies:** 2\
**Last updated:** [August 8, 2021, 7:21pm UTC](https://discourse.julialang.org/t/two-post-doctoral-positions-on-ecosystem-biodiversity-epidemiology-models-montreal/65945 "2021-08-08T19:21:59Z")

</div>

More info (salary, how to apply, etc) here: the poisot lab - Join us! We currently have two openings at the post-doctoral level, to work on the coupling between biodiversity and ecosystem models in order to develop a fl…

---

## [How to speed up this function?](https://discourse.julialang.org/t/how-to-speed-up-this-function/66030)

<div class="topic-metadata">

**Author:** [@le\_go](https://discourse.julialang.org/u/le_go)\
**Replies:** 2\
**Last updated:** [August 8, 2021, 6:01pm UTC](https://discourse.julialang.org/t/how-to-speed-up-this-function/66030 "2021-08-08T18:01:30Z")

</div>

Can anyone spot optimizations? using FLoops function go(arr) record = zeros(Float16,1,9) record\_add = zeros(Float16,1,9) uniq = unique(arr\[:,1\]) for (c\_86, c\_90, c\_89\_1, c\_53, c\_52, c\_89, c\_88) in collect(Iterators.…

---

## [How do I list the variables I've created?](https://discourse.julialang.org/t/how-do-i-list-the-variables-ive-created/66002)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 3\
**Last updated:** [August 8, 2021, 5:45pm UTC](https://discourse.julialang.org/t/how-do-i-list-the-variables-ive-created/66002 "2021-08-08T17:45:31Z")

</div>

Since I can’t re-use variables in Pluto, and it can be a chore to look for the conflicting var in a big notebook, how do I list the variables I’ve already created? So far, every single suggestion I’ve searched, such as v…

---

## [Is there a config for Pluto?](https://discourse.julialang.org/t/is-there-a-config-for-pluto/66003)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 3\
**Last updated:** [August 8, 2021, 5:44pm UTC](https://discourse.julialang.org/t/is-there-a-config-for-pluto/66003 "2021-08-08T17:44:14Z")

</div>

I know how to set a config item in Julia but it isn’t passing to Pluto, and I don’t see where the config for Pluto is. I tried creating a config and startup.jl in the pluto notebooks folder but no luck.

---

## [Pluto plots with PlotlyBase/PlotlyJS with working static html export](https://discourse.julialang.org/t/pluto-plots-with-plotlybase-plotlyjs-with-working-static-html-export/61730)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 35\
**Last updated:** [August 8, 2021, 4:51pm UTC](https://discourse.julialang.org/t/pluto-plots-with-plotlybase-plotlyjs-with-working-static-html-export/61730 "2021-08-08T16:51:49Z")

</div>

Hi everyone, I recently wanted to use PlotlyJS directly in Pluto and still be able to view the plots in the static html export. I just managed to somehow do that and wanted to post the procedure here to get feedback an…

---

## [Distributed computing using mutable struct](https://discourse.julialang.org/t/distributed-computing-using-mutable-struct/66029)

<div class="topic-metadata">

**Author:** [@jmurga](https://discourse.julialang.org/u/jmurga)\
**Replies:** 0\
**Last updated:** [August 8, 2021, 4:35pm UTC](https://discourse.julialang.org/t/distributed-computing-using-mutable-struct/66029 "2021-08-08T16:35:21Z")

</div>

Hi everyone, I am developing a bioinformatics package to estimate protein adaptation rate using analytical theory followed by an Approximate Bayesian Computation. I have used a mutable struct to change some mutational …

---

## [How could I analyze my package code to find rarely used or unused functions?](https://discourse.julialang.org/t/how-could-i-analyze-my-package-code-to-find-rarely-used-or-unused-functions/66028)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 0\
**Last updated:** [August 8, 2021, 4:21pm UTC](https://discourse.julialang.org/t/how-could-i-analyze-my-package-code-to-find-rarely-used-or-unused-functions/66028 "2021-08-08T16:21:20Z")

</div>

I thought that maybe with a tool similar to JET it could be possible to find out which of my packages functions are called by how many other functions, so that I get starting points for refactoring. Is there anything lik…

---

## [EnsembleProblem: data saving and logging](https://discourse.julialang.org/t/ensembleproblem-data-saving-and-logging/66025)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 0\
**Last updated:** [August 8, 2021, 3:49pm UTC](https://discourse.julialang.org/t/ensembleproblem-data-saving-and-logging/66025 "2021-08-08T15:49:20Z")

</div>

Great job with the facilities for Monte Carlo Simulations. I have a couple of question about EnsembleProblem. From the docs, it follows that the data from all the trajectories is saved. Is it possible to use Welford’s o…

---

## [Correcting ODE initial conditions using automatic differentiation](https://discourse.julialang.org/t/correcting-ode-initial-conditions-using-automatic-differentiation/66018)

<div class="topic-metadata">

**Author:** [@kgupta359](https://discourse.julialang.org/u/kgupta359)\
**Replies:** 2\
**Last updated:** [August 8, 2021, 3:24pm UTC](https://discourse.julialang.org/t/correcting-ode-initial-conditions-using-automatic-differentiation/66018 "2021-08-08T15:24:44Z")

</div>

Hi all, I’m trying to find a way to correct initial conditions of a system of ODEs by using automatic differentiation through the ODE solver. I have implemented a similar algorithm in Python using TorchDIffEq but I’m new…

---

## [Vector of indices vs. for loop to assign values in an array](https://discourse.julialang.org/t/vector-of-indices-vs-for-loop-to-assign-values-in-an-array/66011)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 4\
**Last updated:** [August 8, 2021, 3:03pm UTC](https://discourse.julialang.org/t/vector-of-indices-vs-for-loop-to-assign-values-in-an-array/66011 "2021-08-08T15:03:47Z")

</div>

Let the following initialisation be. A = zeros(3,3) # 3x3 array of 0 cartId = CartesianIndices(A)\[\[1 2 5 7\]\] # cartesian indices at which some values have to be assigned in A value = rand(length(cartId)) # the values to…

---

## [Why for loop doesn't work in my code](https://discourse.julialang.org/t/why-for-loop-doesnt-work-in-my-code/65567)

<div class="topic-metadata">

**Author:** [@sajad\_ghassemi](https://discourse.julialang.org/u/sajad_ghassemi)\
**Replies:** 24\
**Last updated:** [August 8, 2021, 2:59pm UTC](https://discourse.julialang.org/t/why-for-loop-doesnt-work-in-my-code/65567 "2021-08-08T14:59:31Z")

</div>

Hi dear friends, I have problem with for loop. I don’t know my code doesn’t enter and repeat in loop. using Plots plotly() Plots.PlotlyBackend() currentcap=zeros(1,250001); voltagecap=zeros(1,250001); currentind=zeros(…

---

## [Creating two processes on single node and communicating with MPI.jl](https://discourse.julialang.org/t/creating-two-processes-on-single-node-and-communicating-with-mpi-jl/66013)

<div class="topic-metadata">

**Author:** [@ba2tripleO](https://discourse.julialang.org/u/ba2tripleO)\
**Replies:** 2\
**Last updated:** [August 8, 2021, 12:00pm UTC](https://discourse.julialang.org/t/creating-two-processes-on-single-node-and-communicating-with-mpi-jl/66013 "2021-08-08T12:00:37Z")

</div>

Hey there! I am new to julia and trying to get two processes to communicate on my laptop with MPI.jl can anyone help me get started. So far I’ve tried out this script: which outputs: Hello world, I am rank 0 of 1 U…

---

## [Turning a function into distrubution for turing](https://discourse.julialang.org/t/turning-a-function-into-distrubution-for-turing/66016)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 0\
**Last updated:** [August 8, 2021, 11:54am UTC](https://discourse.julialang.org/t/turning-a-function-into-distrubution-for-turing/66016 "2021-08-08T11:54:39Z")

</div>

I have a target function that I want to transform into distribution in order to use Turing, let’s suppose that the target function is written on this form: logtarget(x::Vector)= log(prod(x))^2 how can I turn it into d…

---

## [Recent experience with Julia as the main data science driver](https://discourse.julialang.org/t/recent-experience-with-julia-as-the-main-data-science-driver/64752)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 18\
**Last updated:** [August 8, 2021, 3:50am UTC](https://discourse.julialang.org/t/recent-experience-with-julia-as-the-main-data-science-driver/64752 "2021-08-08T03:50:24Z")

</div>

TLDR Is Julia ready as a full-blown language for doing data science? Like Python and R. Hell yeah! But it’s got some rough edges still. The long bits I want to detail a recent experience I had with trying to use Julia …

---

## [Error (optimize! not defined) using JuMP optimizing routines](https://discourse.julialang.org/t/error-optimize-not-defined-using-jump-optimizing-routines/65975)

<div class="topic-metadata">

**Author:** [@Peter-Jolly](https://discourse.julialang.org/u/Peter-Jolly)\
**Replies:** 2\
**Last updated:** [August 8, 2021, 4:30am UTC](https://discourse.julialang.org/t/error-optimize-not-defined-using-jump-optimizing-routines/65975 "2021-08-08T04:30:11Z")

</div>

Hi, I am trying out the examples in Julia documentation concerning JuMP. I get the same error no matter whether I use the linear or non linear examples(below is the linear example taken from the documentation: The error…

---

## [\`Plots.jl\` not working on Julia 1.7.0-beta3 (Windows 10)](https://discourse.julialang.org/t/plots-jl-not-working-on-julia-1-7-0-beta3-windows-10/65658)

<div class="topic-metadata">

**Author:** [@bhaveshshrimali](https://discourse.julialang.org/u/bhaveshshrimali)\
**Replies:** 5\
**Last updated:** [August 8, 2021, 3:56am UTC](https://discourse.julialang.org/t/plots-jl-not-working-on-julia-1-7-0-beta3-windows-10/65658 "2021-08-08T03:56:57Z")

</div>

Hi, I recently updated to Julia-1.7 (beta release) and tried using Plots.jl from the REPL within VS-Code, julia\> using Plots julia\> y = randn(10000); julia\> plot(y) connect: No error GKS: can't connect to GKS socket …

---

## [\[ANN + RFF\] TernaryPlots.jl - Recipes and tools to construct ternary/simplex plots](https://discourse.julialang.org/t/ann-rff-ternaryplots-jl-recipes-and-tools-to-construct-ternary-simplex-plots/65986)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 1\
**Last updated:** [August 8, 2021, 3:54am UTC](https://discourse.julialang.org/t/ann-rff-ternaryplots-jl-recipes-and-tools-to-construct-ternary-simplex-plots/65986 "2021-08-08T03:54:44Z")

</div>

Hi all, I am happy to announce that TernaryPlots.jl, a package for recipes and tools for constructing ternary plots, has undergone an overhaul to now use the RecipesBase.jl API. This means that the functions will now be …

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

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