# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=142

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

**Page:** 143

---

## [Converting Gtk.GtkAspectFrame to Gtk4.jl](https://discourse.julialang.org/t/converting-gtk-gtkaspectframe-to-gtk4-jl/108684)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 2:10pm UTC](https://discourse.julialang.org/t/converting-gtk-gtkaspectframe-to-gtk4-jl/108684 "2024-01-11T14:10:18Z")

</div>

There seems to be a few subtle changes between Gtk.jl to Gtk4.jl that I’m just not able to figure out by myself. Perhaps anyone has a clue? In Gtk there’s a af = GtkAspectFrame("label", 0.5, 0.5, 4/3), that you can then…

---

## [Parallel PyJulia](https://discourse.julialang.org/t/parallel-pyjulia/108680)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 0\
**Last updated:** [January 11, 2024, 12:57pm UTC](https://discourse.julialang.org/t/parallel-pyjulia/108680 "2024-01-11T12:57:00Z")

</div>

I am trying to train a RL model for controlling a kite. I am using python for training, and julia for the simulation. I want to speed up training using parallel deep RL. When trying to run julia functions from python in …

---

## [Importing only specific lines from large csv file](https://discourse.julialang.org/t/importing-only-specific-lines-from-large-csv-file/108672)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 6\
**Last updated:** [January 11, 2024, 12:23pm UTC](https://discourse.julialang.org/t/importing-only-specific-lines-from-large-csv-file/108672 "2024-01-11T12:23:05Z")

</div>

Greetings everyone, I am dealing with a very large CSV file, and I would like to only read specific parts of it and import them as a matrix. Effectively, I want something like: using DelimitedFiles data = readdlm("myf…

---

## [How to change specific parameter in DifferentialEquations CallbackSet?](https://discourse.julialang.org/t/how-to-change-specific-parameter-in-differentialequations-callbackset/108378)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 7\
**Last updated:** [January 11, 2024, 11:02am UTC](https://discourse.julialang.org/t/how-to-change-specific-parameter-in-differentialequations-callbackset/108378 "2024-01-11T11:02:05Z")

</div>

Hello, I am trying to run a simulation of a bacterial population with Julia. I set a function that takes one parameter (growth rate, mu) that should change at a specific time point (t\_in). I set the CallbackSet for the…

---

## [How to unsmooth GLMakie volume plot?](https://discourse.julialang.org/t/how-to-unsmooth-glmakie-volume-plot/107659)

<div class="topic-metadata">

**Author:** [@xinady](https://discourse.julialang.org/u/xinady)\
**Replies:** 10\
**Last updated:** [January 11, 2024, 1:16am UTC](https://discourse.julialang.org/t/how-to-unsmooth-glmakie-volume-plot/107659 "2024-01-11T01:16:28Z")

</div>

Hi, I’m working with 3d voxels data and want to use volume function from GLMakie. I noticed that visualized volume is kind of smoothed/averaged. For example, code for one voxel inside cube is: julia\> using GLMakie ju…

---

## [DiffEqGPU.jl with CUDA: Error computing gradients through SDE solver](https://discourse.julialang.org/t/diffeqgpu-jl-with-cuda-error-computing-gradients-through-sde-solver/108545)

<div class="topic-metadata">

**Author:** [@MatthieuDarcy](https://discourse.julialang.org/u/MatthieuDarcy)\
**Replies:** 12\
**Last updated:** [January 10, 2024, 7:32pm UTC](https://discourse.julialang.org/t/diffeqgpu-jl-with-cuda-error-computing-gradients-through-sde-solver/108545 "2024-01-10T19:32:12Z")

</div>

Hi Julia community! I’m trying to fit a custom, one-layer NN to an SDE by computing an MSE loss. Here is my code defining the model and computing the loss (noise and sample\_features are cuda matrices defined globally) d…

---

## [Angle of complex numbers: how to get continuous plot?](https://discourse.julialang.org/t/angle-of-complex-numbers-how-to-get-continuous-plot/108624)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [January 10, 2024, 8:18pm UTC](https://discourse.julialang.org/t/angle-of-complex-numbers-how-to-get-continuous-plot/108624 "2024-01-10T20:18:03Z")

</div>

I’m trying to plot the phase of a complex transfer function (as in control engineering) using the angle function. So essentially, if I have a transfer function g(s), I compute the angle (with rad2deg conversion) of g(j\\…

---

## [Differentiation (Zygote, but the issue is likely in ChainRules) return different types with \`Diagonal\`](https://discourse.julialang.org/t/differentiation-zygote-but-the-issue-is-likely-in-chainrules-return-different-types-with-diagonal/108608)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 2\
**Last updated:** [January 10, 2024, 7:09pm UTC](https://discourse.julialang.org/t/differentiation-zygote-but-the-issue-is-likely-in-chainrules-return-different-types-with-diagonal/108608 "2024-01-10T19:09:24Z")

</div>

Dear All, We are hacking a bit AbstractGP.jl and we have found an inconsistency in the returned type of Diagonal, which causes Zygote to complain. An MWE adapted from GPs is using LinearAlgebra, Zygote K = \[1.0009999…

---

## [VTK in IJulia / Visualizing Ferrite Results](https://discourse.julialang.org/t/vtk-in-ijulia-visualizing-ferrite-results/108484)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 18\
**Last updated:** [January 10, 2024, 6:01pm UTC](https://discourse.julialang.org/t/vtk-in-ijulia-visualizing-ferrite-results/108484 "2024-01-10T18:01:34Z")

</div>

I am looking for a way to open/visualize VTK files generated by Ferrite.jl, ideally in a Jupyter notebook but any other suggestions will be welcome. VTKView seems abandoned and DashVTK just seems to have vanished. Is the…

---

## [Makie: Unwanted whitespace to right of 3D subplots, and don't fully understand behaviour of colgap! with 3D plots](https://discourse.julialang.org/t/makie-unwanted-whitespace-to-right-of-3d-subplots-and-dont-fully-understand-behaviour-of-colgap-with-3d-plots/108636)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 2\
**Last updated:** [January 10, 2024, 5:26pm UTC](https://discourse.julialang.org/t/makie-unwanted-whitespace-to-right-of-3d-subplots-and-dont-fully-understand-behaviour-of-colgap-with-3d-plots/108636 "2024-01-10T17:26:34Z")

</div>

I have a small issue where there is some unwanted whitespace on the right of my figure. Also, the behaviour of colgap is a bit weird to me with 3D plots. The code I am using just makes four 2d plots and four 3d plots in…

---

## ["Reset" Makie without killing Julia process?](https://discourse.julialang.org/t/reset-makie-without-killing-julia-process/108504)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 11\
**Last updated:** [January 10, 2024, 5:18pm UTC](https://discourse.julialang.org/t/reset-makie-without-killing-julia-process/108504 "2024-01-10T17:18:38Z")

</div>

I semi-frequently seem to try things using Makie that stops it from working. Just now, I set rowsize! and colsize!(fig.layout,1,Aspect(1,1.0)), which gave an error. Not a problem, I thought I’d just create a new figure a…

---

## [Provenance of data in scientific packages](https://discourse.julialang.org/t/provenance-of-data-in-scientific-packages/108625)

<div class="topic-metadata">

**Author:** [@NicholasWMRitchie](https://discourse.julialang.org/u/NicholasWMRitchie)\
**Replies:** 4\
**Last updated:** [January 10, 2024, 5:11pm UTC](https://discourse.julialang.org/t/provenance-of-data-in-scientific-packages/108625 "2024-01-10T17:11:01Z")

</div>

I’m not sure how pervasive it is but I’ve noticed this issue a couple of times. The issue is this: The provenance of data used to implement basic “scientific packages” is ambiguous. This could mean the source of the d…

---

## [Cannot access MTK's observed variables in steady-state solutions (NonlinearSolution)](https://discourse.julialang.org/t/cannot-access-mtks-observed-variables-in-steady-state-solutions-nonlinearsolution/108524)

<div class="topic-metadata">

**Author:** [@Wen-Wei\_Tseng](https://discourse.julialang.org/u/Wen-Wei_Tseng)\
**Replies:** 3\
**Last updated:** [January 10, 2024, 8:42am UTC](https://discourse.julialang.org/t/cannot-access-mtks-observed-variables-in-steady-state-solutions-nonlinearsolution/108524 "2024-01-10T08:42:20Z")

</div>

MWE: using DifferentialEquations using ModelingToolkit @variables t x(t) RHS(t) @parameters τ D = Differential(t) eqs = \[ RHS ~ (1 - x) / τ D(x) ~ RHS \] @named sys = ODESystem(eqs, defaults=\[x=\>0.0, τ=\>3.0\]) …

---

## [Ensuring Forward and Backward Differentiability in Classical Inversion Process](https://discourse.julialang.org/t/ensuring-forward-and-backward-differentiability-in-classical-inversion-process/108609)

<div class="topic-metadata">

**Author:** [@vivekag7](https://discourse.julialang.org/u/vivekag7)\
**Replies:** 1\
**Last updated:** [January 10, 2024, 8:18am UTC](https://discourse.julialang.org/t/ensuring-forward-and-backward-differentiability-in-classical-inversion-process/108609 "2024-01-10T08:18:57Z")

</div>

Hi everyone, I am going to start off with some context and then proceed with describing my problem, so you get a better understanding of the scope. I am currently working on creating a classical inversion in the field …

---

## [New fresh talks on GeoStats.jl](https://discourse.julialang.org/t/new-fresh-talks-on-geostats-jl/108593)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 3\
**Last updated:** [January 10, 2024, 12:23am UTC](https://discourse.julialang.org/t/new-fresh-talks-on-geostats-jl/108593 "2024-01-10T00:23:50Z")

</div>

---

## [Fix variables or add as a contraint?](https://discourse.julialang.org/t/fix-variables-or-add-as-a-contraint/108594)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 5\
**Last updated:** [January 9, 2024, 11:04pm UTC](https://discourse.julialang.org/t/fix-variables-or-add-as-a-contraint/108594 "2024-01-09T23:04:48Z")

</div>

Dear all, I have an Integer (binary) problem where I want to fix some variables to obtain an heuristic solution. I use to add the constraint: @constraint(model, x\[j\] == 1) if I want to fix x\_j in 1. I would like to …

---

## [Physics-enhanced deep surrogates for partial differential equations](https://discourse.julialang.org/t/physics-enhanced-deep-surrogates-for-partial-differential-equations/108596)

<div class="topic-metadata">

**Author:** [@Perrin\_Meyer](https://discourse.julialang.org/u/Perrin_Meyer)\
**Replies:** 0\
**Last updated:** [January 9, 2024, 11:03pm UTC](https://discourse.julialang.org/t/physics-enhanced-deep-surrogates-for-partial-differential-equations/108596 "2024-01-09T23:03:50Z")

</div>

Very Interesting new Nature ML paper from some of the core Julia developers (using Julia as well). (It’s nice the journal article is open access, it’s worth a read).

---

## [How to read model weights using FluxTraining (stateaccess issues)?](https://discourse.julialang.org/t/how-to-read-model-weights-using-fluxtraining-stateaccess-issues/106409)

<div class="topic-metadata">

**Author:** [@neuromancer](https://discourse.julialang.org/u/neuromancer)\
**Replies:** 3\
**Last updated:** [January 9, 2024, 9:35pm UTC](https://discourse.julialang.org/t/how-to-read-model-weights-using-fluxtraining-stateaccess-issues/106409 "2024-01-09T21:35:21Z")

</div>

Summary I am looking for some help with implementing a custom validation loop using FluxTraining. Briefly, I am using Flux to optimize a matrix to satisfy a data-driven cost-function. Since the cost function depends on t…

---

## [Does Lux work with FluxTraining?](https://discourse.julialang.org/t/does-lux-work-with-fluxtraining/108591)

<div class="topic-metadata">

**Author:** [@neuromancer](https://discourse.julialang.org/u/neuromancer)\
**Replies:** 0\
**Last updated:** [January 9, 2024, 9:33pm UTC](https://discourse.julialang.org/t/does-lux-work-with-fluxtraining/108591 "2024-01-09T21:33:38Z")

</div>

I’m thinking about switching from Flux to Lux, since I really need a WeightNorm layer and I am struggling to write one for myself. I am heavily entrenched into using FluxTraining. Does anyone know if Lux works with FluxT…

---

## [Tuning parameters](https://discourse.julialang.org/t/tuning-parameters/108573)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 1\
**Last updated:** [January 9, 2024, 8:44pm UTC](https://discourse.julialang.org/t/tuning-parameters/108573 "2024-01-09T20:44:45Z")

</div>

I need to solve a hard MIP model using Gurobi. There is a tool to set the best parameters combination to solve this problem called “Parameter Tunning”. How can I find parameter tuning using Julia? Here, I present a simp…

---

## [How to use discrete events with an affect](https://discourse.julialang.org/t/how-to-use-discrete-events-with-an-affect/108503)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [January 8, 2024, 10:40am UTC](https://discourse.julialang.org/t/how-to-use-discrete-events-with-an-affect/108503 "2024-01-08T10:40:53Z")

</div>

I am trying to add an affect function to a discrete event. Not working: function bb\_affect!(integ, u, p, ctx) println(integ.u) end discrete\_events = \[\[1.0, 4.0\] =\> bb\_affect!\] @named sys = ODESystem(eqs…

---

## [Error bar color in Gadfly](https://discourse.julialang.org/t/error-bar-color-in-gadfly/108561)

<div class="topic-metadata">

**Author:** [@mattwigway](https://discourse.julialang.org/u/mattwigway)\
**Replies:** 0\
**Last updated:** [January 9, 2024, 1:32pm UTC](https://discourse.julialang.org/t/error-bar-color-in-gadfly/108561 "2024-01-09T13:32:18Z")

</div>

I’m trying to make a dodged bar plot with error bars in Gadfly. The problem is that the error bars are the same color as the bars, so you can’t see them. I’d like to just make the error bars black. plot( base\_race\_c…

---

## [UDEs & ModelingToolkit](https://discourse.julialang.org/t/udes-modelingtoolkit/108543)

<div class="topic-metadata">

**Author:** [@armansa](https://discourse.julialang.org/u/armansa)\
**Replies:** 1\
**Last updated:** [January 9, 2024, 3:48am UTC](https://discourse.julialang.org/t/udes-modelingtoolkit/108543 "2024-01-09T03:48:30Z")

</div>

Hi everyone, I’m using the UDE example here but trying to make it work for the case that my ODE system is not in defined in vector form (as it usually is for UODE examples I’ve seen), but in symbolic form using MTK. I h…

---

## [Slow code/ high allocations on a Google Cloud VM](https://discourse.julialang.org/t/slow-code-high-allocations-on-a-google-cloud-vm/108535)

<div class="topic-metadata">

**Author:** [@Alb3r7](https://discourse.julialang.org/u/Alb3r7)\
**Replies:** 0\
**Last updated:** [January 8, 2024, 7:40pm UTC](https://discourse.julialang.org/t/slow-code-high-allocations-on-a-google-cloud-vm/108535 "2024-01-08T19:40:12Z")

</div>

Hello, I’m trying to run my Julia (1.9) code on an C3D Google Compute Engine, but I have unusual high allocations and a slow execution compared to my local machine: Has someone any experience on using a Google Cloud …

---

## [How to catch integrator problems](https://discourse.julialang.org/t/how-to-catch-integrator-problems/108512)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 6\
**Last updated:** [January 8, 2024, 5:45pm UTC](https://discourse.julialang.org/t/how-to-catch-integrator-problems/108512 "2024-01-08T17:45:59Z")

</div>

I am using a CoupledODEs as a test for the results of a genetic algorithm. In other words, the parameter values (here 0.5 and 1.8) are chosen at random by the GA, then tested by solving the ODEs. This means that occasion…

---

## [How to set the same uniform units for all axes in 3D surface plot using Plots.jl?](https://discourse.julialang.org/t/how-to-set-the-same-uniform-units-for-all-axes-in-3d-surface-plot-using-plots-jl/108510)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 3\
**Last updated:** [January 8, 2024, 3:10pm UTC](https://discourse.julialang.org/t/how-to-set-the-same-uniform-units-for-all-axes-in-3d-surface-plot-using-plots-jl/108510 "2024-01-08T15:10:32Z")

</div>

I want to have a “normal” plot where all axes are the same, without any scaling, i.e. the length in every axis is the same. surface(xs, ts, f; fillalpha=0.9, camera=(20, 40), aspect\_ratio=1) gives this where 1 in the z…

---

## [XGBoostClassifier on bigger than RAM database](https://discourse.julialang.org/t/xgboostclassifier-on-bigger-than-ram-database/108358)

<div class="topic-metadata">

**Author:** [@Paulo\_Refosco](https://discourse.julialang.org/u/Paulo_Refosco)\
**Replies:** 2\
**Last updated:** [January 8, 2024, 12:56pm UTC](https://discourse.julialang.org/t/xgboostclassifier-on-bigger-than-ram-database/108358 "2024-01-08T12:56:13Z")

</div>

Hello, I am trying to run XGBoostClassifier on a dataset that doesn’t fit into RAM, so getting OutOfMemoryError(). I’m not soo much proeficient on writing codes but I think solutions could range from mini-batches and/or…

---

## [How to plot a line in 3D using Plots.jl?](https://discourse.julialang.org/t/how-to-plot-a-line-in-3d-using-plots-jl/108267)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 8\
**Last updated:** [January 8, 2024, 12:15pm UTC](https://discourse.julialang.org/t/how-to-plot-a-line-in-3d-using-plots-jl/108267 "2024-01-08T12:15:54Z")

</div>

How to plot a line in a 3D axis? Say, I want a parabola in the xy-plane (z=0) The straightforward options do not work; This one results an empty canvas \[-1, 1\] x \[-1, 1\]: using Plots xs = -5:1:5 plot(xs, xs.^2, 0) T…

---

## [IOError: could not spawn node.exe and vl2vg.js](https://discourse.julialang.org/t/ioerror-could-not-spawn-node-exe-and-vl2vg-js/108509)

<div class="topic-metadata">

**Author:** [@desanti58](https://discourse.julialang.org/u/desanti58)\
**Replies:** 0\
**Last updated:** [January 8, 2024, 11:22am UTC](https://discourse.julialang.org/t/ioerror-could-not-spawn-node-exe-and-vl2vg-js/108509 "2024-01-08T11:22:19Z")

</div>

Hello, I am trying to save a VegaLite plot as a SVG format. However, I get the following error: IOError: could not spawn setenv(\`'C:\\Users\\u0152683\\.julia\\artifacts\\0bd56198ac47b98572257a7725d9425f5a1ba1a9\\node.exe' 'C…

---

## [Nonconvex.jl reproduces the initial vector as the optimized vector](https://discourse.julialang.org/t/nonconvex-jl-reproduces-the-initial-vector-as-the-optimized-vector/107094)

<div class="topic-metadata">

**Author:** [@AP\_profile](https://discourse.julialang.org/u/AP_profile)\
**Replies:** 33\
**Last updated:** [January 8, 2024, 7:14am UTC](https://discourse.julialang.org/t/nonconvex-jl-reproduces-the-initial-vector-as-the-optimized-vector/107094 "2024-01-08T07:14:34Z")

</div>

Hi all, I have been attempting to use Noncovex.jl for an optimization problem, defined as follows: using AbstractDifferentiation using ForwardDiff using Nonconvex Nonconvex.@load NLopt start\_vec = zeros(11) x = start\_…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=141)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=143)
