# Latest

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

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

**Page:** 967

---

## [Converting symbolic function to numeric with SymPy](https://discourse.julialang.org/t/converting-symbolic-function-to-numeric-with-sympy/85072)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 4\
**Last updated:** [August 1, 2022, 5:36am UTC](https://discourse.julialang.org/t/converting-symbolic-function-to-numeric-with-sympy/85072 "2022-08-01T05:36:19Z")

</div>

I have using SymPy a = Sym("a") g(a) = a^2 - a g\_prime(a) = diff(g(a)) g\_prime(a) \> 2𝑎−1 I would like to get a function numeric g\_prime(a) that I can plug numbers into and evaluate. How do I do that? The Julia SymPy d…

---

## [Why there is no method matching round(::Type{Int64}, ::BitArray{1})](https://discourse.julialang.org/t/why-there-is-no-method-matching-round-type-int64-bitarray-1/32163)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 11\
**Last updated:** [August 1, 2022, 3:57am UTC](https://discourse.julialang.org/t/why-there-is-no-method-matching-round-type-int64-bitarray-1/32163 "2022-08-01T03:57:19Z")

</div>

let us suppose that i want to perform this following operation: round(Int,\[2.3,2.5,8.9\].\>0) and then i get a MethodError saying that: ERROR: MethodError: no method matching round(::Type{Int64}, ::BitArray{1}). is the…

---

## [Problem to install MiniQhull in Julia 1.7.0 on Mac OS](https://discourse.julialang.org/t/problem-to-install-miniqhull-in-julia-1-7-0-on-mac-os/85017)

<div class="topic-metadata">

**Author:** [@Yong](https://discourse.julialang.org/u/Yong)\
**Replies:** 3\
**Last updated:** [August 1, 2022, 2:36am UTC](https://discourse.julialang.org/t/problem-to-install-miniqhull-in-julia-1-7-0-on-mac-os/85017 "2022-08-01T02:36:57Z")

</div>

Dear all, When I install MiniQhull in Julia 1.7.0, I got the following error message. Could you please help me to how to fix it? Thanks! julia\> Pkg.precompile() Precompiling project… ✗ MiniQhull 0 dependencies succ…

---

## [\[Probably\] A Naive Macro Interpolation Doubt](https://discourse.julialang.org/t/probably-a-naive-macro-interpolation-doubt/85082)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 2\
**Last updated:** [August 1, 2022, 2:03am UTC](https://discourse.julialang.org/t/probably-a-naive-macro-interpolation-doubt/85082 "2022-08-01T02:03:19Z")

</div>

Hellos, All that I want to do is a basic a macro to access some arrays. Here is the working code with expressions: # works let N = 5 a = zeros(N) b = collect(1:N) myexp = quote for i = 1:$N …

---

## [Mixed-Integer Multi-objective Constrained Optimization Problem Solving](https://discourse.julialang.org/t/mixed-integer-multi-objective-constrained-optimization-problem-solving/83030)

<div class="topic-metadata">

**Author:** [@Magy](https://discourse.julialang.org/u/Magy)\
**Replies:** 4\
**Last updated:** [July 31, 2022, 11:43pm UTC](https://discourse.julialang.org/t/mixed-integer-multi-objective-constrained-optimization-problem-solving/83030 "2022-07-31T23:43:51Z")

</div>

Dear All, I wonder if there is a direct package that can be used to solve a mixed-integer multi-objective constrained problem. I tried to use “Metaheuristics.jl” but failed to represent my model’s mixed-integer variable…

---

## [Debugging Zygote: ERROR: Mutating arrays is not supported](https://discourse.julialang.org/t/debugging-zygote-error-mutating-arrays-is-not-supported/85064)

<div class="topic-metadata">

**Author:** [@mauerflitzer](https://discourse.julialang.org/u/mauerflitzer)\
**Replies:** 2\
**Last updated:** [July 31, 2022, 11:42pm UTC](https://discourse.julialang.org/t/debugging-zygote-error-mutating-arrays-is-not-supported/85064 "2022-07-31T23:42:21Z")

</div>

Hi, I’m fairly new to Julia and not really experienced with Zygote so far, thats why I have a hard time debugging it. I try to implement the following loss function, where I pass a 2 dimensional grid (t and x) and calcu…

---

## [How do I transform a vector into a Matrix](https://discourse.julialang.org/t/how-do-i-transform-a-vector-into-a-matrix/85032)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 5\
**Last updated:** [July 31, 2022, 8:13pm UTC](https://discourse.julialang.org/t/how-do-i-transform-a-vector-into-a-matrix/85032 "2022-07-31T20:13:11Z")

</div>

The code below creates three identical matrices, m1, m2, and m3 in three different ways. m3 was created programatically. The function foo could be anything the user would like it to be, subject to converting an Int int…

---

## [Allowing Agents.jl OpenStreetMapSpace to read GeoJSON](https://discourse.julialang.org/t/allowing-agents-jl-openstreetmapspace-to-read-geojson/85055)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [July 31, 2022, 7:15pm UTC](https://discourse.julialang.org/t/allowing-agents-jl-openstreetmapspace-to-read-geojson/85055 "2022-07-31T19:15:40Z")

</div>

Hi I was wondering whether it would be too difficult add GeoJSON reading capabilities to agents.jl’s OpenStreetMapSpace. I am asking this as open source tools such as QGIS allows easy conversion between shp and GeoJSON …

---

## [ForwardDiff Dual Type problem with GLM](https://discourse.julialang.org/t/forwarddiff-dual-type-problem-with-glm/85045)

<div class="topic-metadata">

**Author:** [@YangkeunYun](https://discourse.julialang.org/u/YangkeunYun)\
**Replies:** 2\
**Last updated:** [July 31, 2022, 2:50pm UTC](https://discourse.julialang.org/t/forwarddiff-dual-type-problem-with-glm/85045 "2022-07-31T14:50:57Z")

</div>

Hi, I am working on ForwardDiff package to implement some optimizations. The core problem comes from Dual type (made by autodiff of ForwardDiff) and GLM package. I’ve seen other posts related to the issues with FowardD…

---

## [Copyto! issue when updating fields of struct](https://discourse.julialang.org/t/copyto-issue-when-updating-fields-of-struct/85052)

<div class="topic-metadata">

**Author:** [@WDM-Computation](https://discourse.julialang.org/u/WDM-Computation)\
**Replies:** 8\
**Last updated:** [July 31, 2022, 6:26pm UTC](https://discourse.julialang.org/t/copyto-issue-when-updating-fields-of-struct/85052 "2022-07-31T18:26:25Z")

</div>

Hello! This is somewhat of a followup question from before. I have some structs using StaticArrays for performance reasons, which has been working great until now. It seems that as long as I am broadcasting ( ‘.=’ ) an …

---

## [Solve many first-order ODEs](https://discourse.julialang.org/t/solve-many-first-order-odes/85060)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 6\
**Last updated:** [July 31, 2022, 6:25pm UTC](https://discourse.julialang.org/t/solve-many-first-order-odes/85060 "2022-07-31T18:25:21Z")

</div>

What is the best way to solve so many decoupled ODEs? Possibly in parallel. Should I use Modeling Toolkit or DifferentialEquations? The equations are of the type: u’ = -a^2k^2u where a is the same for all, then I have…

---

## [How to Plot Fractals using Plots and GR()?](https://discourse.julialang.org/t/how-to-plot-fractals-using-plots-and-gr/85054)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 5\
**Last updated:** [July 31, 2022, 3:54pm UTC](https://discourse.julialang.org/t/how-to-plot-fractals-using-plots-and-gr/85054 "2022-07-31T15:54:24Z")

</div>

Hi all, I have tried this code here: https://gist.github.com/XerxesZorgon/5205facbb7c7ef02999e27ead70a5d59 But I can’t plot it, I am using Jupyter Notebook and Julia REPL it only shows : plotJulia

---

## [DIvide a Polygon Area in small pieces](https://discourse.julialang.org/t/divide-a-polygon-area-in-small-pieces/85014)

<div class="topic-metadata">

**Author:** [@Jesus\_Chavez\_Solano](https://discourse.julialang.org/u/Jesus_Chavez_Solano)\
**Replies:** 4\
**Last updated:** [July 31, 2022, 3:39pm UTC](https://discourse.julialang.org/t/divide-a-polygon-area-in-small-pieces/85014 "2022-07-31T15:39:39Z")

</div>

Hi everyone ,I’m doing a momentum curvature usign Popovic’s Model and found a big problem beacuse to divide a polygon(convex or concave) into small fiber like this image but with more lines: it’s not so easy to do…

---

## [Stipple.jl can't get notify working](https://discourse.julialang.org/t/stipple-jl-cant-get-notify-working/84484)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 1\
**Last updated:** [July 31, 2022, 3:11pm UTC](https://discourse.julialang.org/t/stipple-jl-cant-get-notify-working/84484 "2022-07-31T15:11:16Z")

</div>

Hi there julia noob here. Starting to use Stipple.jl and hit a stumbling block caused by my ignorance. I am using zmq to pass an ipm who’s payload can insert a row or update an existing row in a dataframe. I have the c…

---

## [SOLVED -- JuliaPro-0.6.1.1 SystemError: opening file /home/.../Atom.ji](https://discourse.julialang.org/t/solved-juliapro-0-6-1-1-systemerror-opening-file-home-atom-ji/8032)

<div class="topic-metadata">

**Author:** [@r-handsfield](https://discourse.julialang.org/u/r-handsfield)\
**Replies:** 3\
**Last updated:** [July 31, 2022, 1:58pm UTC](https://discourse.julialang.org/t/solved-juliapro-0-6-1-1-systemerror-opening-file-home-atom-ji/8032 "2022-07-31T13:58:56Z")

</div>

Installed JuliaPro-0.6.1.1 on Ubuntu-16.04, in a parallel directory to base Julia-0.6. Julia console in the JuliaPro installation of Atom always lead to a fatal error, which traced to this: JuliaPro julia\> using Atom E…

---

## [Best way to handle multiple time series in Julia?](https://discourse.julialang.org/t/best-way-to-handle-multiple-time-series-in-julia/85044)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 4\
**Last updated:** [July 31, 2022, 11:53am UTC](https://discourse.julialang.org/t/best-way-to-handle-multiple-time-series-in-julia/85044 "2022-07-31T11:53:54Z")

</div>

Is the general consensus that using loops is “more Julian” than storing multiple time series in a matrix? Context: If I want to generate and plot 3 time series, my Python-ian instinct is to store them in a matrix. But Q…

---

## [A\\b vs LinearSolve.jl at JuliaCon 2022](https://discourse.julialang.org/t/a-b-vs-linearsolve-jl-at-juliacon-2022/85030)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 5\
**Last updated:** [July 31, 2022, 10:50am UTC](https://discourse.julialang.org/t/a-b-vs-linearsolve-jl-at-juliacon-2022/85030 "2022-07-31T10:50:44Z")

</div>

I just end watching LinearSolve.jl: because A\\b is not good enough by Chris Rackauckas himself and I’m a bit confused. When I get basic points why such packages was developed, somethings bugs me about A\\b being “deprecat…

---

## [Example for checkboxes in Gtk.jl](https://discourse.julialang.org/t/example-for-checkboxes-in-gtk-jl/85028)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 13\
**Last updated:** [July 31, 2022, 8:13am UTC](https://discourse.julialang.org/t/example-for-checkboxes-in-gtk-jl/85028 "2022-07-31T08:13:07Z")

</div>

I am looking for a simple example how to create a dialog with a few checkboxes with Gtk.jl. Any idea where I could find that?

---

## [New version of Nbdev.jl](https://discourse.julialang.org/t/new-version-of-nbdev-jl/85051)

<div class="topic-metadata">

**Author:** [@satyabrata\_pal](https://discourse.julialang.org/u/satyabrata_pal)\
**Replies:** 2\
**Last updated:** [July 31, 2022, 5:13am UTC](https://discourse.julialang.org/t/new-version-of-nbdev-jl/85051 "2022-07-31T05:13:33Z")

</div>

I have added a couple of new features in “Nbdev.jl” for #JuliaLang . Nbdev.jl now has project scaffolding through Julia REPL and also has the ability to generate source code link in the documentation. Here is a tutorial …

---

## [Term.jl / logging / sending messages to multiple locations](https://discourse.julialang.org/t/term-jl-logging-sending-messages-to-multiple-locations/84841)

<div class="topic-metadata">

**Author:** [@anon28281882](https://discourse.julialang.org/u/anon28281882)\
**Replies:** 8\
**Last updated:** [July 30, 2022, 11:26pm UTC](https://discourse.julialang.org/t/term-jl-logging-sending-messages-to-multiple-locations/84841 "2022-07-30T23:26:30Z")

</div>

I’d like to ask if sending logging messages both to terminal and to a file is supported by Term.jl \[Logging · Term.jl\]. I read in JuliaLogging documentation that Logging together with LoggingExtras is supporting such opt…

---

## [Type stability in function involving selectdim](https://discourse.julialang.org/t/type-stability-in-function-involving-selectdim/85009)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 3\
**Last updated:** [July 30, 2022, 7:58pm UTC](https://discourse.julialang.org/t/type-stability-in-function-involving-selectdim/85009 "2022-07-30T19:58:22Z")

</div>

So I’m trying to write a function to perform trapezoidal rule: function trapzNd(A, t; dims=1) N = size(A, dims) dt\_shape = ones(Int64, ndims(A)) dt\_shape\[dims\] = length(t) - 1 dt = reshape(diff(t), …

---

## [Julia and online course materials](https://discourse.julialang.org/t/julia-and-online-course-materials/84173)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 14\
**Last updated:** [July 30, 2022, 6:20pm UTC](https://discourse.julialang.org/t/julia-and-online-course-materials/84173 "2022-07-30T18:20:53Z")

</div>

I am potentially maybe on the fence sort of considering having my own course website outside of our university LMS (Canvas). I seem to recall some other people doing the same thing, and I’m wondering what sort of tooling…

---

## [Get all changes of sign of some vectors](https://discourse.julialang.org/t/get-all-changes-of-sign-of-some-vectors/77790)

<div class="topic-metadata">

**Author:** [@stla](https://discourse.julialang.org/u/stla)\
**Replies:** 7\
**Last updated:** [July 30, 2022, 5:51pm UTC](https://discourse.julialang.org/t/get-all-changes-of-sign-of-some-vectors/77790 "2022-07-30T17:51:37Z")

</div>

Hello, Given some vectors of numbers, I need to get all vectors obtained from the given ones by assigning the signs + or - to the numbers. For example: vctrs = \[\[0.4; 0.3\], \[0.5; 0.0\]\] julia\> changesOfSign(vctrs) 6-ele…

---

## [Calling another function in loop using Base.Threads](https://discourse.julialang.org/t/calling-another-function-in-loop-using-base-threads/85037)

<div class="topic-metadata">

**Author:** [@Amol\_H](https://discourse.julialang.org/u/Amol_H)\
**Replies:** 6\
**Last updated:** [July 30, 2022, 4:09pm UTC](https://discourse.julialang.org/t/calling-another-function-in-loop-using-base-threads/85037 "2022-07-30T16:09:18Z")

</div>

Dear All, I am having a problem running the following code in parallel. Please suggest how to achieve the parallelization to populate an array by a so-called very computationally expensive function. Thanks and Regards …

---

## [How to build this sparsematrix in Julia](https://discourse.julialang.org/t/how-to-build-this-sparsematrix-in-julia/84608)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 43\
**Last updated:** [July 30, 2022, 3:27pm UTC](https://discourse.julialang.org/t/how-to-build-this-sparsematrix-in-julia/84608 "2022-07-30T15:27:24Z")

</div>

I have the below command in Matlab, I could not find how to do it in Julia. Any suggestion please? sparse((1:5)', \[11,22,33,44,55\], \[1,2,3,4,5\])

---

## [Higher order SVD in Julia like Numpy?](https://discourse.julialang.org/t/higher-order-svd-in-julia-like-numpy/85025)

<div class="topic-metadata">

**Author:** [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)\
**Replies:** 2\
**Last updated:** [July 30, 2022, 12:07pm UTC](https://discourse.julialang.org/t/higher-order-svd-in-julia-like-numpy/85025 "2022-07-30T12:07:41Z")

</div>

Hello all I was wondering if there is any way to do higher order SVD in Julia using LinearAlgebra.jl like you can using numpy.linalg.svd or should I just use PyCall? I tried with LinearAlgebra.svd but it didn’t work out…

---

## [Run commands on externally running process](https://discourse.julialang.org/t/run-commands-on-externally-running-process/85026)

<div class="topic-metadata">

**Author:** [@s-baumann](https://discourse.julialang.org/u/s-baumann)\
**Replies:** 1\
**Last updated:** [July 30, 2022, 2:00pm UTC](https://discourse.julialang.org/t/run-commands-on-externally-running-process/85026 "2022-07-30T14:00:33Z")

</div>

I want to run one command to open a program. Then do a second command in this program. For instance in the below case the first line opens a psql session and the second should insert some data via a csv file. line1 = \`…

---

## [Good Scientific Code Workshop](https://discourse.julialang.org/t/good-scientific-code-workshop/84698)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 6\
**Last updated:** [July 30, 2022, 12:09pm UTC](https://discourse.julialang.org/t/good-scientific-code-workshop/84698 "2022-07-30T12:09:44Z")

</div>

Hello lovely people! Over the past three years I’ve been developing a workshop on Good Scientific Code. It hopes to solve many problems in scientific code that stem from lack of education on programming principles. The …

---

## [How to clear old plots from Plot Navigator?](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928)

<div class="topic-metadata">

**Author:** [@selim](https://discourse.julialang.org/u/selim)\
**Replies:** 7\
**Last updated:** [July 30, 2022, 10:46am UTC](https://discourse.julialang.org/t/how-to-clear-old-plots-from-plot-navigator/84928 "2022-07-30T10:46:17Z")

</div>

Hi, I can’t find a way to clear plots without restarting vscode completely. Is there a shortcut or a button for that? Here in the image there are old plots that I can’t clear from old runs. Restarting julia repl doesn’t …

---

## [How to append 3 dimension array( matrix) for example in MATLAB M(:,:,i) = b](https://discourse.julialang.org/t/how-to-append-3-dimension-array-matrix-for-example-in-matlab-m-i-b/85005)

<div class="topic-metadata">

**Author:** [@Starpower\_Power](https://discourse.julialang.org/u/Starpower_Power)\
**Replies:** 5\
**Last updated:** [July 30, 2022, 9:54am UTC](https://discourse.julialang.org/t/how-to-append-3-dimension-array-matrix-for-example-in-matlab-m-i-b/85005 "2022-07-30T09:54:27Z")

</div>

How to append 3 dimension array( matrix) for example in MATLAB M(:,:,i) = b. and i don’t know how far ‘i’ will go. so please give solution for initial matrix is blank rather than zeros. Thank You.

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

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