# Latest

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

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

**Page:** 1181

---

## [Random variables from one uniform distribution get added to create new rand var](https://discourse.julialang.org/t/random-variables-from-one-uniform-distribution-get-added-to-create-new-rand-var/71529)

<div class="topic-metadata">

**Author:** [@RexXI](https://discourse.julialang.org/u/RexXI)\
**Replies:** 4\
**Last updated:** [November 16, 2021, 11:08am UTC](https://discourse.julialang.org/t/random-variables-from-one-uniform-distribution-get-added-to-create-new-rand-var/71529 "2021-11-16T11:08:39Z")

</div>

Hi, all. I’m attempting to model what happens when random variables from one distribution, specifically a uniform distribution, get added to create a new random variable. To begin with begin ua = 2.0.\*rand(10000) .-…

---

## [Problems with StatsPlots in VSCode](https://discourse.julialang.org/t/problems-with-statsplots-in-vscode/73011)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 1\
**Last updated:** [December 13, 2021, 11:37am UTC](https://discourse.julialang.org/t/problems-with-statsplots-in-vscode/73011 "2021-12-13T11:37:27Z")

</div>

Hi all, I am wondering where I should report the following problem. In the MWE below, plots will not display in VSCode. I receive the following warning: ┌ Warning: \_display is not defined for this backend. └ @ Plots ~…

---

## [List functions that are not type stable?](https://discourse.julialang.org/t/list-functions-that-are-not-type-stable/72817)

<div class="topic-metadata">

**Author:** [@touste](https://discourse.julialang.org/u/touste)\
**Replies:** 7\
**Last updated:** [December 13, 2021, 10:53am UTC](https://discourse.julialang.org/t/list-functions-that-are-not-type-stable/72817 "2021-12-13T10:53:16Z")

</div>

Hi all, Is there a quick way to list functions that are not type stable during execution in a given module? I’m aware of the @code\_warntype macro, or the Cthulu package, but it can be quite cumbersome to descend into al…

---

## [Problem defining Continuos Dynamical Systems](https://discourse.julialang.org/t/problem-defining-continuos-dynamical-systems/73009)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 2\
**Last updated:** [December 13, 2021, 10:47am UTC](https://discourse.julialang.org/t/problem-defining-continuos-dynamical-systems/73009 "2021-12-13T10:47:16Z")

</div>

I am having a problem defining the Rossler system using the following way~ ##eom~~ @inline @inbounds function rossler\_eom( u, p, t) a = p\[1\]; b = p\[2\]; c = p\[3\] du1 = -u\[2\] - u\[3\] du2 = u…

---

## [Language server does not start on Mac OS due to permission error](https://discourse.julialang.org/t/language-server-does-not-start-on-mac-os-due-to-permission-error/72887)

<div class="topic-metadata">

**Author:** [@danrocag](https://discourse.julialang.org/u/danrocag)\
**Replies:** 4\
**Last updated:** [December 13, 2021, 10:35am UTC](https://discourse.julialang.org/t/language-server-does-not-start-on-mac-os-due-to-permission-error/72887 "2021-12-13T10:35:20Z")

</div>

Hi, lately the language server is not starting at all for me. Julia itself works fine, and the error does not seem to depend on the environment. The output of the LS is as follows: \[ Info: Starting the Julia Language S…

---

## [Why is this code wrong?](https://discourse.julialang.org/t/why-is-this-code-wrong/72928)

<div class="topic-metadata">

**Author:** [@biglari](https://discourse.julialang.org/u/biglari)\
**Replies:** 15\
**Last updated:** [December 13, 2021, 10:29am UTC](https://discourse.julialang.org/t/why-is-this-code-wrong/72928 "2021-12-13T10:29:11Z")

</div>

using NearestNeighbors using SparseArrays using LinearAlgebra radius=.03 box=\[0,1,0,1\] ninit= 100 dotmax=1000 xx=range(0,stop=1,length=ninit) yy=1e-4.\*rand(1,ninit) X=vcat(xx\[:\]‘,yy\[:\]’) pdp = X’ pdp\_end = nin…

---

## [MethodError: no method matching -(::LinearAlgebra](https://discourse.julialang.org/t/methoderror-no-method-matching-linearalgebra/65477)

<div class="topic-metadata">

**Author:** [@kip0d](https://discourse.julialang.org/u/kip0d)\
**Replies:** 4\
**Last updated:** [December 13, 2021, 10:02am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-linearalgebra/65477 "2021-12-13T10:02:32Z")

</div>

Can you explain please what is wrong with my code? idxWindow = (-floor((N-1)/2):floor(N/2))' for indm = 1:M FD = distvec\_samp\[indm\] if FD .\> 0 IntegerD = floor(FD) FDGal = FD - IntegerD h…

---

## [Installing own package with dependency](https://discourse.julialang.org/t/installing-own-package-with-dependency/73010)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 10\
**Last updated:** [December 13, 2021, 9:42am UTC](https://discourse.julialang.org/t/installing-own-package-with-dependency/73010 "2021-12-13T09:42:02Z")

</div>

Hi, I have written a package Lithe (which I may unfortunately not share…). I have a GIT clone of it on my PC. Part of its Project.toml reads name = "Lithe" ...version = "0.1.0" \[deps\] ... Espy = "1729f5b0-844e-4123-…

---

## [Lazily reading from force data cube](https://discourse.julialang.org/t/lazily-reading-from-force-data-cube/71951)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 1\
**Last updated:** [December 13, 2021, 8:59am UTC](https://discourse.julialang.org/t/lazily-reading-from-force-data-cube/71951 "2021-12-13T08:59:40Z")

</div>

Hi! I would like to read data lazily from a force datacube. Force is a processing pipeline for satellite images and it stores the outputs into a bunch of folders. Each folder (“tile”) covers a rectangular area and conta…

---

## [Analogue to lyapunov exponents](https://discourse.julialang.org/t/analogue-to-lyapunov-exponents/70264)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 2\
**Last updated:** [December 13, 2021, 7:21am UTC](https://discourse.julialang.org/t/analogue-to-lyapunov-exponents/70264 "2021-12-13T07:21:22Z")

</div>

Hi! While using the usual lyapunov function from the DynamicalSystems.jl package measures the rate of exponential separation of two slightly perturbed trajectories, I would instead like to measure the rate of exponentia…

---

## [Plotly() legend moving](https://discourse.julialang.org/t/plotly-legend-moving/73008)

<div class="topic-metadata">

**Author:** [@jekyllstein](https://discourse.julialang.org/u/jekyllstein)\
**Replies:** 0\
**Last updated:** [December 13, 2021, 6:04am UTC](https://discourse.julialang.org/t/plotly-legend-moving/73008 "2021-12-13T06:04:07Z")

</div>

I was trying to use commands like legend = :bottom to reposition the legend in plotly plots but having no luck. Seems like this is an unresolved issue on github. Is there some kind of workaround to position the legend ma…

---

## [LoadError: UndefVarError: @params not defined](https://discourse.julialang.org/t/loaderror-undefvarerror-params-not-defined/73005)

<div class="topic-metadata">

**Author:** [@n90](https://discourse.julialang.org/u/n90)\
**Replies:** 0\
**Last updated:** [December 13, 2021, 4:36am UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-params-not-defined/73005 "2021-12-13T04:36:24Z")

</div>

In a legacy code am working on @params(:JSON\_PAYLOAD) is used to get some of the request payload. I have updated Julia to version 1.7 and and Genie version is 4.5.0. Why is @params not defined error coming? Is this a ver…

---

## [After using RCall method,How to come back to Julia again from R?](https://discourse.julialang.org/t/after-using-rcall-method-how-to-come-back-to-julia-again-from-r/72966)

<div class="topic-metadata">

**Author:** [@naren75](https://discourse.julialang.org/u/naren75)\
**Replies:** 4\
**Last updated:** [December 13, 2021, 3:59am UTC](https://discourse.julialang.org/t/after-using-rcall-method-how-to-come-back-to-julia-again-from-r/72966 "2021-12-13T03:59:23Z")

</div>

---

## [Sharing Pluto NBs with Custom Modules](https://discourse.julialang.org/t/sharing-pluto-nbs-with-custom-modules/72962)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 6\
**Last updated:** [December 13, 2021, 1:28am UTC](https://discourse.julialang.org/t/sharing-pluto-nbs-with-custom-modules/72962 "2021-12-13T01:28:05Z")

</div>

I am working with a group and have developed some of my own modules to facilitate the research we are doing. I used pkg generate to create the template for each module. Currently, I am able to access the contents on my l…

---

## [Struct wrapping NamedTuple is not \`isbits\` (depending on how it is defined)](https://discourse.julialang.org/t/struct-wrapping-namedtuple-is-not-isbits-depending-on-how-it-is-defined/72965)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 8\
**Last updated:** [December 12, 2021, 11:10pm UTC](https://discourse.julialang.org/t/struct-wrapping-namedtuple-is-not-isbits-depending-on-how-it-is-defined/72965 "2021-12-12T23:10:38Z")

</div>

I am wrapping NamedTuple to define some new/different behaviour without committing type piracy and ran into the following problem: struct Wrapper{SYMS, TT} x::NamedTuple{SYMS, TT} end randnt() = Wrapper((a = randn(),…

---

## [Bug in prevpow I guess](https://discourse.julialang.org/t/bug-in-prevpow-i-guess/72996)

<div class="topic-metadata">

**Author:** [@reinermartin](https://discourse.julialang.org/u/reinermartin)\
**Replies:** 5\
**Last updated:** [December 12, 2021, 10:56pm UTC](https://discourse.julialang.org/t/bug-in-prevpow-i-guess/72996 "2021-12-12T22:56:43Z")

</div>

Hi, what is the right place to report the following? I think I stumbled onto a simple ‘bug’ (= very unexpected behavior) in prevpow (when solving the latest Project Euler problem). Using Julia 1.7. prevpow(123456789012…

---

## [OCR with Julia](https://discourse.julialang.org/t/ocr-with-julia/4945)

<div class="topic-metadata">

**Author:** [@John\_Hearns](https://discourse.julialang.org/u/John_Hearns)\
**Replies:** 7\
**Last updated:** [December 12, 2021, 10:08pm UTC](https://discourse.julialang.org/t/ocr-with-julia/4945 "2021-12-12T22:08:49Z")

</div>

I am looking for suggestion on doing Optical Character Recognition. This does not necessarily have to be native Julia (see below). Also I am not looking for a full-on Machine Learnign framework which will recognise image…

---

## [Recording mouse click coordinates in Jupyter](https://discourse.julialang.org/t/recording-mouse-click-coordinates-in-jupyter/40268)

<div class="topic-metadata">

**Author:** [@dopamine](https://discourse.julialang.org/u/dopamine)\
**Replies:** 2\
**Last updated:** [December 12, 2021, 9:45pm UTC](https://discourse.julialang.org/t/recording-mouse-click-coordinates-in-jupyter/40268 "2021-12-12T21:45:57Z")

</div>

How do I get mouse click locations in Jupyter? This is trivial in non-jupyter environment, but it seems like many plotting packages don’t support interactive mode in a Jupyter notebook. PyPlot.jl: PyPlot.jl does not sup…

---

## [Error installing OpenCV](https://discourse.julialang.org/t/error-installing-opencv/72981)

<div class="topic-metadata">

**Author:** [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)\
**Replies:** 2\
**Last updated:** [December 12, 2021, 9:37pm UTC](https://discourse.julialang.org/t/error-installing-opencv/72981 "2021-12-12T21:37:27Z")

</div>

When trying to install OpenCV.jl, I get the following: (@v1.7) pkg\> add OpenCV Updating registry at \`~/.julia/registries/General.toml\` Resolving package versions... Updating \`~/.julia/environments/v1.7/Projec…

---

## [Tips on code design for writing new packages](https://discourse.julialang.org/t/tips-on-code-design-for-writing-new-packages/72989)

<div class="topic-metadata">

**Author:** [@davibarreira](https://discourse.julialang.org/u/davibarreira)\
**Replies:** 2\
**Last updated:** [December 12, 2021, 8:48pm UTC](https://discourse.julialang.org/t/tips-on-code-design-for-writing-new-packages/72989 "2021-12-12T20:48:23Z")

</div>

When starting a new package, I’m always overwhelmed by the multiple possibilities of how to desig my code. I was wondering what are some good references out there on how “design your code” for package development in Juli…

---

## [Mapping from types to icons](https://discourse.julialang.org/t/mapping-from-types-to-icons/72988)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 0\
**Last updated:** [December 12, 2021, 7:41pm UTC](https://discourse.julialang.org/t/mapping-from-types-to-icons/72988 "2021-12-12T19:41:36Z")

</div>

Where is it defined? Can I add my own icons for my types?

---

## [Plot with four y-axes (, so two y-axis have to be double)](https://discourse.julialang.org/t/plot-with-four-y-axes-so-two-y-axis-have-to-be-double/72985)

<div class="topic-metadata">

**Author:** [@dadaforpeace](https://discourse.julialang.org/u/dadaforpeace)\
**Replies:** 0\
**Last updated:** [December 12, 2021, 7:28pm UTC](https://discourse.julialang.org/t/plot-with-four-y-axes-so-two-y-axis-have-to-be-double/72985 "2021-12-12T19:28:44Z")

</div>

Hi, I am trying to extend the example found here (Plot with three y-axes (, so one y-axis has to be double) - #10 by dadaforpeace) to four y-axes such that two y-axis have to be drawn double. The data and a jupyter note…

---

## [Measure for Multitarget Neural Network Regressor](https://discourse.julialang.org/t/measure-for-multitarget-neural-network-regressor/72986)

<div class="topic-metadata">

**Author:** [@Mathieu\_GIERSKI](https://discourse.julialang.org/u/Mathieu_GIERSKI)\
**Replies:** 0\
**Last updated:** [December 12, 2021, 7:28pm UTC](https://discourse.julialang.org/t/measure-for-multitarget-neural-network-regressor/72986 "2021-12-12T19:28:53Z")

</div>

Hi all! I am stuck as I need to find a measure for MultitargetNeuralNetworkRegressor to tune my model. With NeuralNetworkRegressor I use rmse but it seems like it does not work for this one and I can’t find the correspo…

---

## [How to move optimiser from gpu to cpu?](https://discourse.julialang.org/t/how-to-move-optimiser-from-gpu-to-cpu/69622)

<div class="topic-metadata">

**Author:** [@weiqi](https://discourse.julialang.org/u/weiqi)\
**Replies:** 10\
**Last updated:** [December 12, 2021, 6:29pm UTC](https://discourse.julialang.org/t/how-to-move-optimiser-from-gpu-to-cpu/69622 "2021-12-12T18:29:18Z")

</div>

Currently, cpu(optimiser) won’t move it. For instance, the state still consists of variables in GPU.

---

## [Deepcopy Flux Model](https://discourse.julialang.org/t/deepcopy-flux-model/72930)

<div class="topic-metadata">

**Author:** [@tknopp](https://discourse.julialang.org/u/tknopp)\
**Replies:** 8\
**Last updated:** [December 12, 2021, 6:28pm UTC](https://discourse.julialang.org/t/deepcopy-flux-model/72930 "2021-12-12T18:28:02Z")

</div>

Hi, I am struggling with warmstarting Flux models. My idea is to deepcopy both the model and the optimizer. However, if I do that the training error goes significantly up when retraining. If I use BSON: @save/@load it w…

---

## [Julia opening behavior](https://discourse.julialang.org/t/julia-opening-behavior/72979)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 2\
**Last updated:** [December 12, 2021, 5:44pm UTC](https://discourse.julialang.org/t/julia-opening-behavior/72979 "2021-12-12T17:44:39Z")

</div>

Right now, every time I click the Julia icon in my Dock (Mac OS Monterey), it will open a new session. Normally, when I do this to other programs, if it has already been open, it will just bring forward the already open…

---

## [\[ANN\] PolygonIO.jl](https://discourse.julialang.org/t/ann-polygonio-jl/67811)

<div class="topic-metadata">

**Author:** [@PyDataBlog](https://discourse.julialang.org/u/PyDataBlog)\
**Replies:** 11\
**Last updated:** [December 12, 2021, 4:28pm UTC](https://discourse.julialang.org/t/ann-polygonio-jl/67811 "2021-12-12T16:28:08Z")

</div>

I am excited to share the initial release of PolygonIO.jl. PolygonIO.jl aims to enrich Julia finance ecosystem with full coverage of all the REST API and websocket services provided by the popular financial data platfor…

---

## [Plotly Slider - how to change data values?](https://discourse.julialang.org/t/plotly-slider-how-to-change-data-values/72939)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 2\
**Last updated:** [December 12, 2021, 4:17pm UTC](https://discourse.julialang.org/t/plotly-slider-how-to-change-data-values/72939 "2021-12-12T16:17:29Z")

</div>

Hello Community, With the support of @empet I was able to create nice choropleth plots to visualize runoffs in german communities during the flooding in last summer. My next step would be to add a slider in order to sc…

---

## [Performance of Unitful Arrays](https://discourse.julialang.org/t/performance-of-unitful-arrays/52635)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 8\
**Last updated:** [December 12, 2021, 3:57pm UTC](https://discourse.julialang.org/t/performance-of-unitful-arrays/52635 "2021-12-12T15:57:51Z")

</div>

Suppose I have a large matrix M composed of homogeneous Unitful data, and a vector v, which contains homogeneus Unitful data as well. (By Unitful data I mean the data with the types from Unitful.jl) Does the calculation…

---

## [Modify string interpolation](https://discourse.julialang.org/t/modify-string-interpolation/72904)

<div class="topic-metadata">

**Author:** [@Asmund\_Hjulstad](https://discourse.julialang.org/u/Asmund_Hjulstad)\
**Replies:** 4\
**Last updated:** [December 12, 2021, 2:01pm UTC](https://discourse.julialang.org/t/modify-string-interpolation/72904 "2021-12-12T14:01:09Z")

</div>

Is it possible to modify string interpolation using type-specific rules restricted to a specific context? """SELECT \* WHERE { ?s \<$(ns.aa.\_\_str\_\_())\> ?o) } """ outputs "SELECT \* WHERE {\\n?s \<http://example.org/aa\> ?o)…

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

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