# Latest

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

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

**Page:** 821

---

## [Issues installing plotting packages (due to FFMPEG / Cairo?)](https://discourse.julialang.org/t/issues-installing-plotting-packages-due-to-ffmpeg-cairo/92491)

<div class="topic-metadata">

**Author:** [@Olof\_Salberger](https://discourse.julialang.org/u/Olof_Salberger)\
**Replies:** 3\
**Last updated:** [January 5, 2023, 4:34pm UTC](https://discourse.julialang.org/t/issues-installing-plotting-packages-due-to-ffmpeg-cairo/92491 "2023-01-05T16:34:55Z")

</div>

For example, installing Makie gives me this: julia\> import Makie \[ Info: Precompiling Makie \[ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a\] ERROR: LoadError: InitError: could not load library “C:\\Users\\olofs.julia\\artifacts\\3…

---

## [Getting a REPL after executing startup code](https://discourse.julialang.org/t/getting-a-repl-after-executing-startup-code/92537)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 9\
**Last updated:** [January 5, 2023, 3:35pm UTC](https://discourse.julialang.org/t/getting-a-repl-after-executing-startup-code/92537 "2023-01-05T15:35:51Z")

</div>

I would like to pass some initial code to Julia and then continue with a REPL, from bash (the Linux command line) I input echo 'println(4)' | julia -i which prints out “4” and exits. How do I get Julia to give me a REP…

---

## [Compute only specific cells in 3D Matrix](https://discourse.julialang.org/t/compute-only-specific-cells-in-3d-matrix/92476)

<div class="topic-metadata">

**Author:** [@Bozaga\_Murat](https://discourse.julialang.org/u/Bozaga_Murat)\
**Replies:** 2\
**Last updated:** [January 5, 2023, 2:22pm UTC](https://discourse.julialang.org/t/compute-only-specific-cells-in-3d-matrix/92476 "2023-01-05T14:22:07Z")

</div>

Hey everybody, I have a 3D Matrix and a array with 3D coordinates. My target is to compute die differences with the neighbour cells. Yes, its called finite difference. So, I know how I can compute a range in this 3D Mat…

---

## [Solving sparse linear system returns a Matrix](https://discourse.julialang.org/t/solving-sparse-linear-system-returns-a-matrix/92451)

<div class="topic-metadata">

**Author:** [@A\_C](https://discourse.julialang.org/u/A_C)\
**Replies:** 10\
**Last updated:** [January 5, 2023, 2:05pm UTC](https://discourse.julialang.org/t/solving-sparse-linear-system-returns-a-matrix/92451 "2023-01-05T14:05:59Z")

</div>

Solving the sparse system is returning a Matrix while converting to dense and then solving returns a Vector as expected. Is this the expected behavior? Or am I doing something incorrectly? using SparseArrays # Construc…

---

## [Problem with precompiling Plots in Julia 1.8.2](https://discourse.julialang.org/t/problem-with-precompiling-plots-in-julia-1-8-2/88235)

<div class="topic-metadata">

**Author:** [@dariogasbarra](https://discourse.julialang.org/u/dariogasbarra)\
**Replies:** 8\
**Last updated:** [January 5, 2023, 1:53pm UTC](https://discourse.julialang.org/t/problem-with-precompiling-plots-in-julia-1-8-2/88235 "2023-01-05T13:53:59Z")

</div>

Hello I have problems using Plots after installing Julia 1.8.2, precompiling does not work, how to solve this problem ? Thanks a lot here the errors: \_ \_ ()\_ | Documentation: https://docs.julialang.org …

---

## [Jupyter julia notebook on Amazon AWS SageMaker](https://discourse.julialang.org/t/jupyter-julia-notebook-on-amazon-aws-sagemaker/75904)

<div class="topic-metadata">

**Author:** [@wub7quxa](https://discourse.julialang.org/u/wub7quxa)\
**Replies:** 2\
**Last updated:** [January 5, 2023, 11:23am UTC](https://discourse.julialang.org/t/jupyter-julia-notebook-on-amazon-aws-sagemaker/75904 "2023-01-05T11:23:03Z")

</div>

I want to run a Jupyter notebook in Amazon SageMaker with a Julia kernel. There is very little documentation about this. There is this: I followed all the instructions, and Julia shows up in the JupyterLab launcher; b…

---

## [Using Julia on Android with UserLAnd](https://discourse.julialang.org/t/using-julia-on-android-with-userland/58498)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 26\
**Last updated:** [January 5, 2023, 9:23am UTC](https://discourse.julialang.org/t/using-julia-on-android-with-userland/58498 "2023-01-05T09:23:17Z")

</div>

The purpose of this post is to teach a way to use the Julia language on an Android smartphone. PS. Sorry for my English Step 1 Download these apps: UserLAnd (Linux emulator) CodeBoard (Optional. A custom keyboard for…

---

## [No method matching getindex for XLSX?](https://discourse.julialang.org/t/no-method-matching-getindex-for-xlsx/92538)

<div class="topic-metadata">

**Author:** [@probit2011](https://discourse.julialang.org/u/probit2011)\
**Replies:** 5\
**Last updated:** [January 5, 2023, 9:10am UTC](https://discourse.julialang.org/t/no-method-matching-getindex-for-xlsx/92538 "2023-01-05T09:10:35Z")

</div>

I have been trying to progress with the tutorials from Julia Academy, this time with the Data Science tutorial (here). I am trying to use the first notebook (Data.ipynb) with the Jupyter facilities within VS Code. I chos…

---

## [Could not download forward compatibility package for CUDA](https://discourse.julialang.org/t/could-not-download-forward-compatibility-package-for-cuda/92142)

<div class="topic-metadata">

**Author:** [@Pavel\_Petrov](https://discourse.julialang.org/u/Pavel_Petrov)\
**Replies:** 7\
**Last updated:** [January 5, 2023, 8:55am UTC](https://discourse.julialang.org/t/could-not-download-forward-compatibility-package-for-cuda/92142 "2023-01-05T08:55:05Z")

</div>

I am trying to run some CUDA calculations on a cluster and I have a problem with CUDA artifacts. Here is a simple test code, which I run on cluster node. ENV\["JULIA\_CUDA\_USE\_BINARYBUILDER"\] = false using CUDA CUDA.versi…

---

## [Segmentation fault in jupyter notebook but not REPL?](https://discourse.julialang.org/t/segmentation-fault-in-jupyter-notebook-but-not-repl/92543)

<div class="topic-metadata">

**Author:** [@cjproud](https://discourse.julialang.org/u/cjproud)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 8:07am UTC](https://discourse.julialang.org/t/segmentation-fault-in-jupyter-notebook-but-not-repl/92543 "2023-01-05T08:07:01Z")

</div>

Hi everyone, I’ve run into an extremely bizarre issue. When running Julia code, which calls Fortran code via CCall, I get a Stack Overflow Error when a particular subroutine is called in Fortran. This however, only happ…

---

## [Pruning on skeleton image in Julia](https://discourse.julialang.org/t/pruning-on-skeleton-image-in-julia/91586)

<div class="topic-metadata">

**Author:** [@momo1](https://discourse.julialang.org/u/momo1)\
**Replies:** 2\
**Last updated:** [January 5, 2023, 8:06am UTC](https://discourse.julialang.org/t/pruning-on-skeleton-image-in-julia/91586 "2023-01-05T08:06:38Z")

</div>

Hi I’ve a thinned image from Images.jl thinning(). I’m trying to prune the small branches, I’m not sure how. I’ve used harris point detector to get the points on branch ends and on branch-outs. How should the spurs b…

---

## [Plot lines and markers beyond the limits of the axes?](https://discourse.julialang.org/t/plot-lines-and-markers-beyond-the-limits-of-the-axes/92506)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [January 5, 2023, 7:38am UTC](https://discourse.julialang.org/t/plot-lines-and-markers-beyond-the-limits-of-the-axes/92506 "2023-01-05T07:38:35Z")

</div>

Is it possible? I tried to search for information but I’m not sure what key words I should use . . . In the following example, the first and last markers are cut in half or quarter at the left and right edges of the fr…

---

## [How to re-enable code syntax highlighting for IJulia in Jupyter](https://discourse.julialang.org/t/how-to-re-enable-code-syntax-highlighting-for-ijulia-in-jupyter/21893)

<div class="topic-metadata">

**Author:** [@samq](https://discourse.julialang.org/u/samq)\
**Replies:** 3\
**Last updated:** [January 5, 2023, 7:08am UTC](https://discourse.julialang.org/t/how-to-re-enable-code-syntax-highlighting-for-ijulia-in-jupyter/21893 "2023-01-05T07:08:15Z")

</div>

I was using IJulia with Jupyter just fine. The only thing I didn’t like was whenever I’d highlight a section of code with the mouse, I couldn’t see it very well since I’m using Dark Reader in Chrome browser. I tried to …

---

## [Why can't I combine a macro call with a comparison operator?](https://discourse.julialang.org/t/why-cant-i-combine-a-macro-call-with-a-comparison-operator/92493)

<div class="topic-metadata">

**Author:** [@veddox](https://discourse.julialang.org/u/veddox)\
**Replies:** 5\
**Last updated:** [January 5, 2023, 6:13am UTC](https://discourse.julialang.org/t/why-cant-i-combine-a-macro-call-with-a-comparison-operator/92493 "2023-01-05T06:13:37Z")

</div>

To save myself a bit of typing, I have created a wrapper macro around a function in my model, to be used in a specific context: macro landcover() :(landcover($(esc(:pos)), $(esc(:model)))) end I want to be able to …

---

## [VectorizationBase seems to wrongly detect the number of the physical cores](https://discourse.julialang.org/t/vectorizationbase-seems-to-wrongly-detect-the-number-of-the-physical-cores/92489)

<div class="topic-metadata">

**Author:** [@27rabbitlt](https://discourse.julialang.org/u/27rabbitlt)\
**Replies:** 5\
**Last updated:** [January 5, 2023, 5:47am UTC](https://discourse.julialang.org/t/vectorizationbase-seems-to-wrongly-detect-the-number-of-the-physical-cores/92489 "2023-01-05T05:47:48Z")

</div>

Hi guys~ I’m here again. Not long ago, I posted my first post here and got a lot of awesome answers about how to use multithreading and SIMD in julia, and the best practice about benchmarking. After I figured out how t…

---

## [Update array](https://discourse.julialang.org/t/update-array/92530)

<div class="topic-metadata">

**Author:** [@jgr](https://discourse.julialang.org/u/jgr)\
**Replies:** 4\
**Last updated:** [January 5, 2023, 12:40am UTC](https://discourse.julialang.org/t/update-array/92530 "2023-01-05T00:40:38Z")

</div>

Hi, I am trying to update an array using the following code add!(z::Val{1}, list, a) = add!(list, a) function add!(list, a) list = list .+a return nothing end However, this does not seem to work well: list …

---

## [How make .+ work with A::Vector{Float64} and B::OffsetArray(::Vector{Float64}, 0:1)](https://discourse.julialang.org/t/how-make-work-with-a-vector-float64-and-b-offsetarray-vector-float64-0-1/92524)

<div class="topic-metadata">

**Author:** [@elvispy](https://discourse.julialang.org/u/elvispy)\
**Replies:** 7\
**Last updated:** [January 4, 2023, 10:48pm UTC](https://discourse.julialang.org/t/how-make-work-with-a-vector-float64-and-b-offsetarray-vector-float64-0-1/92524 "2023-01-04T22:48:46Z")

</div>

The LegendrePolynomials.jl package has a function collectPl which returns an OffsetArray Object. It appears that, for some reason, the dot operations are not working properly with this type of data: julia\> A = \[1.0, 2.…

---

## [Anyone knows how to make a Julia shield?](https://discourse.julialang.org/t/anyone-knows-how-to-make-a-julia-shield/92520)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [January 4, 2023, 10:41pm UTC](https://discourse.julialang.org/t/anyone-knows-how-to-make-a-julia-shield/92520 "2023-01-04T22:41:57Z")

</div>

Using this website I see that some are able to make small logos: I need to learn how to do it for a small Julia logo - does anyone happen to know how? For example one for Angular looks like this: Kind regards

---

## [Symbolics: get the coefficients of the polynomial binomial(x, c)](https://discourse.julialang.org/t/symbolics-get-the-coefficients-of-the-polynomial-binomial-x-c/92511)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 11\
**Last updated:** [January 4, 2023, 10:01pm UTC](https://discourse.julialang.org/t/symbolics-get-the-coefficients-of-the-polynomial-binomial-x-c/92511 "2023-01-04T22:01:28Z")

</div>

How to get a polynomial expression from, e.g., binomial(x, 3)? julia\> using Symbolics julia\> @variables x 1-element Vector{Num}: x julia\> binomial(x, 3) binomial(x, 3) julia\> simplify(ans) binomial(x, 3)

---

## [How to use sympy to replace a symbol in a derivative?](https://discourse.julialang.org/t/how-to-use-sympy-to-replace-a-symbol-in-a-derivative/92521)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 6\
**Last updated:** [January 4, 2023, 9:46pm UTC](https://discourse.julialang.org/t/how-to-use-sympy-to-replace-a-symbol-in-a-derivative/92521 "2023-01-04T21:46:49Z")

</div>

Hello, good afternoon. Im trying to use sympy to calc an gradient descent in some symbols and having troubles with index. This algorithm is pretty simple using to calc derivative by hand. Using sympy things gets wierd. …

---

## [Problem displaying images with ImageView and Gtk/GtkReactive](https://discourse.julialang.org/t/problem-displaying-images-with-imageview-and-gtk-gtkreactive/92507)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 9:21pm UTC](https://discourse.julialang.org/t/problem-displaying-images-with-imageview-and-gtk-gtkreactive/92507 "2023-01-04T21:21:44Z")

</div>

I have a problem using GtkReactive and Gtk. \> using Images, ImageView \> imshow(\[1 1 ; 1 1\]) gives a small black square. If now I load GtkReactive and Gtk, \> using GtkReactive, Gtk \> imshow(\[1 1 ; 1 1\]) I get a blank…

---

## [Problem saving a UnicodePlots figure](https://discourse.julialang.org/t/problem-saving-a-unicodeplots-figure/92522)

<div class="topic-metadata">

**Author:** [@MarawanEmara](https://discourse.julialang.org/u/MarawanEmara)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 8:55pm UTC](https://discourse.julialang.org/t/problem-saving-a-unicodeplots-figure/92522 "2023-01-04T20:55:02Z")

</div>

Hello! I have a problem-saving plot formed through UnicodePlots. The code I’m using could be found in this GitHub Repository. Everything works fine, I just wanted to attempt and save one of the plots to try and export …

---

## [StaticLint without VSCode](https://discourse.julialang.org/t/staticlint-without-vscode/92517)

<div class="topic-metadata">

**Author:** [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 6:57pm UTC](https://discourse.julialang.org/t/staticlint-without-vscode/92517 "2023-01-04T18:57:45Z")

</div>

Is there a way to run the StaticLint without running VSCode? I’m looking for a way to run in the REPL. I’ve tried the following but get an error about LibSSH2\_jll, MbedTLS\_jll, and Zlib\_jll not stored on disc. # First…

---

## [Packages won't install in Julia on company laptop](https://discourse.julialang.org/t/packages-wont-install-in-julia-on-company-laptop/92516)

<div class="topic-metadata">

**Author:** [@Numerical\_Marmot](https://discourse.julialang.org/u/Numerical_Marmot)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 6:51pm UTC](https://discourse.julialang.org/t/packages-wont-install-in-julia-on-company-laptop/92516 "2023-01-04T18:51:57Z")

</div>

I am on a Windows 10 laptop and have just installed Julia 1.8.4. When I try to install a package (through Pkg.add() and through “pkg\>”, I get the following error: Warning: could not download https://pkg.julialang.org p…

---

## [MethodError: no method matching floatrange when running histogram. 1.7.0 Win 11 21H2 AMD 5900Hx](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679)

<div class="topic-metadata">

**Author:** [@AmiranB](https://discourse.julialang.org/u/AmiranB)\
**Replies:** 9\
**Last updated:** [January 4, 2023, 5:43pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-floatrange-when-running-histogram-1-7-0-win-11-21h2-amd-5900hx/72679 "2023-01-04T17:43:49Z")

</div>

julia\> histogram(eruptions,label="eruptions") MethodError: no method matching floatrange(::Type{Float64}, ::Int64, ::Int64, ::Float64, ::Int64) Closest candidates are: floatrange(::Type{T}, ::Integer, ::Integer, ::Int…

---

## [Julia-1.8.4.pdf Page 455 update required](https://discourse.julialang.org/t/julia-1-8-4-pdf-page-455-update-required/92469)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 12:23am UTC](https://discourse.julialang.org/t/julia-1-8-4-pdf-page-455-update-required/92469 "2023-01-04T00:23:33Z")

</div>

In section 37.15 Paragraph 2 the documentation should be updated from 1.0.x to 1.6.x for the current LTS version. This is probably not the right place for this request but I don’t know the proper procedure.

---

## [How can I fix the following type unstability? (Example of a Type unstable function)](https://discourse.julialang.org/t/how-can-i-fix-the-following-type-unstability-example-of-a-type-unstable-function/92510)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 3:27pm UTC](https://discourse.julialang.org/t/how-can-i-fix-the-following-type-unstability-example-of-a-type-unstable-function/92510 "2023-01-04T15:27:07Z")

</div>

I’ve defined the following function: using DataFrames function Silouhette( input\_data, model::KmeansResult )::Float64 if Tables.istable(input\_data) RunSilouhette(Tables.matrix(input\_data), model) else …

---

## [QR decomposition with julia. How to?](https://discourse.julialang.org/t/qr-decomposition-with-julia-how-to/92508)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 10\
**Last updated:** [January 4, 2023, 3:25pm UTC](https://discourse.julialang.org/t/qr-decomposition-with-julia-how-to/92508 "2023-01-04T15:25:19Z")

</div>

Hello, good morning. How to procede with QR decomposition with julia? I tryed to port a python code, but im having trouble with qr julia function from linearalgebra module. Issues with matrix size and dimensions. X = d…

---

## [Debugging invalidations](https://discourse.julialang.org/t/debugging-invalidations/92357)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 17\
**Last updated:** [January 4, 2023, 3:03pm UTC](https://discourse.julialang.org/t/debugging-invalidations/92357 "2023-01-04T15:03:54Z")

</div>

I am testing Julia-1.9-beta2 on Ubuntu 22.04 and would like to improve the performance of plots using Bokeh.jl. In the moment the first time to plot with this package is about 13s, and it would be nice to improve that. …

---

## [CUDA test random failure](https://discourse.julialang.org/t/cuda-test-random-failure/92399)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 2:50pm UTC](https://discourse.julialang.org/t/cuda-test-random-failure/92399 "2023-01-04T14:50:01Z")

</div>

Hi, I am new to Julia gpu computation. I recently installed CUDA.jl, with the following status: (julia) pkg\> st Status \`~/julia/Project.toml\` \[6e4b80f9\] BenchmarkTools v1.3.2 \[052768ef\] CUDA v3.12.0 \[7a1cc6ca\] FFT…

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

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