# Specific Domains

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

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

**Page:** 369

---

## [Problems upgrading Makie](https://discourse.julialang.org/t/problems-upgrading-makie/60571)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 12:47pm UTC](https://discourse.julialang.org/t/problems-upgrading-makie/60571 "2021-05-05T12:47:25Z")

</div>

Hi all I’m currently losing the will to live with this. Though I’m probably just overlooking something obvious. I’m trying to update Makie.jl to the latest version. But I get the following error: ERROR: Unsatisfiable r…

---

## [Question about structural\_simplify in ModelingToolkit](https://discourse.julialang.org/t/question-about-structural-simplify-in-modelingtoolkit/60568)

<div class="topic-metadata">

**Author:** [@CodeLenz](https://discourse.julialang.org/u/CodeLenz)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 12:25pm UTC](https://discourse.julialang.org/t/question-about-structural-simplify-in-modelingtoolkit/60568 "2021-05-05T12:25:39Z")

</div>

It should be something simple, but I really cannot spot the error. Lets suppose I want to solve a simple mass-spring-damper problem m D2(x) + c D(x) + k x = f(t) Following MTK documentation I can use @parameters …

---

## [\[ANN\] IBMQClient.jl - the IBM Quantum Experience REST API wrapper in native Julia](https://discourse.julialang.org/t/ann-ibmqclient-jl-the-ibm-quantum-experience-rest-api-wrapper-in-native-julia/60566)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 0\
**Last updated:** [May 5, 2021, 10:28am UTC](https://discourse.julialang.org/t/ann-ibmqclient-jl-the-ibm-quantum-experience-rest-api-wrapper-in-native-julia/60566 "2021-05-05T10:28:21Z")

</div>

I’m pleased to announce the IBM Q REST API wrapper in native Julia based on its official implementation in qiskit. https://github.com/QuantumBFS/IBMQClient.jl This is a component of the coming YaoLang.jl package, which…

---

## [Mutation of integrator](https://discourse.julialang.org/t/mutation-of-integrator/60545)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 1\
**Last updated:** [May 5, 2021, 6:33am UTC](https://discourse.julialang.org/t/mutation-of-integrator/60545 "2021-05-05T06:33:19Z")

</div>

Suppose that I use an explicit scheme with fixed time-stepping to integrate an ODE, and I am not interested in interpolations of any sort. Is it ok to change directly the right-hand-side function f, the state u and the …

---

## [Plots.jl Align legend labels, :right not working](https://discourse.julialang.org/t/plots-jl-align-legend-labels-right-not-working/60493)

<div class="topic-metadata">

**Author:** [@VMHidalgo](https://discourse.julialang.org/u/VMHidalgo)\
**Replies:** 3\
**Last updated:** [May 4, 2021, 10:49pm UTC](https://discourse.julialang.org/t/plots-jl-align-legend-labels-right-not-working/60493 "2021-05-04T22:49:22Z")

</div>

Hi, I am getting familiar with the Plots recipes ecosystem, and I just wrote my first recipe but the attribute “legendfonthalign” does not seem to work. Does anyone know how to do it? Here is a MWE @recipe function f(…

---

## [Interpolations.jl Discrete CDF to PDF](https://discourse.julialang.org/t/interpolations-jl-discrete-cdf-to-pdf/60124)

<div class="topic-metadata">

**Author:** [@bicepjai](https://discourse.julialang.org/u/bicepjai)\
**Replies:** 10\
**Last updated:** [May 4, 2021, 5:51pm UTC](https://discourse.julialang.org/t/interpolations-jl-discrete-cdf-to-pdf/60124 "2021-05-04T17:51:31Z")

</div>

Say we have discrete CDF values (percentiles from the field for one metric) such as percentile 1 =\> 1.4 … percentile 10 =\> 10.3 … percentile 50 =\> 50.3 … percentile 80 =\> 70.3 … percentile 100 =\> 90.3 I am co…

---

## [Is there a way to avoid allocations when calling a Flux model? Especially on a GPU](https://discourse.julialang.org/t/is-there-a-way-to-avoid-allocations-when-calling-a-flux-model-especially-on-a-gpu/60279)

<div class="topic-metadata">

**Author:** [@jmair](https://discourse.julialang.org/u/jmair)\
**Replies:** 5\
**Last updated:** [May 4, 2021, 4:47pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-avoid-allocations-when-calling-a-flux-model-especially-on-a-gpu/60279 "2021-05-04T16:47:18Z")

</div>

When using Flux, especially with CUDA, each inference call uses a lot of allocations, particularly on a GPU, below is an example: julia\> using Flux, CUDA; julia\> model\_cpu = Flux.Chain(Flux.Dense(2, 8), Flux.Dense(8,8)…

---

## [What is a good way to delete lines in Makie?](https://discourse.julialang.org/t/what-is-a-good-way-to-delete-lines-in-makie/60478)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [May 4, 2021, 1:19pm UTC](https://discourse.julialang.org/t/what-is-a-good-way-to-delete-lines-in-makie/60478 "2021-05-04T13:19:38Z")

</div>

I have a diagram in a layout that is changing depending on user input. This means I need to delete the line and change the axis label again and again. What is the best way to do that? This is my current approach, but it…

---

## [Continuous view of CuArray using CartesianIndices does not return native CuArray](https://discourse.julialang.org/t/continuous-view-of-cuarray-using-cartesianindices-does-not-return-native-cuarray/60428)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 2\
**Last updated:** [May 4, 2021, 12:44pm UTC](https://discourse.julialang.org/t/continuous-view-of-cuarray-using-cartesianindices-does-not-return-native-cuarray/60428 "2021-05-04T12:44:14Z")

</div>

views of CuArrays generally return a native CuArray object if the underlying data is contiguous. However, the does not seem to be the case if views are formed using CartesianIndices. example: sz = (8,4,2,2) x = CUDA.ra…

---

## [Zygote errors on simple operations with Complex CUDA Arrays](https://discourse.julialang.org/t/zygote-errors-on-simple-operations-with-complex-cuda-arrays/60515)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 0\
**Last updated:** [May 4, 2021, 12:23pm UTC](https://discourse.julialang.org/t/zygote-errors-on-simple-operations-with-complex-cuda-arrays/60515 "2021-05-04T12:23:42Z")

</div>

Hey, I recently raised an issue on GitHub for Zygote because I fail to get Zygote differentiating code where I apply a simple function on a complex CUDA array. I’m using CUDA 3.1.0, Julia 1.6.1 and Zygote 0.6.10. It…

---

## [What’s the outlook on \`meshscatter\` supporting an array of markers?](https://discourse.julialang.org/t/what-s-the-outlook-on-meshscatter-supporting-an-array-of-markers/60505)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 2\
**Last updated:** [May 4, 2021, 11:55am UTC](https://discourse.julialang.org/t/what-s-the-outlook-on-meshscatter-supporting-an-array-of-markers/60505 "2021-05-04T11:55:16Z")

</div>

The question is mostly if the underlying engine in GLMakie allows this and it is just not exposed or if there are other reasons why this is not available.

---

## [Can WGLMakie display a 2D plot in Jupyter Notebook?](https://discourse.julialang.org/t/can-wglmakie-display-a-2d-plot-in-jupyter-notebook/60458)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 1\
**Last updated:** [May 4, 2021, 9:34am UTC](https://discourse.julialang.org/t/can-wglmakie-display-a-2d-plot-in-jupyter-notebook/60458 "2021-05-04T09:34:28Z")

</div>

From docs it’s not clear whether a 2D plot, generated by WGLMakie, can be displayed in IJulia or not. If it is possible I’d be very grateful for an explicit example. Thanks!

---

## [Global, non-convex, smooth and differentiable optimisation?](https://discourse.julialang.org/t/global-non-convex-smooth-and-differentiable-optimisation/60460)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 18\
**Last updated:** [May 4, 2021, 8:14am UTC](https://discourse.julialang.org/t/global-non-convex-smooth-and-differentiable-optimisation/60460 "2021-05-04T08:14:26Z")

</div>

I do have a loss function that : Is expressed as \\lVert \\mathbf y - \\mathbf A'\\mathbf p(\\mathbf x)\\rVert\_2^2, where \\mathbf y is a simple vector, \\mathbf A is a simple matrix (lower-triangular), and p\_1,...,p\_m are nas…

---

## [Is parallel Arrow data querying possible?](https://discourse.julialang.org/t/is-parallel-arrow-data-querying-possible/60462)

<div class="topic-metadata">

**Author:** [@Sami](https://discourse.julialang.org/u/Sami)\
**Replies:** 4\
**Last updated:** [May 4, 2021, 7:30am UTC](https://discourse.julialang.org/t/is-parallel-arrow-data-querying-possible/60462 "2021-05-04T07:30:32Z")

</div>

I have 16 cores on my machine and queries seem to utilize only one of them. I would like to be 16 times faster with my queries - so is it possible to run parallel queries on Arrow data (read in with Arrow.jl)?? For exam…

---

## [Result of mean() is different for CuArray vs. regular Int64 array](https://discourse.julialang.org/t/result-of-mean-is-different-for-cuarray-vs-regular-int64-array/60497)

<div class="topic-metadata">

**Author:** [@drjoke](https://discourse.julialang.org/u/drjoke)\
**Replies:** 1\
**Last updated:** [May 4, 2021, 5:35am UTC](https://discourse.julialang.org/t/result-of-mean-is-different-for-cuarray-vs-regular-int64-array/60497 "2021-05-04T05:35:21Z")

</div>

mean() is returning different results for CuArray vs regular Int64 array. using CUDA using Statistics INT = rand(Int64, 100000000) CUDA\_INT = CuArray(INT) I get 7.086957573875891e14 for mean(INT) and -2.814992433201059…

---

## [JuMP - defining problem by composing functions/expressions and mapping over collection](https://discourse.julialang.org/t/jump-defining-problem-by-composing-functions-expressions-and-mapping-over-collection/52568)

<div class="topic-metadata">

**Author:** [@NickRedwood](https://discourse.julialang.org/u/NickRedwood)\
**Replies:** 13\
**Last updated:** [May 4, 2021, 5:01am UTC](https://discourse.julialang.org/t/jump-defining-problem-by-composing-functions-expressions-and-mapping-over-collection/52568 "2021-05-04T05:01:15Z")

</div>

Hi, I’m new to both Julia and JuMP. Experience in C#, Scala and I like functional programming. Would love some help to get in to Julia optimisation. How do I compose functions or expressions in JuMP? I can make a trivia…

---

## [Faster gp fitting on million observations?](https://discourse.julialang.org/t/faster-gp-fitting-on-million-observations/59519)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 15\
**Last updated:** [May 4, 2021, 1:51am UTC](https://discourse.julialang.org/t/faster-gp-fitting-on-million-observations/59519 "2021-05-04T01:51:57Z")

</div>

I have a million-observation regression problem with one outcome and several predictors, including a time variable. I would like to fit the over-time variation with a Gaussian process. I tried using AbstractGPs with Dyna…

---

## [Am I creating distributions wrong in Turing?](https://discourse.julialang.org/t/am-i-creating-distributions-wrong-in-turing/60142)

<div class="topic-metadata">

**Author:** [@pthompson234](https://discourse.julialang.org/u/pthompson234)\
**Replies:** 11\
**Last updated:** [May 4, 2021, 1:21am UTC](https://discourse.julialang.org/t/am-i-creating-distributions-wrong-in-turing/60142 "2021-05-04T01:21:24Z")

</div>

Hello, I’m using Turing and having some issues. To reproduce this, I’ll provide about as simple of an example as I can generate. Let’s take the basic example from the docs (Probabilistic Programming in Thirty Seconds) an…

---

## [DynamicHMC for Bayesian inference where product distribution is observed - Possible?](https://discourse.julialang.org/t/dynamichmc-for-bayesian-inference-where-product-distribution-is-observed-possible/60268)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 9\
**Last updated:** [May 3, 2021, 11:50pm UTC](https://discourse.julialang.org/t/dynamichmc-for-bayesian-inference-where-product-distribution-is-observed-possible/60268 "2021-05-03T23:50:48Z")

</div>

Here is a generative model I am working on. Think of a game show where your winnings are determined by the product of two RV’s: winningsMultiplier(X) and maxWinnings(Y). We observe winnings w\_i = x\_i \* y. Our prior o…

---

## [Makie - connecting Slider to update a 2D slice \[matrix\] heatmap display of a 3D array](https://discourse.julialang.org/t/makie-connecting-slider-to-update-a-2d-slice-matrix-heatmap-display-of-a-3d-array/60477)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 2\
**Last updated:** [May 3, 2021, 8:05pm UTC](https://discourse.julialang.org/t/makie-connecting-slider-to-update-a-2d-slice-matrix-heatmap-display-of-a-3d-array/60477 "2021-05-03T20:05:57Z")

</div>

Hello, I would like to connect a Slider to an heatmap display of a 2D slice, i.e, matrix, of a 3D array: a3DArray\[:, :, sliderValue\]. such that as the Slider is moved, a new 2D slice is selected/indexed and the 2D heat…

---

## [Help in using Callbacks](https://discourse.julialang.org/t/help-in-using-callbacks/60482)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 1\
**Last updated:** [May 3, 2021, 7:19pm UTC](https://discourse.julialang.org/t/help-in-using-callbacks/60482 "2021-05-03T19:19:07Z")

</div>

Could someone please give me readings or small examples on how GLPK solver callbacks work? I would like to test on the model I’m building but I don’t know where to start. Thanks!

---

## [How to get ALL decision variables value?](https://discourse.julialang.org/t/how-to-get-all-decision-variables-value/60442)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 6\
**Last updated:** [May 3, 2021, 7:18pm UTC](https://discourse.julialang.org/t/how-to-get-all-decision-variables-value/60442 "2021-05-03T19:18:19Z")

</div>

Hi all, I am new in Julia and JuMP.jl I have many decision variables, like, x1, x1, …x999, … if I want to obtain the value of all decision variables now, I may only use the codes as follows: x1 = value.(x1) x2 = val…

---

## [Plots.jl: Side-by-side subplots](https://discourse.julialang.org/t/plots-jl-side-by-side-subplots/60469)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 5\
**Last updated:** [May 3, 2021, 7:17pm UTC](https://discourse.julialang.org/t/plots-jl-side-by-side-subplots/60469 "2021-05-03T19:17:57Z")

</div>

Hi, I want make 2 subplots with 2 function plots each in a 1-row 2-columns format. Below is a minimum working example for my use case. x = -2π:0.1:+2π y11 = sin.(x) y12 = sin.(x .+ 0.25π) y21 = cos.(x) y22 = sin.(x) .\*…

---

## [Controlling pan and tilt servos from beaglebone](https://discourse.julialang.org/t/controlling-pan-and-tilt-servos-from-beaglebone/60464)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 5\
**Last updated:** [May 3, 2021, 5:31pm UTC](https://discourse.julialang.org/t/controlling-pan-and-tilt-servos-from-beaglebone/60464 "2021-05-03T17:31:21Z")

</div>

I want to control a LynxMotion pan and tilt unit from a BeagleBone using Julia, if possible. Ideally, I’d like to skip the use of a micro-controller altogether and communicate with the LynxMotion unit directly through th…

---

## [Scattering and gathering arrays](https://discourse.julialang.org/t/scattering-and-gathering-arrays/60345)

<div class="topic-metadata">

**Author:** [@francispoulin](https://discourse.julialang.org/u/francispoulin)\
**Replies:** 5\
**Last updated:** [May 3, 2021, 1:27pm UTC](https://discourse.julialang.org/t/scattering-and-gathering-arrays/60345 "2021-05-03T13:27:34Z")

</div>

I am trying to translate a python script that scatters aand gathers 2D arrays, as can be found here. python - Along what axis does mpi4py Scatterv function split a numpy array? - Stack Overflow I have managed to get som…

---

## [Periodic lattices with LightGraph](https://discourse.julialang.org/t/periodic-lattices-with-lightgraph/60454)

<div class="topic-metadata">

**Author:** [@Marco\_Antoniotti](https://discourse.julialang.org/u/Marco_Antoniotti)\
**Replies:** 2\
**Last updated:** [May 3, 2021, 1:09pm UTC](https://discourse.julialang.org/t/periodic-lattices-with-lightgraph/60454 "2021-05-03T13:09:20Z")

</div>

Hi just being lazy here… What would be the simplest way to produce a periodic lattice with LightGraphs? I.e. a “cylinder”. Thanks Marco

---

## [Sparse Jacobian with dense blocks in differentialEquations.jl or otherwise](https://discourse.julialang.org/t/sparse-jacobian-with-dense-blocks-in-differentialequations-jl-or-otherwise/60430)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 2\
**Last updated:** [May 3, 2021, 8:26am UTC](https://discourse.julialang.org/t/sparse-jacobian-with-dense-blocks-in-differentialequations-jl-or-otherwise/60430 "2021-05-03T08:26:13Z")

</div>

Dear all, I am planning to use differentialEquations.jl to solve a stiff system of ordinary differential equations in which the Jacobian is sparse with dense blocks. Such systems are well known in this community as they…

---

## [Expression #= none:3 =# should not be used as a variable name](https://discourse.julialang.org/t/expression-none-3-should-not-be-used-as-a-variable-name/60422)

<div class="topic-metadata">

**Author:** [@BYS](https://discourse.julialang.org/u/BYS)\
**Replies:** 4\
**Last updated:** [May 3, 2021, 1:48am UTC](https://discourse.julialang.org/t/expression-none-3-should-not-be-used-as-a-variable-name/60422 "2021-05-03T01:48:16Z")

</div>

If I write using JuMP @variable(pro,begin t1\>=1 t2\>=2 t3\>=3 end) I find a error like this ERROR: LoadError: Expression #= none:3 =# should not be used as a variable name. Use the "anonymous" syntax #= no…

---

## [Bayesian Model Selection](https://discourse.julialang.org/t/bayesian-model-selection/55725)

<div class="topic-metadata">

**Author:** [@ANasc](https://discourse.julialang.org/u/ANasc)\
**Replies:** 18\
**Last updated:** [May 2, 2021, 8:58pm UTC](https://discourse.julialang.org/t/bayesian-model-selection/55725 "2021-05-02T20:58:15Z")

</div>

Hi All, This question might reveal my limited knowledge of Bayesian estimation, but I am having difficulty figuring out how to perform basic Bayesian model selection in Turing. The documentation for MCMCChains.jl has a …

---

## [Makie.jl resize event](https://discourse.julialang.org/t/makie-jl-resize-event/60418)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [May 2, 2021, 8:21pm UTC](https://discourse.julialang.org/t/makie-jl-resize-event/60418 "2021-05-02T20:21:14Z")

</div>

Hello, one more question: Is it possible in GLMakie to capture window resize events? I need this because the automatic layout is not doing 100% what I want.

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

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