# Latest

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

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

**Page:** 789

---

## [Repeated precompilation on a cluster makes life difficult](https://discourse.julialang.org/t/repeated-precompilation-on-a-cluster-makes-life-difficult/94194)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 12\
**Last updated:** [February 8, 2023, 2:57am UTC](https://discourse.julialang.org/t/repeated-precompilation-on-a-cluster-makes-life-difficult/94194 "2023-02-08T02:57:27Z")

</div>

I’m using julia v1.9.0-beta3 on a SLURM cluster. On a login node with versioninfo julia\> versioninfo() Julia Version 1.9.0-beta3 Commit 24204a73447 (2023-01-18 07:20 UTC) Platform Info: OS: Linux (x86\_64-linux-gnu) …

---

## [RFC: Language Support for Traits — Yay or Nay?](https://discourse.julialang.org/t/rfc-language-support-for-traits-yay-or-nay/93914)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 45\
**Last updated:** [February 8, 2023, 1:51am UTC](https://discourse.julialang.org/t/rfc-language-support-for-traits-yay-or-nay/93914 "2023-02-08T01:51:46Z")

</div>

A repeated gripe I see from the local gray-hairs about Julia’s type system pertains to the lack of language support for multiple inheritance through traits—to manage those pesky behaviors that fall outside the type hiera…

---

## [Error while installing a Julia Package behind a Proxy](https://discourse.julialang.org/t/error-while-installing-a-julia-package-behind-a-proxy/79674)

<div class="topic-metadata">

**Author:** [@\_SACHIN](https://discourse.julialang.org/u/_SACHIN)\
**Replies:** 5\
**Last updated:** [February 8, 2023, 2:23am UTC](https://discourse.julialang.org/t/error-while-installing-a-julia-package-behind-a-proxy/79674 "2023-02-08T02:23:46Z")

</div>

I am trying to install a package iTensor in Julia as (@v1.7) pkg\> add ITensors but I am getting the following error. Pl note that my OS Ubuntu is behind the proxy Network. Updating registry at ~/.julia/registries/Gener…

---

## [StaticArrays + ArrayPartition + DiffEq = Allocations?](https://discourse.julialang.org/t/staticarrays-arraypartition-diffeq-allocations/94222)

<div class="topic-metadata">

**Author:** [@graphitical](https://discourse.julialang.org/u/graphitical)\
**Replies:** 3\
**Last updated:** [February 8, 2023, 2:11am UTC](https://discourse.julialang.org/t/staticarrays-arraypartition-diffeq-allocations/94222 "2023-02-08T02:11:48Z")

</div>

I’m attempting to convert the DiffEq example using ArrayPartition to also use StaticArrays to understand how to feed in an ArrayPartition of StaticArrays for my own problem. This is meant to be a toy example to help me u…

---

## [Latexify generating incorrect output with accented strings](https://discourse.julialang.org/t/latexify-generating-incorrect-output-with-accented-strings/94098)

<div class="topic-metadata">

**Author:** [@Whyborn](https://discourse.julialang.org/u/Whyborn)\
**Replies:** 5\
**Last updated:** [February 8, 2023, 1:06am UTC](https://discourse.julialang.org/t/latexify-generating-incorrect-output-with-accented-strings/94098 "2023-02-08T01:06:46Z")

</div>

Hi, Been hitting issues with Latexify-generated expressions when using accented characters. A simple example: using Symbolics, Latexify @variables x̄ ȳ z latexify(x̄ + ȳ + z) # Gives x\\bar + z + ȳ This is incorrect …

---

## [Producing a rasterized 3D surface with in a vectorized figure using Plots](https://discourse.julialang.org/t/producing-a-rasterized-3d-surface-with-in-a-vectorized-figure-using-plots/94246)

<div class="topic-metadata">

**Author:** [@danielbalzer](https://discourse.julialang.org/u/danielbalzer)\
**Replies:** 0\
**Last updated:** [February 8, 2023, 12:53am UTC](https://discourse.julialang.org/t/producing-a-rasterized-3d-surface-with-in-a-vectorized-figure-using-plots/94246 "2023-02-08T00:53:23Z")

</div>

I am looking to rasterize a 3D surface plot using Plots, while keeping the rest of the figure (such as axes labels and lines vectorized). I am hoping to do this to reduce the file size of some very large images. I know t…

---

## [Constant propagation and inference of constructed types](https://discourse.julialang.org/t/constant-propagation-and-inference-of-constructed-types/36279)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 14\
**Last updated:** [February 7, 2023, 10:49pm UTC](https://discourse.julialang.org/t/constant-propagation-and-inference-of-constructed-types/36279 "2023-02-07T22:49:01Z")

</div>

Context: I had a parameterized struct type with convenience constructors that input some of the parameters as arguments. Based on previous experience, I expected that if such constructors are provided with constant valu…

---

## [Makie live animation not working](https://discourse.julialang.org/t/makie-live-animation-not-working/63353)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 12\
**Last updated:** [February 7, 2023, 10:08pm UTC](https://discourse.julialang.org/t/makie-live-animation-not-working/63353 "2023-02-07T22:08:38Z")

</div>

Hi, I am trying to visualize a simulation live in makie. However my plot is not updated in VSCode when the observable it depends on is changed. The following is my code: function getStickPositions(c::Config) unitV…

---

## [FinancialToolbox unsupported keyword argument "FlagIsCall"](https://discourse.julialang.org/t/financialtoolbox-unsupported-keyword-argument-flagiscall/94151)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 2\
**Last updated:** [February 7, 2023, 9:40pm UTC](https://discourse.julialang.org/t/financialtoolbox-unsupported-keyword-argument-flagiscall/94151 "2023-02-07T21:40:38Z")

</div>

Trying to get the FinancialToolbox working as per documentation. If I try to compute a Put Option value as follows I get an error: blsprice(10,10-2.04,.01,1,.1,FlagIsCall=false) results in errors the most relevant her…

---

## [Yaxis log scale StipplePlotly](https://discourse.julialang.org/t/yaxis-log-scale-stippleplotly/94236)

<div class="topic-metadata">

**Author:** [@olive](https://discourse.julialang.org/u/olive)\
**Replies:** 0\
**Last updated:** [February 7, 2023, 9:38pm UTC](https://discourse.julialang.org/t/yaxis-log-scale-stippleplotly/94236 "2023-02-07T21:38:20Z")

</div>

I would like to display a plot with a y-axis in logarithmic scale but with this simple code is actually the x-axis which is render in logarithmic scale. Does anyone know a solution? using GenieFramework @genietools @o…

---

## [ModelingToolkit: algebraic equations in likelihood and reverse-mode AD](https://discourse.julialang.org/t/modelingtoolkit-algebraic-equations-in-likelihood-and-reverse-mode-ad/94203)

<div class="topic-metadata">

**Author:** [@Brian\_Hartley](https://discourse.julialang.org/u/Brian_Hartley)\
**Replies:** 2\
**Last updated:** [February 7, 2023, 8:30pm UTC](https://discourse.julialang.org/t/modelingtoolkit-algebraic-equations-in-likelihood-and-reverse-mode-ad/94203 "2023-02-07T20:30:20Z")

</div>

TLDR - Is it possible to use both state / observed variables from ODESolution in a likelihood, without concatenating them ex post or using mutation? Maybe there is something dead-simple I’m missing! I’m starting to con…

---

## [How to input types for functions in a more compact way?](https://discourse.julialang.org/t/how-to-input-types-for-functions-in-a-more-compact-way/94221)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 4\
**Last updated:** [February 7, 2023, 8:26pm UTC](https://discourse.julialang.org/t/how-to-input-types-for-functions-in-a-more-compact-way/94221 "2023-02-07T20:26:17Z")

</div>

Hi, I am trying to improve the way that I define the input types for my functions in Julia. I have a function that can take as input array values of type Dates.Date, Dates.DateTime or StepRange{Dates.Date, Dates.Day}. S…

---

## [How do I move the slider from one time point to another and measure the time it takes to redraw an image?](https://discourse.julialang.org/t/how-do-i-move-the-slider-from-one-time-point-to-another-and-measure-the-time-it-takes-to-redraw-an-image/94232)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 0\
**Last updated:** [February 7, 2023, 7:59pm UTC](https://discourse.julialang.org/t/how-do-i-move-the-slider-from-one-time-point-to-another-and-measure-the-time-it-takes-to-redraw-an-image/94232 "2023-02-07T19:59:54Z")

</div>

I would like to benchmark interactive topoplot. More specifically, measure the time between drawing topoplot with one time point on the slider and another. I tried several times, but failed. For now, I want it to at lea…

---

## [JuMP: Multiplicative parameters for LP](https://discourse.julialang.org/t/jump-multiplicative-parameters-for-lp/94192)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 7:52pm UTC](https://discourse.julialang.org/t/jump-multiplicative-parameters-for-lp/94192 "2023-02-07T19:52:45Z")

</div>

I’m trying to rework how “model parameters” work in my model. I know that using JuMP import HiGHS model = direct\_model(HiGHS.Optimizer()) p = @variable(model) fix(p, 1.0; force=true) x = @variable(model) @constraint(…

---

## [Shapefiles to GEE](https://discourse.julialang.org/t/shapefiles-to-gee/94208)

<div class="topic-metadata">

**Author:** [@marianaeavila](https://discourse.julialang.org/u/marianaeavila)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 7:19pm UTC](https://discourse.julialang.org/t/shapefiles-to-gee/94208 "2023-02-07T19:19:15Z")

</div>

How can I import and display a local shapefile (.shp) into Google Earth Engine using EarthEngine.jl, is there a function for that?

---

## [ModelingToolkit - DiscreteUpdate](https://discourse.julialang.org/t/modelingtoolkit-discreteupdate/94183)

<div class="topic-metadata">

**Author:** [@jondavis847](https://discourse.julialang.org/u/jondavis847)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 7:04pm UTC](https://discourse.julialang.org/t/modelingtoolkit-discreteupdate/94183 "2023-02-07T19:04:24Z")

</div>

Hello. I’m trying to implement discrete control in MTK using the DiscreteUpdate operator. It failed to update on my more complex model, seems to fail for a very basic MWE as well. using ModelingToolkit, DifferentialEqua…

---

## [Gradient norm does not change in \`Optim\` using \`autodiff\`](https://discourse.julialang.org/t/gradient-norm-does-not-change-in-optim-using-autodiff/94215)

<div class="topic-metadata">

**Author:** [@csev](https://discourse.julialang.org/u/csev)\
**Replies:** 2\
**Last updated:** [February 7, 2023, 6:31pm UTC](https://discourse.julialang.org/t/gradient-norm-does-not-change-in-optim-using-autodiff/94215 "2023-02-07T18:31:59Z")

</div>

I’m trying to figure out how to interpret the occasional failure of an optimization routine to move form a candidate point. Below (at bottom) is output from Optim using NewtonTrustRegion, with autodiff = true. The neithe…

---

## [How to create a plot with slider bars](https://discourse.julialang.org/t/how-to-create-a-plot-with-slider-bars/74213)

<div class="topic-metadata">

**Author:** [@CentraCep](https://discourse.julialang.org/u/CentraCep)\
**Replies:** 7\
**Last updated:** [February 7, 2023, 5:45pm UTC](https://discourse.julialang.org/t/how-to-create-a-plot-with-slider-bars/74213 "2023-02-07T17:45:52Z")

</div>

I have a function that creates plots after taking in two arguments function plotLaneEmden(log\_delta\_xi=-4, n=3) plot(n, 1 .- log\_delta\_xi.^2/6, linecolor = :green, label="n = $n") xlabel!("ξ") yla…

---

## [Cox Proportional Modelling in Julia](https://discourse.julialang.org/t/cox-proportional-modelling-in-julia/94149)

<div class="topic-metadata">

**Author:** [@Nobel\_Chowdary](https://discourse.julialang.org/u/Nobel_Chowdary)\
**Replies:** 4\
**Last updated:** [February 7, 2023, 4:02pm UTC](https://discourse.julialang.org/t/cox-proportional-modelling-in-julia/94149 "2023-02-07T16:02:27Z")

</div>

The following code of mine shows Surv function not found. Can someone help me out on this using DataFrames, SurvivalAnalysis, Survival # Load example data df = DataFrame(duration = \[5, 3, 9, 8, 7, 4, 3, 2, 1\], …

---

## [What does the 34+ represent in the event time column](https://discourse.julialang.org/t/what-does-the-34-represent-in-the-event-time-column/94220)

<div class="topic-metadata">

**Author:** [@Nobel\_Chowdary](https://discourse.julialang.org/u/Nobel_Chowdary)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 4:00pm UTC](https://discourse.julialang.org/t/what-does-the-34-represent-in-the-event-time-column/94220 "2023-02-07T16:00:24Z")

</div>

---

## [UndefVarError: with\_optimizer not defined with ProxSDP](https://discourse.julialang.org/t/undefvarerror-with-optimizer-not-defined-with-proxsdp/94076)

<div class="topic-metadata">

**Author:** [@horvetz](https://discourse.julialang.org/u/horvetz)\
**Replies:** 4\
**Last updated:** [February 7, 2023, 6:17am UTC](https://discourse.julialang.org/t/undefvarerror-with-optimizer-not-defined-with-proxsdp/94076 "2023-02-07T06:17:32Z")

</div>

I just installed ProxSDP, but when I tried this test code, # Load packages using ProxSDP, JuMP, LinearAlgebra # Number of vertices n = 4 # Graph weights W = \[18.0 -5.0 -7.0 -6.0 -5.0 6.0 0.0 -1.0 -7.0…

---

## [Add missing points in a 2D line](https://discourse.julialang.org/t/add-missing-points-in-a-2d-line/94211)

<div class="topic-metadata">

**Author:** [@Benjamin\_Steinvorth](https://discourse.julialang.org/u/Benjamin_Steinvorth)\
**Replies:** 5\
**Last updated:** [February 7, 2023, 3:18pm UTC](https://discourse.julialang.org/t/add-missing-points-in-a-2d-line/94211 "2023-02-07T15:18:33Z")

</div>

have some 2D data in Julia representing a circular feature with some “holes” in it. I like to interpolate these holes by finding points fitting on a curve representing the shape of the feature. Using Julia’s PlotlyJS li…

---

## [Query.jl and CUDA](https://discourse.julialang.org/t/query-jl-and-cuda/94205)

<div class="topic-metadata">

**Author:** [@hovi](https://discourse.julialang.org/u/hovi)\
**Replies:** 0\
**Last updated:** [February 7, 2023, 1:07pm UTC](https://discourse.julialang.org/t/query-jl-and-cuda/94205 "2023-02-07T13:07:53Z")

</div>

I am playing with Query.jl and it works fine with CPU code, I even measured some usecases and it works faster than using “classic” for loops code. What I don’t know is, if it has any support for CUDA or any kind of guid…

---

## [Dispatch surprise with vectors](https://discourse.julialang.org/t/dispatch-surprise-with-vectors/94214)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 2\
**Last updated:** [February 7, 2023, 2:58pm UTC](https://discourse.julialang.org/t/dispatch-surprise-with-vectors/94214 "2023-02-07T14:58:09Z")

</div>

I’ve been trying to implement some functions taking advantage of some default values as well as multiple dispatch and I stumbled upon the following behavior. It is surprising to me but maybe it is just the way things wor…

---

## [How to Derivative of piecewise functions using SymPy](https://discourse.julialang.org/t/how-to-derivative-of-piecewise-functions-using-sympy/94200)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 1\
**Last updated:** [February 7, 2023, 2:23pm UTC](https://discourse.julialang.org/t/how-to-derivative-of-piecewise-functions-using-sympy/94200 "2023-02-07T14:23:03Z")

</div>

As an example, I have the following piecewise function using SymPy @syms x f(x) = (0 \<= x \<=10 ? 2\*x : 3\*x^2) I tried to differentiate f(x) with respect to x df = sympy.diff(f(x),x) It results to non piecewise functi…

---

## [To use or not to use promote\_op](https://discourse.julialang.org/t/to-use-or-not-to-use-promote-op/94170)

<div class="topic-metadata">

**Author:** [@00shiv](https://discourse.julialang.org/u/00shiv)\
**Replies:** 10\
**Last updated:** [February 7, 2023, 2:08pm UTC](https://discourse.julialang.org/t/to-use-or-not-to-use-promote-op/94170 "2023-02-07T14:08:36Z")

</div>

According to Output type in the manual I should use promote\_op to decide container types. But according to the output of help?\> Base.promote\_op I should avoid promote\_op as it is “fragile”. And if I did use promote\_op is…

---

## [Interrupting a ccall, is it possible?](https://discourse.julialang.org/t/interrupting-a-ccall-is-it-possible/94196)

<div class="topic-metadata">

**Author:** [@cjproud](https://discourse.julialang.org/u/cjproud)\
**Replies:** 0\
**Last updated:** [February 7, 2023, 11:46am UTC](https://discourse.julialang.org/t/interrupting-a-ccall-is-it-possible/94196 "2023-02-07T11:46:08Z")

</div>

I’m attempting to interrupt a ccall which is executed via remote\_call: task = remotecall(call\_solver, wid) where call\_solver is a ccall and wid is 2, the current worker id being 1. I then try to interrupt it via interr…

---

## [Can I Create Bootstrap Table with Julia Package?](https://discourse.julialang.org/t/can-i-create-bootstrap-table-with-julia-package/94206)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [February 7, 2023, 1:28pm UTC](https://discourse.julialang.org/t/can-i-create-bootstrap-table-with-julia-package/94206 "2023-02-07T13:28:08Z")

</div>

Hi all, I want to create a bootstrap table like this that can be sorted alphabetically or numerically: Can Julia create a single html webpage from running the code? Like plotting showing GUI box.

---

## [Converting to an array that accepts 'missing' type](https://discourse.julialang.org/t/converting-to-an-array-that-accepts-missing-type/94111)

<div class="topic-metadata">

**Author:** [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Replies:** 13\
**Last updated:** [February 7, 2023, 12:07pm UTC](https://discourse.julialang.org/t/converting-to-an-array-that-accepts-missing-type/94111 "2023-02-07T12:07:38Z")

</div>

So I have a matrix with mostly 0/1/2 values, but missing values are usually set = 5 for other programs. How can I set these values to missing? It seems simple but I cannot find an answer with julia docs (Missing Values ·…

---

## [Understanding specialized methods for field access](https://discourse.julialang.org/t/understanding-specialized-methods-for-field-access/94136)

<div class="topic-metadata">

**Author:** [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Replies:** 7\
**Last updated:** [February 7, 2023, 12:00pm UTC](https://discourse.julialang.org/t/understanding-specialized-methods-for-field-access/94136 "2023-02-07T12:00:31Z")

</div>

Hi! Since this is my first post, let me say that I have worked with Julia for some work and hobby projects until now, and that I really like the language and its possibilities – and its amazing community, sharing their …

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

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