# Latest

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

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

**Page:** 647

---

## [Wrapping C function returning struct containing character array (Cstring)](https://discourse.julialang.org/t/wrapping-c-function-returning-struct-containing-character-array-cstring/101574)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 3\
**Last updated:** [July 13, 2023, 3:17pm UTC](https://discourse.julialang.org/t/wrapping-c-function-returning-struct-containing-character-array-cstring/101574 "2023-07-13T15:17:50Z")

</div>

Example code, but essentially what the C library that I am wrapping returns: #include \<string.h\> #include \<stdio.h\> #include \<stdlib.h\> #define BUFSIZE 128 struct C { int a; double b; char c\[BUFSIZE\]; }; s…

---

## [Performance Warning when Solving Parameterized ODE](https://discourse.julialang.org/t/performance-warning-when-solving-parameterized-ode/101541)

<div class="topic-metadata">

**Author:** [@wg030](https://discourse.julialang.org/u/wg030)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 2:57pm UTC](https://discourse.julialang.org/t/performance-warning-when-solving-parameterized-ode/101541 "2023-07-13T14:57:02Z")

</div>

Hi! With one of the latest Julia updates I got the following warning while running my code: Warning: Using arrays or dicts to store parameters of different types can hurt performance. │ Consider using tuples instead. …

---

## [Convert a Python function with decorator to Julia](https://discourse.julialang.org/t/convert-a-python-function-with-decorator-to-julia/101575)

<div class="topic-metadata">

**Author:** [@FemtoTrader](https://discourse.julialang.org/u/FemtoTrader)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 2:47pm UTC](https://discourse.julialang.org/t/convert-a-python-function-with-decorator-to-julia/101575 "2023-07-13T14:47:45Z")

</div>

Hello, I wonder what is the more Julia-nesque approach to convert a Python function with decorator such as @schedule(interval="5m", symbol="SYMBOL", window\_size=150) def run\_5m(state, data): print("I'm running once…

---

## [Broadcasting Heisen-allocations](https://discourse.julialang.org/t/broadcasting-heisen-allocations/101572)

<div class="topic-metadata">

**Author:** [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 2:14pm UTC](https://discourse.julialang.org/t/broadcasting-heisen-allocations/101572 "2023-07-13T14:14:48Z")

</div>

I have a weird code snippet that was reduced from a real codebase that was mysteriously allocating where it shouldn’t, for all I could tell: using BenchmarkTools using StaticArrays test(z::SVector{N}) where {N} = prob…

---

## [Is there a way for Pluto to print the terminal output while it's running?](https://discourse.julialang.org/t/is-there-a-way-for-pluto-to-print-the-terminal-output-while-its-running/101576)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 1:59pm UTC](https://discourse.julialang.org/t/is-there-a-way-for-pluto-to-print-the-terminal-output-while-its-running/101576 "2023-07-13T13:59:02Z")

</div>

Hello everyone, I’m using Pluto notebook and would like it to show the progress print as it’s running. If I run the following code in the terminal: res = Optimization.solve(prob,BFGS(); callback = callback, maxiters=4…

---

## [Locally building docs complains that the parent package does not have a dependency](https://discourse.julialang.org/t/locally-building-docs-complains-that-the-parent-package-does-not-have-a-dependency/101468)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 1:27pm UTC](https://discourse.julialang.org/t/locally-building-docs-complains-that-the-parent-package-does-not-have-a-dependency/101468 "2023-07-13T13:27:36Z")

</div>

I have a local MyPackage project, with a docs subdirectory. Both were initially created by PkgTemplates.jl. Before Pkg.adding dependencies to MyPackage, I tested the docs build process with Documenter.jl in Powershell w…

---

## [Flux sending model to gpu does not behave well](https://discourse.julialang.org/t/flux-sending-model-to-gpu-does-not-behave-well/101571)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 1:21pm UTC](https://discourse.julialang.org/t/flux-sending-model-to-gpu-does-not-behave-well/101571 "2023-07-13T13:21:44Z")

</div>

Hello, I have a pretrained custom model which I use it as the input for a second model. I can send the first model to gpu without any issue and save the model parameters as expected. The second model just copies the pa…

---

## [FTP: how to download recursivelly a whole directory - or at least get the information if a certain element is a dir?](https://discourse.julialang.org/t/ftp-how-to-download-recursivelly-a-whole-directory-or-at-least-get-the-information-if-a-certain-element-is-a-dir/101524)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [July 13, 2023, 12:57pm UTC](https://discourse.julialang.org/t/ftp-how-to-download-recursivelly-a-whole-directory-or-at-least-get-the-information-if-a-certain-element-is-a-dir/101524 "2023-07-13T12:57:31Z")

</div>

Hello, I need to recursively download a directory from an anonymous FTP client: using FTPClient ftp\_init(); ftp = FTP(hostname = "palantir.boku.ac.at", username = "anonymous", password = "") cd(ftp, "Public/ImprovedFore…

---

## [Error when attempting to load Franklin pkg](https://discourse.julialang.org/t/error-when-attempting-to-load-franklin-pkg/101511)

<div class="topic-metadata">

**Author:** [@tomc](https://discourse.julialang.org/u/tomc)\
**Replies:** 5\
**Last updated:** [July 13, 2023, 12:51pm UTC](https://discourse.julialang.org/t/error-when-attempting-to-load-franklin-pkg/101511 "2023-07-13T12:51:11Z")

</div>

Environment: OS: Pop!\_OS 22.04 LTS / Processor: 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz × 8 / 16 GB RAM / 500 GB SSD / Firefox 115 I’m almost a total newbie to Julia, but am amateur programmer/website builder with sev…

---

## [What is that documenter+liveserver guide?](https://discourse.julialang.org/t/what-is-that-documenter-liveserver-guide/101564)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 11:35am UTC](https://discourse.julialang.org/t/what-is-that-documenter-liveserver-guide/101564 "2023-07-13T11:35:27Z")

</div>

I was reading a very complete guide to using Documenter and LiveServer and generating the docs on github so they are “the docs” associated with the repo … anyone know that link?

---

## [Neural SDE example no method matching error](https://discourse.julialang.org/t/neural-sde-example-no-method-matching-error/101542)

<div class="topic-metadata">

**Author:** [@Mieszko](https://discourse.julialang.org/u/Mieszko)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 10:53am UTC](https://discourse.julialang.org/t/neural-sde-example-no-method-matching-error/101542 "2023-07-13T10:53:22Z")

</div>

Hi, I was following this tutorial for NeuralSDEs: https://docs.juliahub.com/DiffEqFlux/BdO4p/1.10.3/examples/NN-SDE/. I tried to compile in Visual Studio and reached it until this moment: using Plots, Flux, DiffEqFlux…

---

## [Stochastic differential equation with high dimensions is using too much memory and taking too long](https://discourse.julialang.org/t/stochastic-differential-equation-with-high-dimensions-is-using-too-much-memory-and-taking-too-long/101478)

<div class="topic-metadata">

**Author:** [@KalelR](https://discourse.julialang.org/u/KalelR)\
**Replies:** 12\
**Last updated:** [July 13, 2023, 10:52am UTC](https://discourse.julialang.org/t/stochastic-differential-equation-with-high-dimensions-is-using-too-much-memory-and-taking-too-long/101478 "2023-07-13T10:52:05Z")

</div>

Hey! I want to integrate a system of 40+ differential equations each with independent additive white noise. With the current implementation I’m trying this is using way too much memory and is too slow. A minimal example …

---

## [Plots.contour rounding the contour labels](https://discourse.julialang.org/t/plots-contour-rounding-the-contour-labels/100939)

<div class="topic-metadata">

**Author:** [@selvi-aras](https://discourse.julialang.org/u/selvi-aras)\
**Replies:** 3\
**Last updated:** [July 13, 2023, 9:28am UTC](https://discourse.julialang.org/t/plots-contour-rounding-the-contour-labels/100939 "2023-07-13T09:28:52Z")

</div>

I am using Plots.jl to generate a contour plot. It works great but the contour labels have 5 digits after the decimal point: How can I update my code, which is shared next, so that the contour labels are rounded to de…

---

## [How to separate module environment from package environment](https://discourse.julialang.org/t/how-to-separate-module-environment-from-package-environment/101568)

<div class="topic-metadata">

**Author:** [@Titas22](https://discourse.julialang.org/u/Titas22)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 9:13am UTC](https://discourse.julialang.org/t/how-to-separate-module-environment-from-package-environment/101568 "2023-07-13T09:13:10Z")

</div>

Hi, Is there a way to nicely and easily separate a development environment from the actual package one? Say I’m working on a small module and to test it I want to use it either in REPL or a scrip and I want to use Revi…

---

## [Library for sparse tensorized polynomials](https://discourse.julialang.org/t/library-for-sparse-tensorized-polynomials/101549)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 8:18am UTC](https://discourse.julialang.org/t/library-for-sparse-tensorized-polynomials/101549 "2023-07-13T08:18:13Z")

</div>

Hello, I am wondering if there is a library for sparse tensorized poynomials? For x \\in \\mathbb{R}^n, I am interested in functions f:\\mathbb{R}^n \\to \\mathbb{R} that can be decomposed as a sum of tensorized polynomials…

---

## [Citation principles of Julia packages](https://discourse.julialang.org/t/citation-principles-of-julia-packages/101321)

<div class="topic-metadata">

**Author:** [@Atiyah](https://discourse.julialang.org/u/Atiyah)\
**Replies:** 14\
**Last updated:** [July 13, 2023, 7:14am UTC](https://discourse.julialang.org/t/citation-principles-of-julia-packages/101321 "2023-07-13T07:14:40Z")

</div>

Question Is there (an attempt) for establishing a (sub-)community (semi-)standards regarding citations and paper-independent publications of Julia packages? Context After browsing few papers in recent Julia conferenc…

---

## [Where do scalar-valued results of GPU operations go?](https://discourse.julialang.org/t/where-do-scalar-valued-results-of-gpu-operations-go/101546)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 6:23am UTC](https://discourse.julialang.org/t/where-do-scalar-valued-results-of-gpu-operations-go/101546 "2023-07-13T06:23:34Z")

</div>

Hello everyone. It does not seem possible to push a pure scalar to the GPU, but many common linear algebra operations result in scalars - most prominently, the inner product. So where do these scalars live? Do they go ba…

---

## [How do I get the bounds (or center) of a named region in GMT.jl](https://discourse.julialang.org/t/how-do-i-get-the-bounds-or-center-of-a-named-region-in-gmt-jl/101506)

<div class="topic-metadata">

**Author:** [@Philip\_Stuckey](https://discourse.julialang.org/u/Philip_Stuckey)\
**Replies:** 3\
**Last updated:** [July 13, 2023, 1:06am UTC](https://discourse.julialang.org/t/how-do-i-get-the-bounds-or-center-of-a-named-region-in-gmt-jl/101506 "2023-07-13T01:06:16Z")

</div>

Hi, so I’m messing around with making a map of California with a Lambert Conic Projection (my eventual goal is to make maps of the maidenhead locator for various states), unfortunately it’s at an angle unless I manually …

---

## [Thoughts and tempering expectations on redefining structs](https://discourse.julialang.org/t/thoughts-and-tempering-expectations-on-redefining-structs/101190)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 58\
**Last updated:** [July 12, 2023, 11:11pm UTC](https://discourse.julialang.org/t/thoughts-and-tempering-expectations-on-redefining-structs/101190 "2023-07-12T23:11:56Z")

</div>

TLDR: musings on how redefining structs cannot be as convenient as we’d like, nothing really important so feel free to ignore this thread Overoptimistic expectations We enjoy the interactivity and incremental code modi…

---

## [Property destructuring](https://discourse.julialang.org/t/property-destructuring/101550)

<div class="topic-metadata">

**Author:** [@Ralf\_Dietrich](https://discourse.julialang.org/u/Ralf_Dietrich)\
**Replies:** 5\
**Last updated:** [July 12, 2023, 9:46pm UTC](https://discourse.julialang.org/t/property-destructuring/101550 "2023-07-12T21:46:06Z")

</div>

Unter Property destructoring I found a simple example for property destructuring. (; b, a) = (a=1, b=2, c=3) I understand how it works, but it is not clear to me where you can use this practically. Can someone show m…

---

## [Shade in Region between two lines - Makie](https://discourse.julialang.org/t/shade-in-region-between-two-lines-makie/101529)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 5\
**Last updated:** [July 12, 2023, 9:29pm UTC](https://discourse.julialang.org/t/shade-in-region-between-two-lines-makie/101529 "2023-07-12T21:29:11Z")

</div>

Hi, In Makie I can plot two linear lines with the code x = LinRange(0,100,101) f = Figure(); ax = Axis(f\[1,1\]) lines!(x, 30 .+ 0.6\*x, color = :blue, label = "Lower") lines!(x, 2 .+ 1.1\*x, color = :blue, label = "Upper"…

---

## [Get MLE parameters (e.g., p-value, confidence intervals...) from a Turing model using Optim.jl](https://discourse.julialang.org/t/get-mle-parameters-e-g-p-value-confidence-intervals-from-a-turing-model-using-optim-jl/101433)

<div class="topic-metadata">

**Author:** [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Replies:** 3\
**Last updated:** [July 12, 2023, 9:11pm UTC](https://discourse.julialang.org/t/get-mle-parameters-e-g-p-value-confidence-intervals-from-a-turing-model-using-optim-jl/101433 "2023-07-12T21:11:03Z")

</div>

EDIT: There is now PR to add this feature to Turing This might be a very silly question… but assuming the following simple linear model: using Turing using DataFrames using LinearAlgebra x = \[0, 1, 2, 3, 4, 5, 6, 7,…

---

## [Streamplot - Streamlines in Julia](https://discourse.julialang.org/t/streamplot-streamlines-in-julia/101537)

<div class="topic-metadata">

**Author:** [@Sisisi](https://discourse.julialang.org/u/Sisisi)\
**Replies:** 4\
**Last updated:** [July 12, 2023, 7:51pm UTC](https://discourse.julialang.org/t/streamplot-streamlines-in-julia/101537 "2023-07-12T19:51:16Z")

</div>

Hello, I have this MATLAB code (arrays are examples) XX =\[0.0 0.0 0.0; 0.5 0.5 0.5; 1.0 1.0 1.0\]; YY = \[0.0 0.5 1.0; 0.0 0.5 1.0; 0.0 0.5 1.0\]; U = \[-0.0 -0.0 0.0; -0.0 -0.6 0.0; -0.0 -9.184850993605148e-17 0.0\]; V = \[…

---

## [Inspect a Julia source code from an other Julia code](https://discourse.julialang.org/t/inspect-a-julia-source-code-from-an-other-julia-code/101547)

<div class="topic-metadata">

**Author:** [@FemtoTrader](https://discourse.julialang.org/u/FemtoTrader)\
**Replies:** 4\
**Last updated:** [July 12, 2023, 7:19pm UTC](https://discourse.julialang.org/t/inspect-a-julia-source-code-from-an-other-julia-code/101547 "2023-07-12T19:19:47Z")

</div>

Hello, I’m looking for a way to “inspect” a Julia source code from an other Julia code ie I would like to ensure that a code which is stored in a strat.jl file contains an init function from an Julia code named runner.j…

---

## [A way to add the iteration number on the callback function of Julia's NeuralPDE?](https://discourse.julialang.org/t/a-way-to-add-the-iteration-number-on-the-callback-function-of-julias-neuralpde/101507)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 2\
**Last updated:** [July 12, 2023, 6:31pm UTC](https://discourse.julialang.org/t/a-way-to-add-the-iteration-number-on-the-callback-function-of-julias-neuralpde/101507 "2023-07-12T18:31:44Z")

</div>

I’m using NeuralPDE.jl to solve a system of nonlinear PDEs, following the example in the docs. I wonder if there is a way to add the iteration number in the callback function, so I will know the progress. The callback …

---

## [QR-Iteration Code](https://discourse.julialang.org/t/qr-iteration-code/101544)

<div class="topic-metadata">

**Author:** [@Timo\_f](https://discourse.julialang.org/u/Timo_f)\
**Replies:** 2\
**Last updated:** [July 12, 2023, 5:42pm UTC](https://discourse.julialang.org/t/qr-iteration-code/101544 "2023-07-12T17:42:18Z")

</div>

Hello everyone, I have to program the qr iteration for the university and compare it with the commands eigvals and eigvecs. Unfortunately I can’t get the code to output the correct and same vectors as eigvecs. eigvecs g…

---

## [Global Sensitivity Analysis in a subset of model parameters](https://discourse.julialang.org/t/global-sensitivity-analysis-in-a-subset-of-model-parameters/100666)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 4\
**Last updated:** [July 12, 2023, 4:45pm UTC](https://discourse.julialang.org/t/global-sensitivity-analysis-in-a-subset-of-model-parameters/100666 "2023-07-12T16:45:41Z")

</div>

Hi everyone. I was wondering if there is a way to perform Global Sensitivity Analysis in a subset of model parameters, because some of them are physically constant. The most naive approach would be to set the lower and u…

---

## [NeuralPDE.jl GPU example returns "ERROR: UndefVarError: \`Adam\` not defined"](https://discourse.julialang.org/t/neuralpde-jl-gpu-example-returns-error-undefvarerror-adam-not-defined/101501)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 4:23pm UTC](https://discourse.julialang.org/t/neuralpde-jl-gpu-example-returns-error-undefvarerror-adam-not-defined/101501 "2023-07-12T16:23:05Z")

</div>

Hello everyone, I’m trying to run the example from NeuralPDE: https://neuralpde.sciml.ai/stable/tutorials/gpu/ However when I run the line: res = Optimization.solve(prob,Adam(0.01);callback = callback,maxiters=2500) …

---

## [Obtain jacobian used by NLsolve](https://discourse.julialang.org/t/obtain-jacobian-used-by-nlsolve/101532)

<div class="topic-metadata">

**Author:** [@PABLO\_ESTEBAN\_MONTES](https://discourse.julialang.org/u/PABLO_ESTEBAN_MONTES)\
**Replies:** 2\
**Last updated:** [July 12, 2023, 3:08pm UTC](https://discourse.julialang.org/t/obtain-jacobian-used-by-nlsolve/101532 "2023-07-12T15:08:16Z")

</div>

Hello, I have a function, let’s call it f!, whose zero I’m trying to find by using the Newton method. I know that the package NLsolve allows me to do this either giving it the jacobian, with something of the form nlsolv…

---

## [Printed output from Julia script](https://discourse.julialang.org/t/printed-output-from-julia-script/101531)

<div class="topic-metadata">

**Author:** [@adam-srut](https://discourse.julialang.org/u/adam-srut)\
**Replies:** 3\
**Last updated:** [July 12, 2023, 3:06pm UTC](https://discourse.julialang.org/t/printed-output-from-julia-script/101531 "2023-07-12T15:06:26Z")

</div>

Julia does not seem to be printing the output as it appears when redirected to a file. I have the following code in file print\_test.jl: for i in 1:10 println("iteration: $i") sleep(1) end when I run the scri…

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

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