# Latest

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

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

**Page:** 697

---

## [How to use gridap topology optimization while using 2 governing equations](https://discourse.julialang.org/t/how-to-use-gridap-topology-optimization-while-using-2-governing-equations/99017)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 0\
**Last updated:** [May 17, 2023, 9:08pm UTC](https://discourse.julialang.org/t/how-to-use-gridap-topology-optimization-while-using-2-governing-equations/99017 "2023-05-17T21:08:22Z")

</div>

I want to use gridap topology optimization for fracture optimization. so there is two governing equations one is for stress strain relation and the other is about fracture energy. how can i use gridap in this case? as i …

---

## [How to apply a symbolic equation on a vector?](https://discourse.julialang.org/t/how-to-apply-a-symbolic-equation-on-a-vector/98988)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [May 17, 2023, 8:51pm UTC](https://discourse.julialang.org/t/how-to-apply-a-symbolic-equation-on-a-vector/98988 "2023-05-17T20:51:35Z")

</div>

I have the following code: using ModelingToolkit, OrdinaryDiffEq, DataInterpolations, Plots Cp=\[0.024384377390186646,0.03811829845979822,0.05731175742000688,0.0803120051369546,0.10526323380995135,0.1312349486430945, …

---

## [Time difference in months/quarters/years](https://discourse.julialang.org/t/time-difference-in-months-quarters-years/98890)

<div class="topic-metadata">

**Author:** [@Pino](https://discourse.julialang.org/u/Pino)\
**Replies:** 3\
**Last updated:** [May 17, 2023, 8:37pm UTC](https://discourse.julialang.org/t/time-difference-in-months-quarters-years/98890 "2023-05-17T20:37:15Z")

</div>

I’d like to calculate the number of periods between two dates. The aim is to calculate a loan amortizing schedule. The following code arrives up to a certain point, i.e. to calculate the interval in days, but I’d like t…

---

## [Cleaning Data](https://discourse.julialang.org/t/cleaning-data/99015)

<div class="topic-metadata">

**Author:** [@eweiss](https://discourse.julialang.org/u/eweiss)\
**Replies:** 3\
**Last updated:** [May 17, 2023, 8:17pm UTC](https://discourse.julialang.org/t/cleaning-data/99015 "2023-05-17T20:17:21Z")

</div>

I am downloading a CSV file that has financial data. So it has dollar signs, commas, decimal points, pluses, and minuses. I’ve been trying to remove this extra stuff so I can using floating point arithmetic, but I can’t …

---

## [Plotting countries with GeoMakie: reduce size and more](https://discourse.julialang.org/t/plotting-countries-with-geomakie-reduce-size-and-more/97966)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 10\
**Last updated:** [May 17, 2023, 8:14pm UTC](https://discourse.julialang.org/t/plotting-countries-with-geomakie-reduce-size-and-more/97966 "2023-05-17T20:14:56Z")

</div>

I am trying visualize some specific countries with GeoMakie.jl. I 've seen Examples · GeoMakie.jl and I tried to do something similar: begin # Acquire data ger\_states = Downloads.download("https://raw.githubuserconte…

---

## [How do I specify a precomputed kernel in SVM using LIBSVM or MLJ?](https://discourse.julialang.org/t/how-do-i-specify-a-precomputed-kernel-in-svm-using-libsvm-or-mlj/61962)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 4\
**Last updated:** [May 17, 2023, 8:01pm UTC](https://discourse.julialang.org/t/how-do-i-specify-a-precomputed-kernel-in-svm-using-libsvm-or-mlj/61962 "2023-05-17T20:01:25Z")

</div>

Question arising in an MLJ slack post: maybe this is a naive question, but how do you actually train an SVM using a precomputed kernel using LIBSVM or MLJ? I can’t seem to find a way to “give” the kernel matrix to any s…

---

## [Is there a way to switch between inline and interactive mode with IJulia and PyPlot?](https://discourse.julialang.org/t/is-there-a-way-to-switch-between-inline-and-interactive-mode-with-ijulia-and-pyplot/21128)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 9\
**Last updated:** [May 17, 2023, 7:41pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-switch-between-inline-and-interactive-mode-with-ijulia-and-pyplot/21128 "2023-05-17T19:41:19Z")

</div>

Basically I’m working in Jupyter notebook and occasionally I want to pop out a plot into its own window to make it interactive (otherwise inline by default is OK). Is this possible?

---

## [Saving Flux models](https://discourse.julialang.org/t/saving-flux-models/99013)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 0\
**Last updated:** [May 17, 2023, 7:25pm UTC](https://discourse.julialang.org/t/saving-flux-models/99013 "2023-05-17T19:25:43Z")

</div>

Checking documentation for current stable Flux v0.13.16, I am wondering why it is suggested so many transformations (struct, functor) prior to saving a model with Flux.state(transformed\_model). In which sense just savin…

---

## [INLA.jl implementation help](https://discourse.julialang.org/t/inla-jl-implementation-help/98958)

<div class="topic-metadata">

**Author:** [@bparbhu](https://discourse.julialang.org/u/bparbhu)\
**Replies:** 4\
**Last updated:** [May 17, 2023, 7:23pm UTC](https://discourse.julialang.org/t/inla-jl-implementation-help/98958 "2023-05-17T19:23:53Z")

</div>

So I started trying to reverse engineer this comparison done in R that performs a very close implementation of INLA from scratch. Though, I’m having difficulty reproducing the results of the “from-scratch” implementation…

---

## [Do we need to use weights in imbalanced survival models?](https://discourse.julialang.org/t/do-we-need-to-use-weights-in-imbalanced-survival-models/99008)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 0\
**Last updated:** [May 17, 2023, 5:08pm UTC](https://discourse.julialang.org/t/do-we-need-to-use-weights-in-imbalanced-survival-models/99008 "2023-05-17T17:08:40Z")

</div>

Hello. Say I am using a Cox model to predict cancer, but my dataset has 10000 healthy patients and just 10 with cancer during the studied interval. Do we need to use weights to compensate imbalance with these kind of m…

---

## [Which solvers have dual solutions available for MINLPs?](https://discourse.julialang.org/t/which-solvers-have-dual-solutions-available-for-minlps/98859)

<div class="topic-metadata">

**Author:** [@vineetjnair9](https://discourse.julialang.org/u/vineetjnair9)\
**Replies:** 2\
**Last updated:** [May 17, 2023, 7:04pm UTC](https://discourse.julialang.org/t/which-solvers-have-dual-solutions-available-for-minlps/98859 "2023-05-17T19:04:13Z")

</div>

Which solvers (out of the ones here - Installation Guide · JuMP) can I extract dual values for, specifically for MINLPs? I was able to extract them while running Ipopt for NLPs but now I’m working on an MINLP (nonconvex)…

---

## [Calling Julia from a Python Dash app](https://discourse.julialang.org/t/calling-julia-from-a-python-dash-app/99011)

<div class="topic-metadata">

**Author:** [@lxvm](https://discourse.julialang.org/u/lxvm)\
**Replies:** 0\
**Last updated:** [May 17, 2023, 6:26pm UTC](https://discourse.julialang.org/t/calling-julia-from-a-python-dash-app/99011 "2023-05-17T18:26:39Z")

</div>

I was wondering if calling Julia through a multi-threaded Python Dash app can in theory work in v1.9.0, since the new version allows the number of threads to change in the Julia runtime. The following simple Dash app usi…

---

## [Is there a Julia binding to the GtkFixed container?](https://discourse.julialang.org/t/is-there-a-julia-binding-to-the-gtkfixed-container/99009)

<div class="topic-metadata">

**Author:** [@Charles\_Brauer](https://discourse.julialang.org/u/Charles_Brauer)\
**Replies:** 0\
**Last updated:** [May 17, 2023, 5:13pm UTC](https://discourse.julialang.org/t/is-there-a-julia-binding-to-the-gtkfixed-container/99009 "2023-05-17T17:13:14Z")

</div>

I’m trying to position a Gtk Button with width=50, and height=40 at location 10,300 in a GtkLayout container. This is what I have tried: using Gtk win = GtkWindow("Button Example", 400, 300) layout = GtkLayout(400, 300…

---

## [SizedVector and Float32](https://discourse.julialang.org/t/sizedvector-and-float32/99003)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [May 17, 2023, 4:33pm UTC](https://discourse.julialang.org/t/sizedvector-and-float32/99003 "2023-05-17T16:33:48Z")

</div>

I encountered an issue with SizedVector in StaticArrays.jl. The following works: i::Int64 = 3 a = SizedVector{i}(\[1., 2., 3.\]) But if i is an Int32, I get an error: j::Int32 = 3 a = SizedVector{j}(\[1., 2., 3.\]) I g…

---

## [Using Catalyst with DynamicalSystems](https://discourse.julialang.org/t/using-catalyst-with-dynamicalsystems/98965)

<div class="topic-metadata">

**Author:** [@Dragolonth](https://discourse.julialang.org/u/Dragolonth)\
**Replies:** 4\
**Last updated:** [May 17, 2023, 3:49pm UTC](https://discourse.julialang.org/t/using-catalyst-with-dynamicalsystems/98965 "2023-05-17T15:49:25Z")

</div>

Hi all. I currently have a large ODE system that I’ve defined as a reaction network using Catalyst. I was wondering if it would be possible to essentially put this reaction network into DynamicalSystems to find the attra…

---

## [R's na.rm equivalent in Julia for ignoring missing values during inference?](https://discourse.julialang.org/t/rs-na-rm-equivalent-in-julia-for-ignoring-missing-values-during-inference/99000)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 4\
**Last updated:** [May 17, 2023, 3:10pm UTC](https://discourse.julialang.org/t/rs-na-rm-equivalent-in-julia-for-ignoring-missing-values-during-inference/99000 "2023-05-17T15:10:14Z")

</div>

Do we have anything like r’s na.rm attribute in Julia for Turing.jl for ignoring missing values? I have a data with missing values which is causing issue during sampling.

---

## [Not all parameters being estimated in DiffEqFlux](https://discourse.julialang.org/t/not-all-parameters-being-estimated-in-diffeqflux/98891)

<div class="topic-metadata">

**Author:** [@ANasc](https://discourse.julialang.org/u/ANasc)\
**Replies:** 5\
**Last updated:** [May 17, 2023, 3:02pm UTC](https://discourse.julialang.org/t/not-all-parameters-being-estimated-in-diffeqflux/98891 "2023-05-17T15:02:00Z")

</div>

I’m trying to fit a simple Von Bertalanffy curve to some data using DiffEqFlux but one of the parameters (init\_p\[3\]) does not change with each iteration. I suspect it might have something to do with the step function ins…

---

## [Convert buffer function existing in matlab to julia language](https://discourse.julialang.org/t/convert-buffer-function-existing-in-matlab-to-julia-language/98926)

<div class="topic-metadata">

**Author:** [@RDuarte](https://discourse.julialang.org/u/RDuarte)\
**Replies:** 5\
**Last updated:** [May 17, 2023, 1:04pm UTC](https://discourse.julialang.org/t/convert-buffer-function-existing-in-matlab-to-julia-language/98926 "2023-05-17T13:04:51Z")

</div>

Hello everyone, I’ve been using Matlab for years but now I would like to move to Julia, however I’m having some doubts regarding equivalent functions in Julia. The problem is, in matlab I use the function buffer (Buffe…

---

## [Converting python code into julia code](https://discourse.julialang.org/t/converting-python-code-into-julia-code/98991)

<div class="topic-metadata">

**Author:** [@RDuarte](https://discourse.julialang.org/u/RDuarte)\
**Replies:** 9\
**Last updated:** [May 17, 2023, 2:29pm UTC](https://discourse.julialang.org/t/converting-python-code-into-julia-code/98991 "2023-05-17T14:29:54Z")

</div>

Hello everyone, I’m new in Julia word and I would like to translate a code/function I have in python to julia language but I’m didn’t have success till this moment. The function I have is: def buffer(X, n, p=0, opt=No…

---

## [Help with algorithm: calculate max possible score of DigitParty game](https://discourse.julialang.org/t/help-with-algorithm-calculate-max-possible-score-of-digitparty-game/98843)

<div class="topic-metadata">

**Author:** [@natemcintosh](https://discourse.julialang.org/u/natemcintosh)\
**Replies:** 10\
**Last updated:** [May 17, 2023, 2:26pm UTC](https://discourse.julialang.org/t/help-with-algorithm-calculate-max-possible-score-of-digitparty-game/98843 "2023-05-17T14:26:41Z")

</div>

I created a package that provides a programmatically playable copy of Digit Party. The game itself is pretty simple, but has a good depth of strategy; I highly recommend playing a few games. I need help with one part th…

---

## [Trouble with new local package](https://discourse.julialang.org/t/trouble-with-new-local-package/98956)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 11\
**Last updated:** [May 17, 2023, 2:11pm UTC](https://discourse.julialang.org/t/trouble-with-new-local-package/98956 "2023-05-17T14:11:03Z")

</div>

I am mostly familiar with Python’s packaging … but I am trying to start a new package for my application. Surely I am getting something wrong. \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julia…

---

## [Change Latex font color in Makie](https://discourse.julialang.org/t/change-latex-font-color-in-makie/98998)

<div class="topic-metadata">

**Author:** [@phymann](https://discourse.julialang.org/u/phymann)\
**Replies:** 1\
**Last updated:** [May 17, 2023, 2:16pm UTC](https://discourse.julialang.org/t/change-latex-font-color-in-makie/98998 "2023-05-17T14:16:15Z")

</div>

Dear all, I’ve searched a lot but still cannot find the solution. How to change axis xlabel and ylabel latex font color, in CairoMakie?

---

## [Plotting a complex function](https://discourse.julialang.org/t/plotting-a-complex-function/98981)

<div class="topic-metadata">

**Author:** [@Anil\_Kumar](https://discourse.julialang.org/u/Anil_Kumar)\
**Replies:** 5\
**Last updated:** [May 17, 2023, 1:23pm UTC](https://discourse.julialang.org/t/plotting-a-complex-function/98981 "2023-05-17T13:23:44Z")

</div>

Dear All, I am trying to put this function using Plots function test(t,t0,E,Ω) if t\<t0 E0=E\*t0 test=1im\*E0/Ω \*(1-exp.(1im\*Ω\*t)) println("t is less than t0") else test=0 p…

---

## [Disambiguating variable names in string interpolation](https://discourse.julialang.org/t/disambiguating-variable-names-in-string-interpolation/98997)

<div class="topic-metadata">

**Author:** [@chskcau](https://discourse.julialang.org/u/chskcau)\
**Replies:** 3\
**Last updated:** [May 17, 2023, 1:10pm UTC](https://discourse.julialang.org/t/disambiguating-variable-names-in-string-interpolation/98997 "2023-05-17T13:10:19Z")

</div>

I’ve got another newbie question. In Julia it’s possible to interpolate strings into one another, e.g. julia\> greet = "Howdy" "Howdy" julia\> whom = "cowgirls" "cowgirls" julia\> "$greet, $whom" "Howdy, cowgirls" julia\>…

---

## [Multiplication issue](https://discourse.julialang.org/t/multiplication-issue/98986)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 9\
**Last updated:** [May 17, 2023, 12:53pm UTC](https://discourse.julialang.org/t/multiplication-issue/98986 "2023-05-17T12:53:56Z")

</div>

This is really strange that i’m getting a negative answer for this: 10^19 \* 10^-18 Output: -8.446744073709551

---

## [Syntax error when trying to use bitwise operators](https://discourse.julialang.org/t/syntax-error-when-trying-to-use-bitwise-operators/98984)

<div class="topic-metadata">

**Author:** [@chskcau](https://discourse.julialang.org/u/chskcau)\
**Replies:** 5\
**Last updated:** [May 17, 2023, 11:22am UTC](https://discourse.julialang.org/t/syntax-error-when-trying-to-use-bitwise-operators/98984 "2023-05-17T11:22:13Z")

</div>

I apologize if this is a stupid question, but I’m literally just starting to learn Julia, working my way through the manual. When trying out the bitwise operations, say exclusive or, I found that I couldn’t actually typ…

---

## [Is there a way to find out the compilation details of binary artifacts shipped with a package?](https://discourse.julialang.org/t/is-there-a-way-to-find-out-the-compilation-details-of-binary-artifacts-shipped-with-a-package/98987)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 2\
**Last updated:** [May 17, 2023, 9:24am UTC](https://discourse.julialang.org/t/is-there-a-way-to-find-out-the-compilation-details-of-binary-artifacts-shipped-with-a-package/98987 "2023-05-17T09:24:42Z")

</div>

My particular use case concerns the FFTW library shipped with the FFTW.jl package, but my interest is general. Investigating performance of a FFT-based signal processing pipeline implemented in c++, I’ve noticed a perfo…

---

## [\[ANN\] CircuitComponentRounding.jl](https://discourse.julialang.org/t/ann-circuitcomponentrounding-jl/62496)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [May 17, 2023, 8:42am UTC](https://discourse.julialang.org/t/ann-circuitcomponentrounding-jl/62496 "2023-05-17T08:42:35Z")

</div>

I am pleased to announce CircuitComponentRounding.jl, a Julia package for rounding a set of e.g. calculated values to their nearest standardized values, which will actually exist in normal component storages! The followi…

---

## [Seeking help with Pkg extensions: encountering MethodError: no method matching stat\_rep(::Nothing)](https://discourse.julialang.org/t/seeking-help-with-pkg-extensions-encountering-methoderror-no-method-matching-stat-rep-nothing/98906)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [May 17, 2023, 6:23am UTC](https://discourse.julialang.org/t/seeking-help-with-pkg-extensions-encountering-methoderror-no-method-matching-stat-rep-nothing/98906 "2023-05-17T06:23:07Z")

</div>

I’m trying to use Pkg extensions in OffsetArrays in Move \`Adapt\` to a weak dependency by jishnub · Pull Request #331 · JuliaArrays/OffsetArrays.jl · GitHub, where the Project.toml reads While trying to add packages to…

---

## [Help with AutoDiff in Metal.jl](https://discourse.julialang.org/t/help-with-autodiff-in-metal-jl/98937)

<div class="topic-metadata">

**Author:** [@raktim](https://discourse.julialang.org/u/raktim)\
**Replies:** 7\
**Last updated:** [May 17, 2023, 5:54am UTC](https://discourse.julialang.org/t/help-with-autodiff-in-metal-jl/98937 "2023-05-17T05:54:58Z")

</div>

I am trying to use Metal.jl for a scientific computation and having difficulty with AutoDiff (ForwardDiff). I am using julia 1.9. This is the code dF = x-\>ForwardDiff.gradient(x-\>dot(x,x),x) N = 7; x = rand(Float32,N);…

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

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