# Latest

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

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

**Page:** 646

---

## [Deploying franklin site on my web server](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 8\
**Last updated:** [July 14, 2023, 3:05pm UTC](https://discourse.julialang.org/t/deploying-franklin-site-on-my-web-server/101622 "2023-07-14T15:05:28Z")

</div>

I’m trying to deploy a little website I generated with Franklin.jl. It looks fine on my local computer. When deployed at Gideon Simpson, the menus don’t seem to be rendering properly.

---

## [Is Bard better at writing Julia than ChatGPT?](https://discourse.julialang.org/t/is-bard-better-at-writing-julia-than-chatgpt/101617)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 3\
**Last updated:** [July 14, 2023, 2:14pm UTC](https://discourse.julialang.org/t/is-bard-better-at-writing-julia-than-chatgpt/101617 "2023-07-14T14:14:33Z")

</div>

Tried to work on a Tetris playing bot in Julia using ChatGPT, but ran into the problem where every package’s API had changed since 2021. Has anyone had any better luck using Bard? Never fun to start the process and then…

---

## ["using" with a local package?](https://discourse.julialang.org/t/using-with-a-local-package/101625)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 2\
**Last updated:** [July 14, 2023, 1:52pm UTC](https://discourse.julialang.org/t/using-with-a-local-package/101625 "2023-07-14T13:52:57Z")

</div>

I have a package (here let’s say “NEAT.jl”). It is company internal, and will never be shared. I started it with \] generate NEAT (I am aware of PkgTemplates, but it seemed that assumed that you were going to have a git r…

---

## [Monte Carlo simulation of a second order ODE?](https://discourse.julialang.org/t/monte-carlo-simulation-of-a-second-order-ode/101607)

<div class="topic-metadata">

**Author:** [@David\_F](https://discourse.julialang.org/u/David_F)\
**Replies:** 2\
**Last updated:** [July 14, 2023, 1:46pm UTC](https://discourse.julialang.org/t/monte-carlo-simulation-of-a-second-order-ode/101607 "2023-07-14T13:46:04Z")

</div>

I’m interested in solving a second order ODE problem using a stochastic approach. My ODE contains several coefficients, which up to this point, have been constant parameters (µ, Y, η, and φ). Now, I’d like to see how fl…

---

## [How to make plot! work with new plot method](https://discourse.julialang.org/t/how-to-make-plot-work-with-new-plot-method/101621)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 1:09pm UTC](https://discourse.julialang.org/t/how-to-make-plot-work-with-new-plot-method/101621 "2023-07-14T13:09:22Z")

</div>

Hello, I added new methods for plot and histogram to work with a custom type. Both methods work in isolation, but I cannot combine them by calling plot and then histogram! for example. How can I allow plot! and histogra…

---

## [Can not solving the retrain model by neural\_adapter](https://discourse.julialang.org/t/can-not-solving-the-retrain-model-by-neural-adapter/101176)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 1:00pm UTC](https://discourse.julialang.org/t/can-not-solving-the-retrain-model-by-neural-adapter/101176 "2023-07-14T13:00:52Z")

</div>

I tried to run the tutorial of retrain by neural\_adapter as below: using NeuralPDE, Lux, ModelingToolkit, Optimization, OptimizationOptimJL, DiffEqBase import ModelingToolkit: Interval, infimum, supremum @parameters x …

---

## [Error when transfer learning with neural\_adapter](https://discourse.julialang.org/t/error-when-transfer-learning-with-neural-adapter/101145)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 1:00pm UTC](https://discourse.julialang.org/t/error-when-transfer-learning-with-neural-adapter/101145 "2023-07-14T13:00:34Z")

</div>

I tried to transfer the pre-trained weight from another model to retrain a new one by the code in the tutorial as follows: function loss(cord,θ) chain2(cord,θ) .- phi(cord,res.u) end strategy = NeuralPDE.GridTraini…

---

## [Format Dataframe](https://discourse.julialang.org/t/format-dataframe/101591)

<div class="topic-metadata">

**Author:** [@eweiss](https://discourse.julialang.org/u/eweiss)\
**Replies:** 3\
**Last updated:** [July 14, 2023, 12:50pm UTC](https://discourse.julialang.org/t/format-dataframe/101591 "2023-07-14T12:50:07Z")

</div>

I have a dataframe with columns of numbers and strings. I would like to format it like an Excel spreadsheet so the numbers have dollar signs, commas, and 2 decimals. df = DataFrame( StringColumn = \[“A”, “B”, “C”, “D”,…

---

## [Multithreaded memory usage](https://discourse.julialang.org/t/multithreaded-memory-usage/101492)

<div class="topic-metadata">

**Author:** [@maarten\_van\_damme](https://discourse.julialang.org/u/maarten_van_damme)\
**Replies:** 19\
**Last updated:** [July 14, 2023, 12:44pm UTC](https://discourse.julialang.org/t/multithreaded-memory-usage/101492 "2023-07-14T12:44:23Z")

</div>

I have a project where julia’s memory usage is at the moment too high, and we can not use it. I have attempted to replicate the behaviour in a minimal working example. The example is oversimplified, in that you could rew…

---

## [Create \`@raw\` blocks programmatically from Documenter.jl](https://discourse.julialang.org/t/create-raw-blocks-programmatically-from-documenter-jl/101522)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 8\
**Last updated:** [July 14, 2023, 12:09pm UTC](https://discourse.julialang.org/t/create-raw-blocks-programmatically-from-documenter-jl/101522 "2023-07-14T12:09:18Z")

</div>

Is there a way to interpolate or more precisely create blocks of raw html programmaticaly from Julia during the building step of Documenter.jl I have been trying to make interactive plots from Plotly.js work by insertin…

---

## [AoG Barplot: How to match color of a single bar to theme?](https://discourse.julialang.org/t/aog-barplot-how-to-match-color-of-a-single-bar-to-theme/101586)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 4\
**Last updated:** [July 14, 2023, 11:25am UTC](https://discourse.julialang.org/t/aog-barplot-how-to-match-color-of-a-single-bar-to-theme/101586 "2023-07-14T11:25:59Z")

</div>

When I generate grouped barplots in AoG, the colors of the bars are determined by the theme. However, barplots with a single group produce grey bars. How can I set the bar colors to match the theme? MWE: using Algebra…

---

## [Improving runtime](https://discourse.julialang.org/t/improving-runtime/101405)

<div class="topic-metadata">

**Author:** [@Moslem\_Uddin](https://discourse.julialang.org/u/Moslem_Uddin)\
**Replies:** 10\
**Last updated:** [July 14, 2023, 10:55am UTC](https://discourse.julialang.org/t/improving-runtime/101405 "2023-07-14T10:55:21Z")

</div>

I’m a new user of JULIA. The following code is a line by translation from MATLAB with the aim of comparing runtime. However, it seems like the performance doesn’t improve. I’ll be happy to have feedback on why it’s the c…

---

## [Data Fusion Specialist @Saab (UAE)](https://discourse.julialang.org/t/data-fusion-specialist-saab-uae/101608)

<div class="topic-metadata">

**Author:** [@benguela](https://discourse.julialang.org/u/benguela)\
**Replies:** 0\
**Last updated:** [July 14, 2023, 8:47am UTC](https://discourse.julialang.org/t/data-fusion-specialist-saab-uae/101608 "2023-07-14T08:47:12Z")

</div>

We are looking for a Data Fusion Specialist. This position will develop and implement advanced data fusion and tracking algorithms. The work will heavily involve algorithm development using the Julia programming language…

---

## [Question on Short Circuit And](https://discourse.julialang.org/t/question-on-short-circuit-and/101597)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 2\
**Last updated:** [July 14, 2023, 7:55am UTC](https://discourse.julialang.org/t/question-on-short-circuit-and/101597 "2023-07-14T07:55:53Z")

</div>

I was reviewing some source code recently for a package I am using and saw a function essentially defined like this (dumbed down to a MWE here). function func(n) (n \>= 5) && return "yes" return "no" end I was very conf…

---

## [Deprected - Q: Optim.jl | Passing fixed parameters to an analytic derivative \[gradient\] for univariate \[multivariate\] optimization?](https://discourse.julialang.org/t/deprected-q-optim-jl-passing-fixed-parameters-to-an-analytic-derivative-gradient-for-univariate-multivariate-optimization/101551)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 0\
**Last updated:** [July 12, 2023, 9:28pm UTC](https://discourse.julialang.org/t/deprected-q-optim-jl-passing-fixed-parameters-to-an-analytic-derivative-gradient-for-univariate-multivariate-optimization/101551 "2023-07-12T21:28:33Z")

</div>

This question is deprecated and is replaced by Q: Optimization.jl | Passing fixed parameters to an analytic derivative \[gradient\] for univariate \[multivariate\] optimization? Hello, This question may be considered a con…

---

## [Mean of vector of reshaped reinterpreted matrices gives completely wrong result](https://discourse.julialang.org/t/mean-of-vector-of-reshaped-reinterpreted-matrices-gives-completely-wrong-result/101601)

<div class="topic-metadata">

**Author:** [@Ethan\_Diao](https://discourse.julialang.org/u/Ethan_Diao)\
**Replies:** 4\
**Last updated:** [July 14, 2023, 6:38am UTC](https://discourse.julialang.org/t/mean-of-vector-of-reshaped-reinterpreted-matrices-gives-completely-wrong-result/101601 "2023-07-14T06:38:50Z")

</div>

The code is as follows. I have to create a new matrix from the reshaped reinterpreted matrix to get the right result. vector\_of\_arr\_1 = \[reshape(reinterpret(UInt16, rand(UInt8, 3\*3\*2)), (3, 3)) for \_ in 1:10\]; vector\_of…

---

## [Inline function returns tuple of mixed type, assigned to a tuple of variables in the caller](https://discourse.julialang.org/t/inline-function-returns-tuple-of-mixed-type-assigned-to-a-tuple-of-variables-in-the-caller/101598)

<div class="topic-metadata">

**Author:** [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Replies:** 2\
**Last updated:** [July 14, 2023, 6:30am UTC](https://discourse.julialang.org/t/inline-function-returns-tuple-of-mixed-type-assigned-to-a-tuple-of-variables-in-the-caller/101598 "2023-07-14T06:30:46Z")

</div>

Dear Julia community, I wish to learn the appropriate usage of Julia tuples. Consider the following scenario. One needs to make an inline function to separate a block of code inside a very complicated function. Natural…

---

## [How can I get the maximum of an absolute value of an objective](https://discourse.julialang.org/t/how-can-i-get-the-maximum-of-an-absolute-value-of-an-objective/101356)

<div class="topic-metadata">

**Author:** [@That\_ind](https://discourse.julialang.org/u/That_ind)\
**Replies:** 9\
**Last updated:** [July 14, 2023, 4:30am UTC](https://discourse.julialang.org/t/how-can-i-get-the-maximum-of-an-absolute-value-of-an-objective/101356 "2023-07-14T04:30:40Z")

</div>

Hi, How can I get the maximum of an absolute value of an objective? Something like @objective(model, Max, abs(var\_ref)) But I got the following ERROR: LoadError: MethodError: no method matching abs(::AffExpr)

---

## [RollingFunctions.jl (first look at v1)](https://discourse.julialang.org/t/rollingfunctions-jl-first-look-at-v1/101570)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 11\
**Last updated:** [July 14, 2023, 4:09am UTC](https://discourse.julialang.org/t/rollingfunctions-jl-first-look-at-v1/101570 "2023-07-14T04:09:39Z")

</div>

Early access to RollingFunctions.jl v1 is given as WindowedFunctions.jl. This version does more, has padding, and provides tiling. (see the docs). # add the package using Pkg github\_url = "JeffreySarnoff/WindowedFuncti…

---

## [In-place matrix operations slower?](https://discourse.julialang.org/t/in-place-matrix-operations-slower/101469)

<div class="topic-metadata">

**Author:** [@lzxnl](https://discourse.julialang.org/u/lzxnl)\
**Replies:** 9\
**Last updated:** [July 14, 2023, 3:23am UTC](https://discourse.julialang.org/t/in-place-matrix-operations-slower/101469 "2023-07-14T03:23:49Z")

</div>

I have the following two functions for linear regression. function ordinary\_least\_squares\_regression(x,y;lambda=0,weights=0) if weights == 0 X = x' \* x + lambda\*I return X\\(x'y) else w = …

---

## [Is there a convenient way to read netCDF datasets stored in nested groups when using NCDatasets.jl?](https://discourse.julialang.org/t/is-there-a-convenient-way-to-read-netcdf-datasets-stored-in-nested-groups-when-using-ncdatasets-jl/101589)

<div class="topic-metadata">

**Author:** [@haffner](https://discourse.julialang.org/u/haffner)\
**Replies:** 3\
**Last updated:** [July 14, 2023, 12:07am UTC](https://discourse.julialang.org/t/is-there-a-convenient-way-to-read-netcdf-datasets-stored-in-nested-groups-when-using-ncdatasets-jl/101589 "2023-07-14T00:07:22Z")

</div>

Hi, I’m relatively new to Julia and trying to use NCDatasets.jl to read satellite data stored in netCDF files. The data are stored in compound groups at the end of a path like this /BAND1\_RADIANCE/STANDARD\_MODE/GEODATA…

---

## [Constant out of memory error of VSCode extension](https://discourse.julialang.org/t/constant-out-of-memory-error-of-vscode-extension/101323)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 8\
**Last updated:** [July 13, 2023, 11:49pm UTC](https://discourse.julialang.org/t/constant-out-of-memory-error-of-vscode-extension/101323 "2023-07-13T23:49:10Z")

</div>

So I use VSCode to login in to the supercomputer I’m working with, and I installed the Julia extension on it. It works well, but recently I noticed that the following error appears frequently: \[ Info: Loading GPUArraysC…

---

## [JuMP SCIP Error: no shadow price for LP](https://discourse.julialang.org/t/jump-scip-error-no-shadow-price-for-lp/101138)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 10:26pm UTC](https://discourse.julialang.org/t/jump-scip-error-no-shadow-price-for-lp/101138 "2023-07-13T22:26:56Z")

</div>

I get an error about a missing shadow price when I try to use SCIP to solve a simle LP in JuMP. I don’t get the error if I use HiGHS or COPT. I use Julia v1.9.1 and the following packages: pkg\> status Status ~/.julia/e…

---

## [Optim.jl NelderMead, how to avoid stucking situation?](https://discourse.julialang.org/t/optim-jl-neldermead-how-to-avoid-stucking-situation/101590)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 1\
**Last updated:** [July 13, 2023, 9:34pm UTC](https://discourse.julialang.org/t/optim-jl-neldermead-how-to-avoid-stucking-situation/101590 "2023-07-13T21:34:00Z")

</div>

I think this is a question more related to optimization than Julia’s. I figured out that Optim.jl NelderMead algorithm doesn’t support fminbox. The out-of-boundary search is not a real problem because I can impose some …

---

## [Bounding variables in a NonlinearSystem using MTK](https://discourse.julialang.org/t/bounding-variables-in-a-nonlinearsystem-using-mtk/101582)

<div class="topic-metadata">

**Author:** [@chris-hampel-CA](https://discourse.julialang.org/u/chris-hampel-CA)\
**Replies:** 3\
**Last updated:** [July 13, 2023, 9:14pm UTC](https://discourse.julialang.org/t/bounding-variables-in-a-nonlinearsystem-using-mtk/101582 "2023-07-13T21:14:02Z")

</div>

Hello, I have a general question about using ModelingToolkit when solving a NonlinearSystem. I noticed when building an OptimizationSystem you can bound your variables. Modeling Optimization Problems · ModelingToolkit.…

---

## [Error with WENO Scheme](https://discourse.julialang.org/t/error-with-weno-scheme/99005)

<div class="topic-metadata">

**Author:** [@emmabottomley](https://discourse.julialang.org/u/emmabottomley)\
**Replies:** 3\
**Last updated:** [July 13, 2023, 8:14pm UTC](https://discourse.julialang.org/t/error-with-weno-scheme/99005 "2023-07-13T20:14:38Z")

</div>

I’m having trouble using the WENO Scheme for my system of PDEs. My system is given as and I have the following code to solve the numerical solution for each equation: using OrdinaryDiffEq, ModelingToolkit, MethodOfL…

---

## [Comparing Julia structs](https://discourse.julialang.org/t/comparing-julia-structs/101554)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 8\
**Last updated:** [July 13, 2023, 6:54pm UTC](https://discourse.julialang.org/t/comparing-julia-structs/101554 "2023-07-13T18:54:20Z")

</div>

How should I do comparison of data structures involving structs. For example: struct Type1 a::Vector{Int} b::Float64 end struct Type2 c::Vector{Type1} d::Dict{Tuple{Int, Int}, Int} end obj1\_type1 = Typ…

---

## [Best practice for creating and managing dependancies of folders that are not needed by the package itself](https://discourse.julialang.org/t/best-practice-for-creating-and-managing-dependancies-of-folders-that-are-not-needed-by-the-package-itself/101559)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 4\
**Last updated:** [July 13, 2023, 5:51pm UTC](https://discourse.julialang.org/t/best-practice-for-creating-and-managing-dependancies-of-folders-that-are-not-needed-by-the-package-itself/101559 "2023-07-13T17:51:47Z")

</div>

Say I have a package “MyPkg.jl” with the following structure: MyPkg.jl/Manifest.toml MyPkg.jl/Project.toml MyPkg.jl/src/MyPkg.jl MyPkg.jl/benchmark/benchmark.jl where benchmark.jl is a script that produces benchmark st…

---

## [How to conditionally load code with package extensions](https://discourse.julialang.org/t/how-to-conditionally-load-code-with-package-extensions/101578)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 5:46pm UTC](https://discourse.julialang.org/t/how-to-conditionally-load-code-with-package-extensions/101578 "2023-07-13T17:46:20Z")

</div>

I have been going through documentation and examples on GitHub to learn how to conditionally load code. I keep running into issues. I think I would benefit from a MWE. I created a repo for this purpose here. I would like…

---

## [Different output when call Fortran from Julia](https://discourse.julialang.org/t/different-output-when-call-fortran-from-julia/97688)

<div class="topic-metadata">

**Author:** [@X\_Chen](https://discourse.julialang.org/u/X_Chen)\
**Replies:** 5\
**Last updated:** [July 13, 2023, 3:29pm UTC](https://discourse.julialang.org/t/different-output-when-call-fortran-from-julia/97688 "2023-07-13T15:29:40Z")

</div>

Hello! I am trying to use a package in Fortran, and I tested it in Julia - it works perfectly well. Now I am trying to write a function in Julia that I can use it as a normal Julia function. Here is the function code: f…

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

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