# Latest

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

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

**Page:** 349

---

## [How to change the background colour of \`fillstyle\`?](https://discourse.julialang.org/t/how-to-change-the-background-colour-of-fillstyle/117815)

<div class="topic-metadata">

**Author:** [@chuljang](https://discourse.julialang.org/u/chuljang)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 9:02am UTC](https://discourse.julialang.org/t/how-to-change-the-background-colour-of-fillstyle/117815 "2024-08-06T09:02:56Z")

</div>

With the StatsPlots package (not with Makie or other packages), I would like to change the background colour of fillstyle, where it has :+, :|, and etc. Is there any way? Alternatively, I wrote the following code which d…

---

## [Modeling Toolkit: Vector equations and register symbolic interaction](https://discourse.julialang.org/t/modeling-toolkit-vector-equations-and-register-symbolic-interaction/117877)

<div class="topic-metadata">

**Author:** [@HSnowden](https://discourse.julialang.org/u/HSnowden)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 8:53am UTC](https://discourse.julialang.org/t/modeling-toolkit-vector-equations-and-register-symbolic-interaction/117877 "2024-08-06T08:53:36Z")

</div>

Hi, I am trying to build a model within modeling toolkit where it is built on a grid, therefore defining variables as vectors, but inside the equations is an integral over the whole vector and it doesn’t seem to be work…

---

## [Compiler optimizations around DataFrames](https://discourse.julialang.org/t/compiler-optimizations-around-dataframes/117864)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 8:48am UTC](https://discourse.julialang.org/t/compiler-optimizations-around-dataframes/117864 "2024-08-06T08:48:52Z")

</div>

I understand that to get type stable code using DataFrames.jl, you need to use Tables.columntable to convert the DF into NamedTuple. I was working on a Pluto notebook that tried to show the memory allocation behavior, bu…

---

## [Help on ForwardDiff and Zygote for ODEProblem with mass matrix](https://discourse.julialang.org/t/help-on-forwarddiff-and-zygote-for-odeproblem-with-mass-matrix/117857)

<div class="topic-metadata">

**Author:** [@ccz](https://discourse.julialang.org/u/ccz)\
**Replies:** 8\
**Last updated:** [August 6, 2024, 8:27am UTC](https://discourse.julialang.org/t/help-on-forwarddiff-and-zygote-for-odeproblem-with-mass-matrix/117857 "2024-08-06T08:27:29Z")

</div>

Hi there, I’m new to SciMLSensitivity.jl and Zygote.jl and have been playing with these two libraries for a toy ODE system with a mass matrix. However, the Jacobians produced by the two libraries are different, and I ha…

---

## [3d graphics editor in Julia coming?](https://discourse.julialang.org/t/3d-graphics-editor-in-julia-coming/117851)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 2:09am UTC](https://discourse.julialang.org/t/3d-graphics-editor-in-julia-coming/117851 "2024-08-06T02:09:53Z")

</div>

First, let’s address the elephant in the room. 3d graphic editors like Blender are difficult. And I do have an idea on a 3d graphic system in Julia, though it’s probably stupid, and even if not, who am I to make it done…

---

## [Could not solve optimization problem with max/min in constraints](https://discourse.julialang.org/t/could-not-solve-optimization-problem-with-max-min-in-constraints/117839)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 5\
**Last updated:** [August 5, 2024, 10:35pm UTC](https://discourse.julialang.org/t/could-not-solve-optimization-problem-with-max-min-in-constraints/117839 "2024-08-05T22:35:50Z")

</div>

Hi, I wonder why JuMP could not solve the following optimization problem with max/min in the constraints. I would really appreciate it if you could show me how to solve this issue. using JuMP, Ipopt model = Model(Ipop…

---

## [Julia Discourse maximum image size](https://discourse.julialang.org/t/julia-discourse-maximum-image-size/117860)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [August 5, 2024, 9:27pm UTC](https://discourse.julialang.org/t/julia-discourse-maximum-image-size/117860 "2024-08-05T21:27:04Z")

</div>

What is the maximum upload image width and height on https://discourse.julialang.org/?

---

## [How to dispatch on an SVector?](https://discourse.julialang.org/t/how-to-dispatch-on-an-svector/117855)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [August 5, 2024, 7:37pm UTC](https://discourse.julialang.org/t/how-to-dispatch-on-an-svector/117855 "2024-08-05T19:37:12Z")

</div>

How can I dispatch on an SVector? Not working: function plot2d(pos::Union{Vector, SVector}, reltime=0.0; kwargs...) plot2d\_\_(pos, reltime; kwargs...) end

---

## [CAD files in Julia](https://discourse.julialang.org/t/cad-files-in-julia/101898)

<div class="topic-metadata">

**Author:** [@KapilKhanal](https://discourse.julialang.org/u/KapilKhanal)\
**Replies:** 6\
**Last updated:** [August 5, 2024, 6:50pm UTC](https://discourse.julialang.org/t/cad-files-in-julia/101898 "2024-08-05T18:50:57Z")

</div>

Is there a Julia package that imports CAD files or generates Spline-based mesh for higher-order elements in a numerical simulation? I see some barebones packages like BSplines.jl but they don’t have much of functionality…

---

## [Widen Jupyter Notebook](https://discourse.julialang.org/t/widen-jupyter-notebook/117811)

<div class="topic-metadata">

**Author:** [@John\_Finseth](https://discourse.julialang.org/u/John_Finseth)\
**Replies:** 7\
**Last updated:** [August 5, 2024, 6:30pm UTC](https://discourse.julialang.org/t/widen-jupyter-notebook/117811 "2024-08-05T18:30:17Z")

</div>

Hello, How can I widen cells in Jupyter notebook? I tried the fix from this post, but it doesn’t change anything about my notebook. using IJulia display("text/html", "\<style\>.container { width:100% !important; }\</style\>…

---

## [\[ANN\] Moshi v0.3 - the next-gen MLStyle, GADT, extensible pattern matching and more](https://discourse.julialang.org/t/ann-moshi-v0-3-the-next-gen-mlstyle-gadt-extensible-pattern-matching-and-more/117613)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 3\
**Last updated:** [August 5, 2024, 3:36pm UTC](https://discourse.julialang.org/t/ann-moshi-v0-3-the-next-gen-mlstyle-gadt-extensible-pattern-matching-and-more/117613 "2024-08-05T15:36:15Z")

</div>

This work has been iterating for about three years across multiple packages, from design to implementation. Now, it’s converging, so I’m very excited to announce a pre-alpha version for people to try out first. Please r…

---

## [A good colorscheme encodes the right information on data. Is inferno a good colorscheme?](https://discourse.julialang.org/t/a-good-colorscheme-encodes-the-right-information-on-data-is-inferno-a-good-colorscheme/99962)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 0\
**Last updated:** [June 6, 2023, 7:55pm UTC](https://discourse.julialang.org/t/a-good-colorscheme-encodes-the-right-information-on-data-is-inferno-a-good-colorscheme/99962 "2023-06-06T19:55:05Z")

</div>

There is a thread https://discourse.julialang.org/t/comparison-of-plotting-packages/99860 where users of different plotting/drawing libraries try to convince the readers about the superiority of their tool. No matter w…

---

## [Ph.D. in constrained optimization and learning - Inria & University Grenoble Alpes](https://discourse.julialang.org/t/ph-d-in-constrained-optimization-and-learning-inria-university-grenoble-alpes/114431)

<div class="topic-metadata">

**Author:** [@mbesancon](https://discourse.julialang.org/u/mbesancon)\
**Replies:** 2\
**Last updated:** [August 5, 2024, 2:05pm UTC](https://discourse.julialang.org/t/ph-d-in-constrained-optimization-and-learning-inria-university-grenoble-alpes/114431 "2024-08-05T14:05:07Z")

</div>

I am looking for a Ph.D. student starting this fall (september / october), together with Jérôme Malick and Panayotis Mertikopoulous to work at the intersection of discrete and constrained nonlinear optimization motivated…

---

## [Variables are Missing from Variable map in PDE](https://discourse.julialang.org/t/variables-are-missing-from-variable-map-in-pde/117707)

<div class="topic-metadata">

**Author:** [@ppinney](https://discourse.julialang.org/u/ppinney)\
**Replies:** 4\
**Last updated:** [August 5, 2024, 1:13pm UTC](https://discourse.julialang.org/t/variables-are-missing-from-variable-map-in-pde/117707 "2024-08-05T13:13:07Z")

</div>

Hello, I am trying to solve a set of coupled PDEs using MethodOfLines.jl, but I am new to both PDE solving and Julia in general. The code is based on one of the MethodOfLines.jl tutorials: using MethodOfLines, Modeling…

---

## [How to solve a nonlinear system with redundancy with NonlinearSolve.jl](https://discourse.julialang.org/t/how-to-solve-a-nonlinear-system-with-redundancy-with-nonlinearsolve-jl/117840)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 1\
**Last updated:** [August 5, 2024, 1:11pm UTC](https://discourse.julialang.org/t/how-to-solve-a-nonlinear-system-with-redundancy-with-nonlinearsolve-jl/117840 "2024-08-05T13:11:32Z")

</div>

Hi, I have problem using NonlinearSolve.jl to solve the following nonlinear system. The reason of the problem is because of the redundancy among the last 3 equations. I wonder if it is possible for NonlinearSolve.jl to …

---

## [Using views of CuArray with CUDA-aware MPI is extremely slow](https://discourse.julialang.org/t/using-views-of-cuarray-with-cuda-aware-mpi-is-extremely-slow/117348)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 14\
**Last updated:** [August 5, 2024, 12:36pm UTC](https://discourse.julialang.org/t/using-views-of-cuarray-with-cuda-aware-mpi-is-extremely-slow/117348 "2024-08-05T12:36:56Z")

</div>

Hi everyone, I attempted a simple 2D boundary communication using MPI.jl and CUDA.jl. However, when I used views, the wall time was 100 times slower compared to not using views. I made slight modifications based on the …

---

## [Julia with Knitro](https://discourse.julialang.org/t/julia-with-knitro/81686)

<div class="topic-metadata">

**Author:** [@joyce\_azevedo](https://discourse.julialang.org/u/joyce_azevedo)\
**Replies:** 22\
**Last updated:** [August 5, 2024, 11:54am UTC](https://discourse.julialang.org/t/julia-with-knitro/81686 "2024-08-05T11:54:18Z")

</div>

Hey everyone! I’m trying to set a time limit and a gap in Julia using Knitro, but not having success: m = Model(KNITRO.Optimizer) set\_optimizer\_attribute(m, “maxtime\_cpu”, 3.6e+2) set\_optimizer\_attribute(m, “mip\_opt\_g…

---

## [Upload new package to github](https://discourse.julialang.org/t/upload-new-package-to-github/56783)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 24\
**Last updated:** [August 5, 2024, 11:26am UTC](https://discourse.julialang.org/t/upload-new-package-to-github/56783 "2024-08-05T11:26:57Z")

</div>

I created a new package locally using PkgTemplates. It looks like this: ufechner@TUD277255:~/repos/Rubi$ tree -L 1 . ├── deps ├── doc ├── input ├── LICENSE ├── Manifest.toml ├── Project.toml ├── README.md ├── src └── t…

---

## [Integer (\`Int64\`) factorization: Julia code is extremely slow](https://discourse.julialang.org/t/integer-int64-factorization-julia-code-is-extremely-slow/117819)

<div class="topic-metadata">

**Author:** [@xinwu](https://discourse.julialang.org/u/xinwu)\
**Replies:** 7\
**Last updated:** [August 5, 2024, 11:24am UTC](https://discourse.julialang.org/t/integer-int64-factorization-julia-code-is-extremely-slow/117819 "2024-08-05T11:24:37Z")

</div>

Hi, are there any mistakes in my Julia code for integer (Int64) factorization? C++ code finishes instantly. Julia code seems to run forever. Here are the codes. Thank you for your hints! #include \<iostream\> #include \<…

---

## [Output from Base.find\_package?](https://discourse.julialang.org/t/output-from-base-find-package/117829)

<div class="topic-metadata">

**Author:** [@pywugate](https://discourse.julialang.org/u/pywugate)\
**Replies:** 1\
**Last updated:** [August 5, 2024, 10:41am UTC](https://discourse.julialang.org/t/output-from-base-find-package/117829 "2024-08-05T10:41:40Z")

</div>

Hi all, I have a question about the behaviour of Base.find\_package. I know package can be found : if the package is already installed. by using CSV But when I follow this tuto: How to develop a Julia package for dev…

---

## [Using @distributed for loop](https://discourse.julialang.org/t/using-distributed-for-loop/117831)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 10\
**Last updated:** [August 5, 2024, 10:26am UTC](https://discourse.julialang.org/t/using-distributed-for-loop/117831 "2024-08-05T10:26:41Z")

</div>

Hello everyone, Can someone point out why following setup is not working ? Issue is that I want to copy function result in xm variable that is defined by @everywhere to not have issue with workers. But when I run loop i…

---

## [Cannot convince StanSample to change num\_samples](https://discourse.julialang.org/t/cannot-convince-stansample-to-change-num-samples/117814)

<div class="topic-metadata">

**Author:** [@dimsinel](https://discourse.julialang.org/u/dimsinel)\
**Replies:** 0\
**Last updated:** [August 4, 2024, 4:32pm UTC](https://discourse.julialang.org/t/cannot-convince-stansample-to-change-num-samples/117814 "2024-08-04T16:32:21Z")

</div>

This is a simple model: art\_model = " data { int\<lower = 0, upper = 100\> Y; } parameters { real\<lower = 0, upper = 1\> pi; } model { Y ~ binomial(100, pi); pi ~ beta(4, 6); } """ sample\_art\_mod…

---

## [How to use local version of test dependency?](https://discourse.julialang.org/t/how-to-use-local-version-of-test-dependency/117833)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 0\
**Last updated:** [August 5, 2024, 8:42am UTC](https://discourse.julialang.org/t/how-to-use-local-version-of-test-dependency/117833 "2024-08-05T08:42:30Z")

</div>

I have a monorepo with two packages side by side: DifferentiationInterface.jl (DI) and DifferentiationInterfaceTest.jl (DIT). The tests of DI require DIT, and when I run CI, I want to be sure to always install the local …

---

## [Tests with coverage in VSCode](https://discourse.julialang.org/t/tests-with-coverage-in-vscode/117787)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 8\
**Last updated:** [August 5, 2024, 6:19am UTC](https://discourse.julialang.org/t/tests-with-coverage-in-vscode/117787 "2024-08-05T06:19:01Z")

</div>

I recently noticed for the first time this icon in the Julia extension for testing in VSCode: The hover tool tip says “run tests with coverage”. I ran it and got a message saying this feature only works in Julia v 1.…

---

## [Macro to turn on/off parallelisation](https://discourse.julialang.org/t/macro-to-turn-on-off-parallelisation/117808)

<div class="topic-metadata">

**Author:** [@jibe](https://discourse.julialang.org/u/jibe)\
**Replies:** 15\
**Last updated:** [August 5, 2024, 4:50am UTC](https://discourse.julialang.org/t/macro-to-turn-on-off-parallelisation/117808 "2024-08-05T04:50:32Z")

</div>

I want to define a macro, @parallel, to turn on/off parallelisation in for loops, depending on a command-line argument. Here, parallelisation is embarassing and uses Threads.@threads. Why would I want to do this? Becaus…

---

## [How to implement similar functionality as in Simulink/Simscape by ModelingToolkitStandardLibrary.jl](https://discourse.julialang.org/t/how-to-implement-similar-functionality-as-in-simulink-simscape-by-modelingtoolkitstandardlibrary-jl/106597)

<div class="topic-metadata">

**Author:** [@Jan\_Svanda](https://discourse.julialang.org/u/Jan_Svanda)\
**Replies:** 14\
**Last updated:** [August 5, 2024, 3:53am UTC](https://discourse.julialang.org/t/how-to-implement-similar-functionality-as-in-simulink-simscape-by-modelingtoolkitstandardlibrary-jl/106597 "2024-08-05T03:53:27Z")

</div>

I try the Julia Modeling Toolkit as an alternative to Simulink/Simscape. I’m struggling a bit with the connection to the “classical” Julia code. I’m looking for something like a PS-Simulink converter block. The following…

---

## [Repeated contractions - Vector-of-StaticArrays vs HybridArrays.jl, discrepancy in performance between Float64 vs Float32](https://discourse.julialang.org/t/repeated-contractions-vector-of-staticarrays-vs-hybridarrays-jl-discrepancy-in-performance-between-float64-vs-float32/117794)

<div class="topic-metadata">

**Author:** [@jl\_enthusiast](https://discourse.julialang.org/u/jl_enthusiast)\
**Replies:** 9\
**Last updated:** [August 4, 2024, 11:50pm UTC](https://discourse.julialang.org/t/repeated-contractions-vector-of-staticarrays-vs-hybridarrays-jl-discrepancy-in-performance-between-float64-vs-float32/117794 "2024-08-04T23:50:55Z")

</div>

Hi, I am doing some pre-emptive benchmarking for a larger project. As part of it, I am checking the most optimal way to store N pre-computed 3x3 matrices which we use to contract N 3-length vectors with. I represent the…

---

## [Parallel Branch and Bound Priority Queue](https://discourse.julialang.org/t/parallel-branch-and-bound-priority-queue/117818)

<div class="topic-metadata">

**Author:** [@phK3](https://discourse.julialang.org/u/phK3)\
**Replies:** 1\
**Last updated:** [August 4, 2024, 7:41pm UTC](https://discourse.julialang.org/t/parallel-branch-and-bound-priority-queue/117818 "2024-08-04T19:41:58Z")

</div>

I’ve implemented code for a simple branch and bound procedure for maximizing a function in Julia (actually I’ve tweaked the code in NeuralPriorityOptimizer.jl). Currently the code runs on a single thread, but I’d like t…

---

## [Problem making two custom number types work together](https://discourse.julialang.org/t/problem-making-two-custom-number-types-work-together/117735)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 6\
**Last updated:** [August 4, 2024, 7:28pm UTC](https://discourse.julialang.org/t/problem-making-two-custom-number-types-work-together/117735 "2024-08-04T19:28:29Z")

</div>

I’ve defined a type of symbolic number, FastDifferentiation.Node, struct Node \<: Real ... end that causes this error when used with Quaternions.jl: julia\> using FastDifferentiation,Quaternions julia\> @variables x…

---

## [Call for Contributors: Distributions on Manifolds](https://discourse.julialang.org/t/call-for-contributors-distributions-on-manifolds/117820)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 0\
**Last updated:** [August 4, 2024, 6:20pm UTC](https://discourse.julialang.org/t/call-for-contributors-distributions-on-manifolds/117820 "2024-08-04T18:20:29Z")

</div>

in JuliaManifolds we have reached a relatively stable interface for manifolds. One thing I often hear about it Statistics on manifolds – basically to combine distributions and Riemannian manifolds. We currenlty offer, w…

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

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