# Latest

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

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

**Page:** 682

---

## [UArgumentError: Package ... not found in current path](https://discourse.julialang.org/t/uargumenterror-package-not-found-in-current-path/99690)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 2\
**Last updated:** [June 3, 2023, 1:13pm UTC](https://discourse.julialang.org/t/uargumenterror-package-not-found-in-current-path/99690 "2023-06-03T13:13:04Z")

</div>

I used Pluto to create a file with julia 1.9. But when I want to execute the file in Visual Studio Code I always get the error: UArgumentError: sPackage … not found in current path. Run import Pkg; Pkg.add("..") to …

---

## [How to use the Julia Markdown Documents (.jmd)?](https://discourse.julialang.org/t/how-to-use-the-julia-markdown-documents-jmd/99797)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [June 3, 2023, 12:34pm UTC](https://discourse.julialang.org/t/how-to-use-the-julia-markdown-documents-jmd/99797 "2023-06-03T12:34:45Z")

</div>

I learnt something about Julia Markdown Documents (.jmd) in the document of Julia for VS Code but I didn’t seem to be quite clear about what it is, how it works and when and where it is suitable to be used. Is there some…

---

## [Problem using SymPy](https://discourse.julialang.org/t/problem-using-sympy/98012)

<div class="topic-metadata">

**Author:** [@joeit](https://discourse.julialang.org/u/joeit)\
**Replies:** 4\
**Last updated:** [June 3, 2023, 8:07am UTC](https://discourse.julialang.org/t/problem-using-sympy/98012 "2023-06-03T08:07:17Z")

</div>

Hi everybody, I am new to Julia and I would like to use the sympy functionalities. I have Julia 1.8 installed on Mac OS, with python 3. The SymPy package throws the error below. Any clue? Thanks Joe julia\> using Sy…

---

## [VSCode and PlotlyJS](https://discourse.julialang.org/t/vscode-and-plotlyjs/99801)

<div class="topic-metadata">

**Author:** [@NgChucky](https://discourse.julialang.org/u/NgChucky)\
**Replies:** 0\
**Last updated:** [June 3, 2023, 6:39am UTC](https://discourse.julialang.org/t/vscode-and-plotlyjs/99801 "2023-06-03T06:39:58Z")

</div>

I ran this code in VSCode and it never stops running! Can someone tell me what’s happening? using PlotlyJS, RDatasets iris = RDatasets.dataset("datasets", "iris") x = Vector(iris\[:,1\]) y = Vector(iris\[:,2\]) z = Vector(i…

---

## [Tool: sysimage\_creator for IJulia users](https://discourse.julialang.org/t/tool-sysimage-creator-for-ijulia-users/61229)

<div class="topic-metadata">

**Author:** [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Replies:** 6\
**Last updated:** [June 3, 2023, 6:23am UTC](https://discourse.julialang.org/t/tool-sysimage-creator-for-ijulia-users/61229 "2023-06-03T06:23:20Z")

</div>

Tool: sysimage\_creator for IJulia users Announcement Hi, I’m happy to annaunce the release of sysimage\_creator. It will reduce the time to initialize Jupyter Kernel and plot for the first time. Have a try. Below I will …

---

## [Solving stiff DAE with Float32 inputs for parallel simulations](https://discourse.julialang.org/t/solving-stiff-dae-with-float32-inputs-for-parallel-simulations/99742)

<div class="topic-metadata">

**Author:** [@Ricardo\_Rodrigues](https://discourse.julialang.org/u/Ricardo_Rodrigues)\
**Replies:** 5\
**Last updated:** [June 3, 2023, 4:51am UTC](https://discourse.julialang.org/t/solving-stiff-dae-with-float32-inputs-for-parallel-simulations/99742 "2023-06-03T04:51:59Z")

</div>

Hello all! I’m using DifferentialEquations.jl to solve a stiff DAE. I’ve tried both mass matrix and in-place methods with Rodas4 and IDA respectively at tolerances of 1e-8, and the result is the same (albeit IDA tends t…

---

## [Weird behavior for types within type definitions](https://discourse.julialang.org/t/weird-behavior-for-types-within-type-definitions/99581)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [June 3, 2023, 12:26am UTC](https://discourse.julialang.org/t/weird-behavior-for-types-within-type-definitions/99581 "2023-06-03T00:26:03Z")

</div>

Minimal example: struct A struct B end end. This puts both A and B into the global scope, A without constructors and B with a constructor. Why would B be put into global scope even though no global keyword was used? Mor…

---

## [About Neural Jump SDEs (Jump Diffusions) and Neural PDEs](https://discourse.julialang.org/t/about-neural-jump-sdes-jump-diffusions-and-neural-pdes/99790)

<div class="topic-metadata">

**Author:** [@ShijieZhang10](https://discourse.julialang.org/u/ShijieZhang10)\
**Replies:** 4\
**Last updated:** [June 2, 2023, 11:10pm UTC](https://discourse.julialang.org/t/about-neural-jump-sdes-jump-diffusions-and-neural-pdes/99790 "2023-06-02T23:10:06Z")

</div>

Hello everyone, I’m following the code from Chris about Neural Jumsp SDEs: https://www.juliabloggers.com/neural-jump-sdes-jump-diffusions-and-neural-pdes/ I tried to run the code in this blog but have the error message…

---

## [How to plot the output of the PI controller?](https://discourse.julialang.org/t/how-to-plot-the-output-of-the-pi-controller/99789)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [June 2, 2023, 9:53pm UTC](https://discourse.julialang.org/t/how-to-plot-the-output-of-the-pi-controller/99789 "2023-06-02T21:53:40Z")

</div>

I have the following code: using ControlSystemsBase, Plots P\_sc = 4.42616018443722e6 I\_sc = 11838.3957271545\*4 P = tf(-1.898e-8, \[1, 0.01934\]) C = -pid(P\_sc, I\_sc) FS = feedback(P\*C) I can plot the step response of t…

---

## [Sorted list or heaps?](https://discourse.julialang.org/t/sorted-list-or-heaps/99725)

<div class="topic-metadata">

**Author:** [@gxyau](https://discourse.julialang.org/u/gxyau)\
**Replies:** 14\
**Last updated:** [June 2, 2023, 8:27pm UTC](https://discourse.julialang.org/t/sorted-list-or-heaps/99725 "2023-06-02T20:27:32Z")

</div>

Hello again everyone. I am trying to maintain a sorted list of a custom structure, and broadcast a transformation onto the list whenever needed. Currently I am using BinaryMaxHeap in DataStructure, but it does not allow …

---

## [The value of a function's definition varies after a docstring is added](https://discourse.julialang.org/t/the-value-of-a-functions-definition-varies-after-a-docstring-is-added/99779)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 5\
**Last updated:** [June 2, 2023, 8:14pm UTC](https://discourse.julialang.org/t/the-value-of-a-functions-definition-varies-after-a-docstring-is-added/99779 "2023-06-02T20:14:29Z")

</div>

Run code: function sayHello() println("Hello, world!") end it returns sayHello (generic function with 1 method). Run code: """ Say hello world """ function sayHello() println("Hello, world!") end it return…

---

## [Kolmogorov-Smirnov test for PDF](https://discourse.julialang.org/t/kolmogorov-smirnov-test-for-pdf/99771)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 5\
**Last updated:** [June 2, 2023, 7:46pm UTC](https://discourse.julialang.org/t/kolmogorov-smirnov-test-for-pdf/99771 "2023-06-02T19:46:07Z")

</div>

Hello! I have probability density function(PDF) for my data. I need use Kolmogorov-Smirnov test to check which distribution corresponds PDF. I have not dealt with statistics before, is it possible to throw off some ex…

---

## [How to run MPI jobs on a cluster](https://discourse.julialang.org/t/how-to-run-mpi-jobs-on-a-cluster/97191)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.julialang.org/u/Neo)\
**Replies:** 1\
**Last updated:** [June 2, 2023, 6:56pm UTC](https://discourse.julialang.org/t/how-to-run-mpi-jobs-on-a-cluster/97191 "2023-06-02T18:56:00Z")

</div>

I want to run Julia MPI jobs on a cluster but not sure if I did it in the correct way. There is a large cluster with hundreds of nodes where each node has 128 cores. The resource management system on the cluster is SLUR…

---

## [How write a dbf file](https://discourse.julialang.org/t/how-write-a-dbf-file/63930)

<div class="topic-metadata">

**Author:** [@Rafael\_Brus](https://discourse.julialang.org/u/Rafael_Brus)\
**Replies:** 2\
**Last updated:** [June 2, 2023, 5:06pm UTC](https://discourse.julialang.org/t/how-write-a-dbf-file/63930 "2023-06-02T17:06:44Z")

</div>

How write a dbf file from DataFrame?

---

## [How Beacon Packages Julia Code (In A Monorepo)](https://discourse.julialang.org/t/how-beacon-packages-julia-code-in-a-monorepo/90822)

<div class="topic-metadata">

**Author:** [@jrevels](https://discourse.julialang.org/u/jrevels)\
**Replies:** 8\
**Last updated:** [June 2, 2023, 4:19pm UTC](https://discourse.julialang.org/t/how-beacon-packages-julia-code-in-a-monorepo/90822 "2023-06-02T16:19:13Z")

</div>

:wave: @erichanson recently linked this discussion in Beacon’s Slack, and we were discussing how interesting it is to get a window into other orgs’ approach to this sort of thing. It made us realize that it might be use…

---

## [Help me pls with method error](https://discourse.julialang.org/t/help-me-pls-with-method-error/99763)

<div class="topic-metadata">

**Author:** [@k.kirshin123](https://discourse.julialang.org/u/k.kirshin123)\
**Replies:** 12\
**Last updated:** [June 2, 2023, 4:41pm UTC](https://discourse.julialang.org/t/help-me-pls-with-method-error/99763 "2023-06-02T16:41:02Z")

</div>

I’m trying to implement the multiplication of two random matrices 100x100, but every time I get a method error, no matter what I do using MPI function multiply\_matrices() MPI.Init() comm = MPI.COMM\_WORLD r…

---

## [Reducing TTFX of a macro-focused package (\`DataPipes\`)](https://discourse.julialang.org/t/reducing-ttfx-of-a-macro-focused-package-datapipes/99776)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 0\
**Last updated:** [June 2, 2023, 4:15pm UTC](https://discourse.julialang.org/t/reducing-ttfx-of-a-macro-focused-package-datapipes/99776 "2023-06-02T16:15:25Z")

</div>

I’m trying to evaluate precompilation benefits for my packages, and understand what to run during precompilation for best results in different situations. This question is about macro-focused packages, taking DataPipes …

---

## [How to determine the -3dB frequency of a system](https://discourse.julialang.org/t/how-to-determine-the-3db-frequency-of-a-system/99755)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [June 2, 2023, 4:06pm UTC](https://discourse.julialang.org/t/how-to-determine-the-3db-frequency-of-a-system/99755 "2023-06-02T16:06:44Z")

</div>

I have the following system, controlled with a PI controller: using ControlSystemsBase, Plots P\_sc = 4.42616018443722e6 I\_sc = 11838.3957271545\*4 P = tf(-1.898e-8, \[1, 0.01934\]) C = -pid(P\_sc, I\_sc) PC = feedback(P\*C…

---

## [CUBScout.jl: Codon Usage Bias in Julia](https://discourse.julialang.org/t/cubscout-jl-codon-usage-bias-in-julia/99774)

<div class="topic-metadata">

**Author:** [@gus-pendleton](https://discourse.julialang.org/u/gus-pendleton)\
**Replies:** 0\
**Last updated:** [June 2, 2023, 3:04pm UTC](https://discourse.julialang.org/t/cubscout-jl-codon-usage-bias-in-julia/99774 "2023-06-02T15:04:05Z")

</div>

CUBScout is a new package to calculate Codon Usage Bias in Julia. Currently, CUBScout calculates: Six measures of codon usage bias: B, from Karlin and Mrazek, 1996 ENC, from Wright 1990 ENC’, from Novembre, 2002 MCB, …

---

## [Problem rendering figures with Documenter.jl](https://discourse.julialang.org/t/problem-rendering-figures-with-documenter-jl/99773)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 0\
**Last updated:** [June 2, 2023, 3:02pm UTC](https://discourse.julialang.org/t/problem-rendering-figures-with-documenter-jl/99773 "2023-06-02T15:02:06Z")

</div>

I’m having problems rendering figures (from Plots.jl) in the generated notebook documents. I do convert the Jupyter notebooks to MD and passed to the makedocs. It used to work but now the browser (Safary & Chrome) rende…

---

## [Question mark with dot operations](https://discourse.julialang.org/t/question-mark-with-dot-operations/99758)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 6\
**Last updated:** [June 2, 2023, 3:00pm UTC](https://discourse.julialang.org/t/question-mark-with-dot-operations/99758 "2023-06-02T15:00:51Z")

</div>

I got such an example which quite confused me. ## Won't work a = \[1,2,3\] a .+= (true) ? \[1,1,1\] : 0 ## Functionable version a = \[1,2,3\] b = (true) ? \[1,1,1\] : 0 a .+= b The first version will report ERROR: TypeError: …

---

## [Lazy Callback](https://discourse.julialang.org/t/lazy-callback/99680)

<div class="topic-metadata">

**Author:** [@Cristian\_Duran](https://discourse.julialang.org/u/Cristian_Duran)\
**Replies:** 1\
**Last updated:** [June 2, 2023, 1:16pm UTC](https://discourse.julialang.org/t/lazy-callback/99680 "2023-06-02T13:16:59Z")

</div>

In the callback example provided on the readme of CPLEX.jl we have: # You can select where the callback is run if context\_id != CPX\_CALLBACKCONTEXT\_CANDIDATE return end and then ispoint\_p = Ref{Cint}() ret = CPXca…

---

## [MCMCDistributed or MCMCThreads?](https://discourse.julialang.org/t/mcmcdistributed-or-mcmcthreads/99756)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [June 2, 2023, 12:10pm UTC](https://discourse.julialang.org/t/mcmcdistributed-or-mcmcthreads/99756 "2023-06-02T12:10:38Z")

</div>

Which one is better to make inference fast and why? Does they have any effect if you are using single chain?

---

## [Some questions on \`startup.jl\`](https://discourse.julialang.org/t/some-questions-on-startup-jl/99752)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 3\
**Last updated:** [June 2, 2023, 9:19am UTC](https://discourse.julialang.org/t/some-questions-on-startup-jl/99752 "2023-06-02T09:19:50Z")

</div>

I am configuring the automatic start of OhMyREPL.jl. The document advise putting the following code in the .julia/config/startup.jl file: atreplinit() do repl try @eval using OhMyREPL println("OhMyRE…

---

## [Rescale a matrix between two limits](https://discourse.julialang.org/t/rescale-a-matrix-between-two-limits/99727)

<div class="topic-metadata">

**Author:** [@RDuarte](https://discourse.julialang.org/u/RDuarte)\
**Replies:** 9\
**Last updated:** [June 2, 2023, 8:06am UTC](https://discourse.julialang.org/t/rescale-a-matrix-between-two-limits/99727 "2023-06-02T08:06:33Z")

</div>

Dear all, I’m learning Julia and I would like to rescale a matriz between \[-1 and 1\]. In matlab I’m using rescale but i’m not sure it works in Julia. Do you have a clue of what can I use? Thanks in advance.

---

## [Advance mouse interaction with Makie?](https://discourse.julialang.org/t/advance-mouse-interaction-with-makie/99637)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 3\
**Last updated:** [June 2, 2023, 7:11am UTC](https://discourse.julialang.org/t/advance-mouse-interaction-with-makie/99637 "2023-06-02T07:11:57Z")

</div>

Hi everyone. I have some signals that I need to process and I thought I would give it a go to make my own interpretation code. I have managed to plot my signals with GLMakie in a nice way and I can zoom and pan with th…

---

## [Time to create Union of types in Julia 1.9.0 vs Julia 1.8.5](https://discourse.julialang.org/t/time-to-create-union-of-types-in-julia-1-9-0-vs-julia-1-8-5/99712)

<div class="topic-metadata">

**Author:** [@mtyogi](https://discourse.julialang.org/u/mtyogi)\
**Replies:** 4\
**Last updated:** [June 2, 2023, 6:38am UTC](https://discourse.julialang.org/t/time-to-create-union-of-types-in-julia-1-9-0-vs-julia-1-8-5/99712 "2023-06-02T06:38:35Z")

</div>

Version info Julia installation. Updated v1.8.5 to v1.9.0 as follows: \]add UpdateJulia using UpdateJulia update\_julia() Issue Julia Version 1.8.5 Commit 17cfb8e65e (2023-01-08 06:45 UTC) Platform Info: OS: Windows…

---

## [Why the solution of a system of ODEs is different when you run the code a second time?](https://discourse.julialang.org/t/why-the-solution-of-a-system-of-odes-is-different-when-you-run-the-code-a-second-time/99709)

<div class="topic-metadata">

**Author:** [@atmyo4](https://discourse.julialang.org/u/atmyo4)\
**Replies:** 3\
**Last updated:** [June 2, 2023, 6:13am UTC](https://discourse.julialang.org/t/why-the-solution-of-a-system-of-odes-is-different-when-you-run-the-code-a-second-time/99709 "2023-06-02T06:13:58Z")

</div>

Hello, I am trying to study the effect of a disturbance on a system of ODEs and when I run the code more than once it gives me a slightly different result compared to when I ran it for the first time. I can’t find the ca…

---

## [How to have multiple labelcolors in legend?](https://discourse.julialang.org/t/how-to-have-multiple-labelcolors-in-legend/99745)

<div class="topic-metadata">

**Author:** [@Gianluca\_Fuwa](https://discourse.julialang.org/u/Gianluca_Fuwa)\
**Replies:** 1\
**Last updated:** [June 2, 2023, 5:04am UTC](https://discourse.julialang.org/t/how-to-have-multiple-labelcolors-in-legend/99745 "2023-06-02T05:04:49Z")

</div>

Hi, is there a way to have to have more than one :labelcolor in a Legend() or axislegend()? Specifically in my case, I am trying to make each label be the same color as the line it represents, like plt.legend(labelcol…

---

## [How to replace code with string in julia](https://discourse.julialang.org/t/how-to-replace-code-with-string-in-julia/99654)

<div class="topic-metadata">

**Author:** [@Daptine](https://discourse.julialang.org/u/Daptine)\
**Replies:** 12\
**Last updated:** [June 2, 2023, 3:54am UTC](https://discourse.julialang.org/t/how-to-replace-code-with-string-in-julia/99654 "2023-06-02T03:54:57Z")

</div>

My goal: I want to write a function that can generate functions based on user input string without much performance hit. For example str = "x^2 + x^3" function gen\_func\_from\_str(str::String) function f(x) …

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

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