# Latest

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

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

**Page:** 1353

---

## [Round Off Error in Iterator Arithmetic](https://discourse.julialang.org/t/round-off-error-in-iterator-arithmetic/63401)

<div class="topic-metadata">

**Author:** [@GpuCoder](https://discourse.julialang.org/u/GpuCoder)\
**Replies:** 1\
**Last updated:** [June 22, 2021, 10:50pm UTC](https://discourse.julialang.org/t/round-off-error-in-iterator-arithmetic/63401 "2021-06-22T22:50:49Z")

</div>

When I first started writing Julia (i.e., recently) I created vectors of intermediate results and operated upon them, that is complicated versions of: temp0 = \[k for k = 1:3\] 3-element Vector{Int64}: 1 2 3 temp1 = m…

---

## [Syntax : incomplete : premature end of input](https://discourse.julialang.org/t/syntax-incomplete-premature-end-of-input/63393)

<div class="topic-metadata">

**Author:** [@optimuslaprime](https://discourse.julialang.org/u/optimuslaprime)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 10:43pm UTC](https://discourse.julialang.org/t/syntax-incomplete-premature-end-of-input/63393 "2021-06-22T22:43:20Z")

</div>

I am trying to create a new module within a module, but in a separate file. Regardless, both of the modules are giving me the same error of “syntax : incomplete : premature end of input”, but I have end as the closing st…

---

## [Compilation time differences with custom sysimg](https://discourse.julialang.org/t/compilation-time-differences-with-custom-sysimg/63365)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 1:24pm UTC](https://discourse.julialang.org/t/compilation-time-differences-with-custom-sysimg/63365 "2021-06-22T13:24:00Z")

</div>

I was doing some tests with custom sysimages, based on @kristoffer.carlsson’s JuliaCon video. $ cat genimg.jl using PackageCompiler create\_sysimage(\[:Plots\]; sysimage\_path="sysimage\_plots.so") $ cat precompile\_plots…

---

## [Pca question](https://discourse.julialang.org/t/pca-question/63337)

<div class="topic-metadata">

**Author:** [@Kevin\_25](https://discourse.julialang.org/u/Kevin_25)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 9:32pm UTC](https://discourse.julialang.org/t/pca-question/63337 "2021-06-22T21:32:19Z")

</div>

I was wondering if there is a command or a way to produce the result of the “explained\_variance\_ratio\_” command from scikitlearn in order to plot it. Thanks.

---

## [Converting between Matrices, Tuples, and Iterators](https://discourse.julialang.org/t/converting-between-matrices-tuples-and-iterators/62596)

<div class="topic-metadata">

**Author:** [@GpuCoder](https://discourse.julialang.org/u/GpuCoder)\
**Replies:** 14\
**Last updated:** [June 22, 2021, 9:41pm UTC](https://discourse.julialang.org/t/converting-between-matrices-tuples-and-iterators/62596 "2021-06-22T21:41:31Z")

</div>

So there is something unstated about the way matrices, tuples, and iterators (i.e., Base.Generator) work that is causing me problems. I can make the hard things work (except for a few installation issues), but I have tr…

---

## [Plot text at location](https://discourse.julialang.org/t/plot-text-at-location/63212)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 7\
**Last updated:** [June 22, 2021, 9:13pm UTC](https://discourse.julialang.org/t/plot-text-at-location/63212 "2021-06-22T21:13:05Z")

</div>

@piever How can I set the location of text in AoG? using AlgebraOfGraphics using CairoMakie using DataFrames n = 500 df = DataFrame(x=1:n, y= collect(1:2:2n) .+ 10randn(n)) df = transform(df, :y =\> ByRow(x-\> x%10==0 ?…

---

## [Just \`using Gadfly\` introduces a method error when calling AlgebraOfGraphics \`draw()\`](https://discourse.julialang.org/t/just-using-gadfly-introduces-a-method-error-when-calling-algebraofgraphics-draw/63296)

<div class="topic-metadata">

**Author:** [@jonasjonker](https://discourse.julialang.org/u/jonasjonker)\
**Replies:** 1\
**Last updated:** [June 22, 2021, 9:12pm UTC](https://discourse.julialang.org/t/just-using-gadfly-introduces-a-method-error-when-calling-algebraofgraphics-draw/63296 "2021-06-22T21:12:05Z")

</div>

I’m making a notebook where I try out several plotting packages side by side. However just using Gadfly introduces a MethodError when calling AlgebraOfGraphics.draw(). The error MethodError: no method matching size(::Co…

---

## [Pkg.clone command not being recognized](https://discourse.julialang.org/t/pkg-clone-command-not-being-recognized/63391)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 5\
**Last updated:** [June 22, 2021, 8:53pm UTC](https://discourse.julialang.org/t/pkg-clone-command-not-being-recognized/63391 "2021-06-22T20:53:22Z")

</div>

I was trying to install the HiddenMarkovModel.jl package. It is not registered, so the link instructs me to use the clone command. But I am getting this strange error about this command not being valid. julia\> Pkg.clone…

---

## [How to write HTML from julia?](https://discourse.julialang.org/t/how-to-write-html-from-julia/62893)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 9\
**Last updated:** [June 22, 2021, 7:53pm UTC](https://discourse.julialang.org/t/how-to-write-html-from-julia/62893 "2021-06-22T19:53:17Z")

</div>

We have great packages for embedding julia code into markdown documents, and render HTML using Weave.jl or Literate.jl. However, sometimes I’ll like to generate an HTML-file from inside a julia-script rather than using …

---

## [Plotting simple bar charts with Plots.jl with colors conditional on sign of values](https://discourse.julialang.org/t/plotting-simple-bar-charts-with-plots-jl-with-colors-conditional-on-sign-of-values/63379)

<div class="topic-metadata">

**Author:** [@dfa\_julia\_quant](https://discourse.julialang.org/u/dfa_julia_quant)\
**Replies:** 3\
**Last updated:** [June 22, 2021, 7:18pm UTC](https://discourse.julialang.org/t/plotting-simple-bar-charts-with-plots-jl-with-colors-conditional-on-sign-of-values/63379 "2021-06-22T19:18:54Z")

</div>

I would like to create a bar chart that shows negative values of different color from positive values. I created a very simple example using x = 6 discrete time periods and y = 6 financial payoffs (2 of which are negativ…

---

## [The solution of Semidefinite Programming (SDP) violates the constraints](https://discourse.julialang.org/t/the-solution-of-semidefinite-programming-sdp-violates-the-constraints/63370)

<div class="topic-metadata">

**Author:** [@Sawyer\_Zhou](https://discourse.julialang.org/u/Sawyer_Zhou)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 7:17pm UTC](https://discourse.julialang.org/t/the-solution-of-semidefinite-programming-sdp-violates-the-constraints/63370 "2021-06-22T19:17:55Z")

</div>

I try to solve a SDP, the result shows that the solution is feasible and optimal, but when I substitute the obtained solution back into the constraints, I find it violates many constraints. using JuMP, MosekTools, Linea…

---

## [Animation using PlotlyBase](https://discourse.julialang.org/t/animation-using-plotlybase/63292)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 7\
**Last updated:** [June 22, 2021, 7:13pm UTC](https://discourse.julialang.org/t/animation-using-plotlybase/63292 "2021-06-22T19:13:16Z")

</div>

Dear PlotlyBase community, Is there a way how to get animation from Animations · Plots using pure PlotlyBase package?

---

## [No attribute for title position - why always at top of figure?](https://discourse.julialang.org/t/no-attribute-for-title-position-why-always-at-top-of-figure/63360)

<div class="topic-metadata">

**Author:** [@walra356](https://discourse.julialang.org/u/walra356)\
**Replies:** 8\
**Last updated:** [June 22, 2021, 6:48pm UTC](https://discourse.julialang.org/t/no-attribute-for-title-position-why-always-at-top-of-figure/63360 "2021-06-22T18:48:52Z")

</div>

In the example below I would like the title to the left of fig\[2,1\]. Is there a simple way to do this in the Makie Figure format? New Axis with textbox? Rotation did not work for me.

---

## [Suggestions for relational databases](https://discourse.julialang.org/t/suggestions-for-relational-databases/63116)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 18\
**Last updated:** [June 22, 2021, 6:44pm UTC](https://discourse.julialang.org/t/suggestions-for-relational-databases/63116 "2021-06-22T18:44:20Z")

</div>

I’m considering an sql or nosql database? I’m thinking MySQL using MySQL.jl , but I would like to know more about how PostSQL is different. I’ve also considered MongoDB and mongoc.jl , because of performance, but I’m not…

---

## [How to submit distributed memory jobs to cluster?](https://discourse.julialang.org/t/how-to-submit-distributed-memory-jobs-to-cluster/63388)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 5:32pm UTC](https://discourse.julialang.org/t/how-to-submit-distributed-memory-jobs-to-cluster/63388 "2021-06-22T17:32:38Z")

</div>

I have a run\_jobs.jl file that supports distributed memory parallelism. How should the beginning of run\_jobs.jl look like if I want to run it on a cluster (univa grid engine) via qsub? I can use ClusterManagers.jl to ru…

---

## [Chain rule in Symbolics.jl](https://discourse.julialang.org/t/chain-rule-in-symbolics-jl/63146)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 5\
**Last updated:** [June 22, 2021, 5:05pm UTC](https://discourse.julialang.org/t/chain-rule-in-symbolics-jl/63146 "2021-06-22T17:05:29Z")

</div>

Probably I’m blind, but is there a way to get the transformation \\frac{d}{d t} x(y(t)) = \\frac{\\partial x}{\\partial y}(y(t)) \\frac{\\partial y}{\\partial t}(t) where x and y are symbolic. (I want do do a symbolic transf…

---

## [\[ANN\] SimulationLogger.jl: a convenient logging tool for DifferentialEquations.jl](https://discourse.julialang.org/t/ann-simulationlogger-jl-a-convenient-logging-tool-for-differentialequations-jl/63182)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 1\
**Last updated:** [June 22, 2021, 3:21pm UTC](https://discourse.julialang.org/t/ann-simulationlogger-jl-a-convenient-logging-tool-for-differentialequations-jl/63182 "2021-06-22T15:21:49Z")

</div>

NOTE This package is now being registered in General. This package is tested only with ODEs. Hi, you all! I’m glad to share a package SimulationLogger.jl. This package provides convenient logging macros compatible w…

---

## [How to internationnalize (i18n) a Genie app?](https://discourse.julialang.org/t/how-to-internationnalize-i18n-a-genie-app/63378)

<div class="topic-metadata">

**Author:** [@samusz](https://discourse.julialang.org/u/samusz)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 3:03pm UTC](https://discourse.julialang.org/t/how-to-internationnalize-i18n-a-genie-app/63378 "2021-06-22T15:03:12Z")

</div>

I’ve looked for an internnationnalization (i18n) functionality in Julia to use it with a small Genie web app and only found this \[base/I18n module \] (julia/i18n.jl at 96b28d64bdd3ae037378028d4cd60e5a4c397256 · JuliaLang…

---

## [Missing category descriptions](https://discourse.julialang.org/t/missing-category-descriptions/55970)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 0\
**Last updated:** [February 24, 2021, 10:44pm UTC](https://discourse.julialang.org/t/missing-category-descriptions/55970 "2021-02-24T22:44:45Z")

</div>

There are a handful of categories with the boilerplate description — it’d be great to fill these in to help define the categories and make them full-featured (the first paragraph is used when they’re referenced). I’ve m…

---

## [Problem adding packages](https://discourse.julialang.org/t/problem-adding-packages/63374)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 2:31pm UTC](https://discourse.julialang.org/t/problem-adding-packages/63374 "2021-06-22T14:31:46Z")

</div>

Hello, I am having this error while installing different packages. I do not understand what the problem actually is. It does not happen with all the packages. It happens with NLopt and when adding Distributions, with an …

---

## [DSGE estimation/inference game?](https://discourse.julialang.org/t/dsge-estimation-inference-game/63364)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 2:14pm UTC](https://discourse.julialang.org/t/dsge-estimation-inference-game/63364 "2021-06-22T14:14:43Z")

</div>

I’ve been working on a method for estimating a DSGE model and doing inference on parameters, and it seems to work pretty well, for a fairly simple model (https://github.com/mcreel/SimulatedNeuralMoments.jl/tree/main/exam…

---

## [Syntax: invalid operator "--"](https://discourse.julialang.org/t/syntax-invalid-operator/63369)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 2:10pm UTC](https://discourse.julialang.org/t/syntax-invalid-operator/63369 "2021-06-22T14:10:12Z")

</div>

Hello, I am trying to use the command “–threads” in Julia but I got the below error. Any idea for let it run? Thanks julia\> --threads 4 ERROR: syntax: invalid operator “–” Stacktrace: \[1\] top-level scope @ none:1

---

## [How to fit Pluto.jl output cell to DataFrame](https://discourse.julialang.org/t/how-to-fit-pluto-jl-output-cell-to-dataframe/57125)

<div class="topic-metadata">

**Author:** [@jonasjonker](https://discourse.julialang.org/u/jonasjonker)\
**Replies:** 5\
**Last updated:** [June 22, 2021, 1:18pm UTC](https://discourse.julialang.org/t/how-to-fit-pluto-jl-output-cell-to-dataframe/57125 "2021-06-22T13:18:27Z")

</div>

When I display a DataFrame in Pluto.jl a scrollbar appears. Does somebody know how to make my output cell bigger/fit my dataframe?

---

## [CuTextureArray for Float64?](https://discourse.julialang.org/t/cutexturearray-for-float64/63346)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 1:04pm UTC](https://discourse.julialang.org/t/cutexturearray-for-float64/63346 "2021-06-22T13:04:21Z")

</div>

I am trying to test the GPU interpolation example shown in this blog posting. I get an error when I try to create CuTextureArray from CuArray{Float64}. For example, (@v1.6) pkg\> st CUDA Status \`~/.julia/environm…

---

## [Pluto does not autocomplete](https://discourse.julialang.org/t/pluto-does-not-autocomplete/62312)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 3\
**Last updated:** [June 22, 2021, 12:54pm UTC](https://discourse.julialang.org/t/pluto-does-not-autocomplete/62312 "2021-06-22T12:54:47Z")

</div>

Hi, I do not know what am I doing wrong, cause every IDE (VScode, Atom, Jupyter) I have installed does the usual autocompletion work, but not Pluto. Besides this issue, everything seems to be working fine with Pluto. Wha…

---

## [Alert: 5 dependencies skipped during auto compilation due to previous errors!](https://discourse.julialang.org/t/alert-5-dependencies-skipped-during-auto-compilation-due-to-previous-errors/63215)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 9\
**Last updated:** [June 22, 2021, 12:21pm UTC](https://discourse.julialang.org/t/alert-5-dependencies-skipped-during-auto-compilation-due-to-previous-errors/63215 "2021-06-22T12:21:55Z")

</div>

I am getting the following alert when I update the packages: “140 dependencies successfully precompiled in 319 seconds (279 already precompiled, 5 skipped during auto due to previous errors)” I have done what the Pkg p…

---

## [Looking for a new maintainer for HMMBase.jl](https://discourse.julialang.org/t/looking-for-a-new-maintainer-for-hmmbase-jl/62001)

<div class="topic-metadata">

**Author:** [@maxmouchet](https://discourse.julialang.org/u/maxmouchet)\
**Replies:** 2\
**Last updated:** [June 22, 2021, 10:59am UTC](https://discourse.julialang.org/t/looking-for-a-new-maintainer-for-hmmbase-jl/62001 "2021-06-22T10:59:51Z")

</div>

Hi, I haven’t been able to work on HMMBase.jl for the past few months as I’m unfortunately not using Julia anymore in my day-to-day work. The package is working as-is but it has two open PRs for adding parameter estima…

---

## [Problem with ODELocalSensitivityProblem](https://discourse.julialang.org/t/problem-with-odelocalsensitivityproblem/63320)

<div class="topic-metadata">

**Author:** [@ap2013](https://discourse.julialang.org/u/ap2013)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 10:14am UTC](https://discourse.julialang.org/t/problem-with-odelocalsensitivityproblem/63320 "2021-06-22T10:14:55Z")

</div>

I am looking to use ODELocalSensitivityProblem to get the sensitivities of an ODE problem. I define two different problems from the same system (defined with ModellingToolkit) as follows probSens = ODELocalSensitivityP…

---

## [Factorize changes the float type from Float32 to Float64](https://discourse.julialang.org/t/factorize-changes-the-float-type-from-float32-to-float64/63308)

<div class="topic-metadata">

**Author:** [@Mohamed\_AbdElrahman](https://discourse.julialang.org/u/Mohamed_AbdElrahman)\
**Replies:** 3\
**Last updated:** [June 22, 2021, 10:10am UTC](https://discourse.julialang.org/t/factorize-changes-the-float-type-from-float32-to-float64/63308 "2021-06-22T10:10:13Z")

</div>

I’m solving a sparse linear system with Float32 precision for speed. The problem is the function factorize when taken input a ComplexF32 sparse matrix, the lu factors are ComplexF64. julia\> factorize(sprand(ComplexF3…

---

## [Getting different output for fft function in julia and matlab](https://discourse.julialang.org/t/getting-different-output-for-fft-function-in-julia-and-matlab/63349)

<div class="topic-metadata">

**Author:** [@juls](https://discourse.julialang.org/u/juls)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 9:42am UTC](https://discourse.julialang.org/t/getting-different-output-for-fft-function-in-julia-and-matlab/63349 "2021-06-22T09:42:29Z")

</div>

In JULIA, 2×5 Array{Float64,2}: 0.801514 1.21987 1.1503 1.18761 1.2485 0.807469 1.22325 1.14981 1.1877 1.24861 when fft function from FFTW.jl on the above array gives output: 2×5 Array{Complex{Float64},2}: …

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

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