# Latest

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

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

**Page:** 459

---

## [Providing datasets in a package](https://discourse.julialang.org/t/providing-datasets-in-a-package/111622)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 7\
**Last updated:** [March 14, 2024, 4:16pm UTC](https://discourse.julialang.org/t/providing-datasets-in-a-package/111622 "2024-03-14T16:16:40Z")

</div>

Hi, I want to include some dataset, on the form of an object (say of type Mytype from my package, so that import Mypackage will provide a Mypackage.myobject binding for this dataset. I might have to do this for several…

---

## [Argument for number of axis ticks](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 4:15pm UTC](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817 "2024-03-14T16:15:30Z")

</div>

Is there a keyword argument to tune the number of ticks? How could this be done? I usually use Plots with the GR backend. Often the routine finds a good number for the ticks. Sometimes, I’d like to tune it a bit, e.g…

---

## [Incidence matrix from ModelingToolkit.jl](https://discourse.julialang.org/t/incidence-matrix-from-modelingtoolkit-jl/111626)

<div class="topic-metadata">

**Author:** [@hhindley](https://discourse.julialang.org/u/hhindley)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 3:56pm UTC](https://discourse.julialang.org/t/incidence-matrix-from-modelingtoolkit-jl/111626 "2024-03-14T15:56:35Z")

</div>

Hi, I’ve just started using ModelingToolkit properly and am looking at doing some hybrid stochastic modelling. For my framework I need the stoichiometric matrix and reaction propensities. In the @mtkbuild output there is…

---

## [Plotting empty vector causes MethodError if axis limits are not explicitly set](https://discourse.julialang.org/t/plotting-empty-vector-causes-methoderror-if-axis-limits-are-not-explicitly-set/111623)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 3:40pm UTC](https://discourse.julialang.org/t/plotting-empty-vector-causes-methoderror-if-axis-limits-are-not-explicitly-set/111623 "2024-03-14T15:40:34Z")

</div>

I want to plot vertical lines on an axis by passing vlines! an observable to a vector with positions. In my intended use case, the vector will initially be empty. This works fine when I explicitly specify the axis bounda…

---

## [Does CUDA.jl have sortperm! implemented?](https://discourse.julialang.org/t/does-cuda-jl-have-sortperm-implemented/111594)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [March 14, 2024, 2:41pm UTC](https://discourse.julialang.org/t/does-cuda-jl-have-sortperm-implemented/111594 "2024-03-14T14:41:50Z")

</div>

Hello! I am getting quite confused. I have a vector of CartesianIndices and when I call sortperm! on it, it works great. I notice though that when tracking performance with CUDA.@time it reports to me a lot of CPU alloc…

---

## [Issue with Wildcard Import in Julia Module](https://discourse.julialang.org/t/issue-with-wildcard-import-in-julia-module/111613)

<div class="topic-metadata">

**Author:** [@Daniel\_S](https://discourse.julialang.org/u/Daniel_S)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 2:23pm UTC](https://discourse.julialang.org/t/issue-with-wildcard-import-in-julia-module/111613 "2024-03-14T14:23:15Z")

</div>

I’m encountering an issue with wildcard imports (“import .ModuleName: \*”) in Julia. Specifically, when attempting to import all symbols from a module using the wildcard syntax, the symbols do not seem to be available in …

---

## [Wiki on How to Format Discourse Code](https://discourse.julialang.org/t/wiki-on-how-to-format-discourse-code/111617)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 2:19pm UTC](https://discourse.julialang.org/t/wiki-on-how-to-format-discourse-code/111617 "2024-03-14T14:19:15Z")

</div>

I have seen many posts recently trying and failing to explain backtick code formatting. This is just a reminder that we have a wiki post you can link to on that topic.

---

## [Does DifferentialEquations.jl support matrix-shaped noise](https://discourse.julialang.org/t/does-differentialequations-jl-support-matrix-shaped-noise/110958)

<div class="topic-metadata">

**Author:** [@matt1](https://discourse.julialang.org/u/matt1)\
**Replies:** 2\
**Last updated:** [March 14, 2024, 2:08pm UTC](https://discourse.julialang.org/t/does-differentialequations-jl-support-matrix-shaped-noise/110958 "2024-03-14T14:08:27Z")

</div>

let’s say I want to solve the following system of SDEs: \\begin{align\*} du\_{1} &= f\_{1}(u,du,p,t) dt+c\_{11}dW\_{1}+c\_{12}dW\_{2} \\\\ du\_{2} &= f\_{2}(u,du,p,t) dt+c\_{23}dW\_{3}+c\_{24}dW\_{4} \\\\ du\_{3} &= f\_{3}(u,du,p…

---

## [Parallel julia code](https://discourse.julialang.org/t/parallel-julia-code/111579)

<div class="topic-metadata">

**Author:** [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Replies:** 21\
**Last updated:** [March 14, 2024, 1:50pm UTC](https://discourse.julialang.org/t/parallel-julia-code/111579 "2024-03-14T13:50:11Z")

</div>

hello everyone, I have some algorithms that I wanna run them in parallel. I started by learning how to make simple parallel examples. I have the following code but it is not running. can U help me on this function pfl…

---

## [PSA: Add Downgrade CI to Better Check Version Compatibility](https://discourse.julialang.org/t/psa-add-downgrade-ci-to-better-check-version-compatibility/110063)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 35\
**Last updated:** [March 14, 2024, 1:45pm UTC](https://discourse.julialang.org/t/psa-add-downgrade-ci-to-better-check-version-compatibility/110063 "2024-03-14T13:45:53Z")

</div>

A call to all Julia package authors to add Downgrade CI with scripts to copy-paste! This is an article about how to improve testing of package version compatibility and new systems we have adopted in SciML that I would l…

---

## [Use of integer variables Juniper Error (MI-NLP)](https://discourse.julialang.org/t/use-of-integer-variables-juniper-error-mi-nlp/111454)

<div class="topic-metadata">

**Author:** [@Erlendgh](https://discourse.julialang.org/u/Erlendgh)\
**Replies:** 2\
**Last updated:** [March 14, 2024, 10:40am UTC](https://discourse.julialang.org/t/use-of-integer-variables-juniper-error-mi-nlp/111454 "2024-03-14T10:40:16Z")

</div>

Hi, I’m trying to solve an optimization problem (MI-NLP) where I want certain variables to be integer values. I have tried to get a bunch of different packages/solver to work and landed on Juniper. My code works fine wh…

---

## [Array printing of custom objects](https://discourse.julialang.org/t/array-printing-of-custom-objects/111606)

<div class="topic-metadata">

**Author:** [@mdsalerno](https://discourse.julialang.org/u/mdsalerno)\
**Replies:** 1\
**Last updated:** [March 14, 2024, 10:02am UTC](https://discourse.julialang.org/t/array-printing-of-custom-objects/111606 "2024-03-14T10:02:08Z")

</div>

I defined the following object and show() methods: # Custom Set struct CustomSet{T} dict::Dict{T, Nothing} end CustomSet(xs) = CustomSet(Dict(zip(xs, fill(nothing, length(xs))))) # default show used by print func…

---

## [Any good books on julia?](https://discourse.julialang.org/t/any-good-books-on-julia/111456)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 9:55am UTC](https://discourse.julialang.org/t/any-good-books-on-julia/111456 "2024-03-14T09:55:11Z")

</div>

I am from matlab and find julia a very difficult language. Is there any good book introducing julia for scientific computing?

---

## [Franklin websites fail to being parsed by openring](https://discourse.julialang.org/t/franklin-websites-fail-to-being-parsed-by-openring/111610)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 9:32am UTC](https://discourse.julialang.org/t/franklin-websites-fail-to-being-parsed-by-openring/111610 "2024-03-14T09:32:39Z")

</div>

openring is a nice tool to create webring, I added it to my Franklin website at the end of each post. However, I noticed that Franklin websites are not able to being parsed by this tool, while the ones built with Hugo, J…

---

## [Creating a Makie Streamplot using the output from DifferentialEquations.jl](https://discourse.julialang.org/t/creating-a-makie-streamplot-using-the-output-from-differentialequations-jl/111604)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 9:23am UTC](https://discourse.julialang.org/t/creating-a-makie-streamplot-using-the-output-from-differentialequations-jl/111604 "2024-03-14T09:23:22Z")

</div>

So I was looking to plot the phase diagram for simple ode systems using Makie. Now in the past I have used the Streamplot to display simple phase diagrams where I had an analytic solution for the ODE, as in this example. …

---

## [NoiseProcess for stochastic differential equation always returns 0.0](https://discourse.julialang.org/t/noiseprocess-for-stochastic-differential-equation-always-returns-0-0/111572)

<div class="topic-metadata">

**Author:** [@Johncowk](https://discourse.julialang.org/u/Johncowk)\
**Replies:** 3\
**Last updated:** [March 14, 2024, 8:35am UTC](https://discourse.julialang.org/t/noiseprocess-for-stochastic-differential-equation-always-returns-0-0/111572 "2024-03-14T08:35:58Z")

</div>

I am trying to implement a stochastic differential equation for an SDE representing a biological system, so the variable (concentration) should not be negative. In order to modelize a noise process that cannot be negati…

---

## [PkgEval success rate dropping - a cause for concern?](https://discourse.julialang.org/t/pkgeval-success-rate-dropping-a-cause-for-concern/111421)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 7\
**Last updated:** [March 14, 2024, 7:14am UTC](https://discourse.julialang.org/t/pkgeval-success-rate-dropping-a-cause-for-concern/111421 "2024-03-14T07:14:33Z")

</div>

Looking at https://raw.githubusercontent.com/JuliaCI/NanosoldierReports/gh-pages/pkgeval\_charts/daily.png, it appears that the PkgEval success rate has dropped substantially in the 1.11-dev period (and into the current 1…

---

## [HDF5 high-level wrapper for nested Dicts](https://discourse.julialang.org/t/hdf5-high-level-wrapper-for-nested-dicts/111588)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 3\
**Last updated:** [March 14, 2024, 4:58am UTC](https://discourse.julialang.org/t/hdf5-high-level-wrapper-for-nested-dicts/111588 "2024-03-14T04:58:01Z")

</div>

I’m storing some data in hdf5 format to use in a multilanguage environment (others will use Python, R, C, etc. to access those files). I’ve implemented the export using HDF5.jl without much trouble, but it’s not very wel…

---

## [On the issues of foundational packages deprecation and lack of replacements](https://discourse.julialang.org/t/on-the-issues-of-foundational-packages-deprecation-and-lack-of-replacements/111601)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 3\
**Last updated:** [March 14, 2024, 4:34am UTC](https://discourse.julialang.org/t/on-the-issues-of-foundational-packages-deprecation-and-lack-of-replacements/111601 "2024-03-14T04:34:36Z")

</div>

Julia is founded on a premise that if you’re skilled enough, you can do anything, sometimes by calling C or even tinkering with the compiler. However, this comes with an issue. If there are some talented programmers ad…

---

## [How to create and modify named vector in Julia?](https://discourse.julialang.org/t/how-to-create-and-modify-named-vector-in-julia/111412)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 10\
**Last updated:** [March 14, 2024, 3:33am UTC](https://discourse.julialang.org/t/how-to-create-and-modify-named-vector-in-julia/111412 "2024-03-14T03:33:31Z")

</div>

Hello, I am setting a polynomial function and a vector (array) that passes the parameters to this function, something like this: y = v\[1\]\*x + v\[2\]\*x^2 + v\[3\]\*x^3 It would be easier to remember the elements of the vect…

---

## [What range of LinearAlgebra does Enzyme support?](https://discourse.julialang.org/t/what-range-of-linearalgebra-does-enzyme-support/111552)

<div class="topic-metadata">

**Author:** [@ToPo](https://discourse.julialang.org/u/ToPo)\
**Replies:** 6\
**Last updated:** [March 14, 2024, 3:08am UTC](https://discourse.julialang.org/t/what-range-of-linearalgebra-does-enzyme-support/111552 "2024-03-14T03:08:21Z")

</div>

Hi all, I would like to use the LinearAlgebra package in Enzyme. Since Julia’s sparse matrix package, SparseArrays, did not seem to be available, I created my own sparse-matrix library. When I looked at the Enzyme tes…

---

## [Precompiling for PythonCall.jl juliacall](https://discourse.julialang.org/t/precompiling-for-pythoncall-jl-juliacall/111596)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 12:46am UTC](https://discourse.julialang.org/t/precompiling-for-pythoncall-jl-juliacall/111596 "2024-03-14T00:46:53Z")

</div>

I have a Python application that uses PythonCall.jl’s juliacall to interface with Julia. I would like to use precompilation to improve the startup time of the application. PrecompileTools.jl lets you specify a Julia work…

---

## [Julia crashed - Core dumped](https://discourse.julialang.org/t/julia-crashed-core-dumped/107308)

<div class="topic-metadata">

**Author:** [@KapilKhanal](https://discourse.julialang.org/u/KapilKhanal)\
**Replies:** 13\
**Last updated:** [March 13, 2024, 7:55pm UTC](https://discourse.julialang.org/t/julia-crashed-core-dumped/107308 "2024-03-13T19:55:08Z")

</div>

I tried to report bug therough this command julia --bug-report=yes. But it is giving the segmentation fault for this as well. I updated to Julia 1.9, the latest stable version and now it crashes. \[ Info: Loading BugRepo…

---

## [Profiling code with heavy IO times](https://discourse.julialang.org/t/profiling-code-with-heavy-io-times/111589)

<div class="topic-metadata">

**Author:** [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Replies:** 0\
**Last updated:** [March 13, 2024, 7:57pm UTC](https://discourse.julialang.org/t/profiling-code-with-heavy-io-times/111589 "2024-03-13T19:57:46Z")

</div>

Usually I can get a lot of mileage out of the user-friendly @profview macro and I get all the info I need to spot performance bottlenecks. However, sometimes I have code where there is a lot of IO (e.g., downloading var…

---

## [Struggling with isposdef and floating point errors](https://discourse.julialang.org/t/struggling-with-isposdef-and-floating-point-errors/111582)

<div class="topic-metadata">

**Author:** [@theplatters](https://discourse.julialang.org/u/theplatters)\
**Replies:** 2\
**Last updated:** [March 13, 2024, 7:25pm UTC](https://discourse.julialang.org/t/struggling-with-isposdef-and-floating-point-errors/111582 "2024-03-13T19:25:28Z")

</div>

I am trying to do a Quasi-Newton method with a basic cholesky adaptation, to guarantee B is positive definite. The code goes as follows: function choleksyadaption!(A,β = 10e-3, max\_iter = 1000) @info "Adapting Chole…

---

## [Setting WorkLimit for Gurobi.jl and JuMP](https://discourse.julialang.org/t/setting-worklimit-for-gurobi-jl-and-jump/111370)

<div class="topic-metadata">

**Author:** [@YuriS](https://discourse.julialang.org/u/YuriS)\
**Replies:** 5\
**Last updated:** [March 13, 2024, 6:07pm UTC](https://discourse.julialang.org/t/setting-worklimit-for-gurobi-jl-and-jump/111370 "2024-03-13T18:07:26Z")

</div>

Hi! I am solving a large instance MILP using Gurobi, and I am trying to set the WorkLimit parameter (see: https://www.gurobi.com/documentation/current/refman/worklimit.html) instead of setting a TimeLimit, but I am stru…

---

## [Whys is Enzyme code running slow](https://discourse.julialang.org/t/whys-is-enzyme-code-running-slow/111565)

<div class="topic-metadata">

**Author:** [@Arijit\_Bhattacharya](https://discourse.julialang.org/u/Arijit_Bhattacharya)\
**Replies:** 5\
**Last updated:** [March 13, 2024, 6:05pm UTC](https://discourse.julialang.org/t/whys-is-enzyme-code-running-slow/111565 "2024-03-13T18:05:47Z")

</div>

Title: Performance Issues with Enzyme Autodiff in Julia Code I am new to Enzyme. When I run this sample code, the autodiff function is taking a lot of time. Where am I going wrong? using Enzyme function Convec\_diffus…

---

## [Using LinearMaps.jl Inversemap for Preconditioning IterativeSolvers.jl](https://discourse.julialang.org/t/using-linearmaps-jl-inversemap-for-preconditioning-iterativesolvers-jl/110070)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 5:03pm UTC](https://discourse.julialang.org/t/using-linearmaps-jl-inversemap-for-preconditioning-iterativesolvers-jl/110070 "2024-03-13T17:03:40Z")

</div>

I’ve seen some examples of creating a matrix-free method via linear operators, structs, and linear maps for IterativeSolvers.jl and LinearMaps.jl . However, I haven’t seen any examples of creating matrix-free preconditio…

---

## [How to deploy my Pluto notebook to github?](https://discourse.julialang.org/t/how-to-deploy-my-pluto-notebook-to-github/91775)

<div class="topic-metadata">

**Author:** [@Allan\_Olave](https://discourse.julialang.org/u/Allan_Olave)\
**Replies:** 8\
**Last updated:** [March 11, 2024, 6:11pm UTC](https://discourse.julialang.org/t/how-to-deploy-my-pluto-notebook-to-github/91775 "2024-03-11T18:11:49Z")

</div>

Is it possible to share my pluto notebook(which include PlutoUI, SymPy, Plots) by deploying to github, so that i can share it to my students? Thanks in advance.

---

## [Reshape() permanently locks underlying array (bug?)](https://discourse.julialang.org/t/reshape-permanently-locks-underlying-array-bug/94714)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 3:37pm UTC](https://discourse.julialang.org/t/reshape-permanently-locks-underlying-array-bug/94714 "2024-03-13T15:37:58Z")

</div>

I want to iteratively build a matrix by first append!(v, col) column vectors to a larger vector v, and then finally resizing to a matrix v2 when I’m finished. Once I’m finished with the matrix v2, I then want to empty!(v…

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

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