# Latest

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

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

**Page:** 743

---

## [CUDAKernels not defined error in KernelAbstractions example](https://discourse.julialang.org/t/cudakernels-not-defined-error-in-kernelabstractions-example/96003)

<div class="topic-metadata">

**Author:** [@prikmm](https://discourse.julialang.org/u/prikmm)\
**Replies:** 6\
**Last updated:** [March 21, 2023, 7:21pm UTC](https://discourse.julialang.org/t/cudakernels-not-defined-error-in-kernelabstractions-example/96003 "2023-03-21T19:21:37Z")

</div>

Hi all, I am new to Julia and am currently trying to run performant\_matmul.jl example present in KernelsAbstractions.jl. I have added CUDA.jl to my environment which I created using activate & instantiate using the Proj…

---

## [How to derivative using ForwardDiff](https://discourse.julialang.org/t/how-to-derivative-using-forwarddiff/96269)

<div class="topic-metadata">

**Author:** [@KotaAihara](https://discourse.julialang.org/u/KotaAihara)\
**Replies:** 5\
**Last updated:** [March 27, 2023, 10:18am UTC](https://discourse.julialang.org/t/how-to-derivative-using-forwarddiff/96269 "2023-03-27T10:18:23Z")

</div>

I want any help. I want derivative a quadratic form function using ForwardDiff X,T = 80,52 param = \[σ,μ\] function q(param::AbstractVector{T}) where T σ = param\[1\] V = zeros(T,T) for i in 1:T for j …

---

## [Is there some functionality to spit out LaTeX code for typesetting matrices?](https://discourse.julialang.org/t/is-there-some-functionality-to-spit-out-latex-code-for-typesetting-matrices/22219)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 10\
**Last updated:** [March 27, 2023, 4:48am UTC](https://discourse.julialang.org/t/is-there-some-functionality-to-spit-out-latex-code-for-typesetting-matrices/22219 "2023-03-27T04:48:05Z")

</div>

For instance to typeset 3 x 3 random matrix of floats, I would like to call a function (or a macro) to produce the typesetting code. Is there such a thing?

---

## [Memory usage and performance differences in 1.9-rc1 vs. 1.8.5](https://discourse.julialang.org/t/memory-usage-and-performance-differences-in-1-9-rc1-vs-1-8-5/96209)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 12\
**Last updated:** [March 27, 2023, 4:12am UTC](https://discourse.julialang.org/t/memory-usage-and-performance-differences-in-1-9-rc1-vs-1-8-5/96209 "2023-03-27T04:12:42Z")

</div>

I have some memory- and CPU-intensive multithreaded image analysis code. In 1.8.5, on an AWS Linux system with 64 GB of RAM and 8 vCPUs, the code will run in cycles, spiking up to (for one example) 23 GB of allocated RA…

---

## [Generate mesh from SDF](https://discourse.julialang.org/t/generate-mesh-from-sdf/96618)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 8\
**Last updated:** [March 27, 2023, 3:03am UTC](https://discourse.julialang.org/t/generate-mesh-from-sdf/96618 "2023-03-27T03:03:38Z")

</div>

Suppose I have a simple signed-distance function/field (SDF) defined natively in Julia. Is there an easy way to generate a mesh of this SDF (eg to use within an FEM simulation)? Nothing fancy wrt the type of mesh etc. I…

---

## [Is there a way to run code from @code\_native](https://discourse.julialang.org/t/is-there-a-way-to-run-code-from-code-native/96644)

<div class="topic-metadata">

**Author:** [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 2:47am UTC](https://discourse.julialang.org/t/is-there-a-way-to-run-code-from-code-native/96644 "2023-03-27T02:47:41Z")

</div>

I want to @code\_native a function, make some edits to the assembly and then run it. For example a function I want to edit is using SIMD f(x, y) = any(x \> y) x = Vec{8, Float32}(1) y = Vec{8, Float32}(0) I would like…

---

## [Help on model a problem/function to use with Optimization.jl](https://discourse.julialang.org/t/help-on-model-a-problem-function-to-use-with-optimization-jl/95942)

<div class="topic-metadata">

**Author:** [@rodolforbcoutinho](https://discourse.julialang.org/u/rodolforbcoutinho)\
**Replies:** 17\
**Last updated:** [March 27, 2023, 2:25am UTC](https://discourse.julialang.org/t/help-on-model-a-problem-function-to-use-with-optimization-jl/95942 "2023-03-27T02:25:55Z")

</div>

Hello to all. I’m trying to use Optimization.jl to solve a problem, but a I dont know how to define the problem in a way the package needs it. In my problem I have an Array of a Struct with several parameters and for ea…

---

## [Loading a x86 shared library on a macBook M2](https://discourse.julialang.org/t/loading-a-x86-shared-library-on-a-macbook-m2/96624)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 5\
**Last updated:** [March 26, 2023, 10:44pm UTC](https://discourse.julialang.org/t/loading-a-x86-shared-library-on-a-macbook-m2/96624 "2023-03-26T22:44:39Z")

</div>

Hi! I’m moving a Julia project from an old MacBook Pro (2017) with an Intel Core i7 chip to a brand new one (2023) with the M2 Max. My project requires a C shared library which is not yet available on this new platform…

---

## [PlotlyJS.jl animation](https://discourse.julialang.org/t/plotlyjs-jl-animation/70058)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 14\
**Last updated:** [March 26, 2023, 9:01pm UTC](https://discourse.julialang.org/t/plotlyjs-jl-animation/70058 "2023-03-26T21:01:56Z")

</div>

Are there any examples of animating plots in PlotlyJS.jl, in particular using multiple frames such as this Python example? I noticed a mention of using react!, but that has downsides (e.g. it resets the viewer orientati…

---

## [Textbox graph with NetworkLayout with labels cut off using GraphMakie](https://discourse.julialang.org/t/textbox-graph-with-networklayout-with-labels-cut-off-using-graphmakie/96566)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 3\
**Last updated:** [March 26, 2023, 7:02pm UTC](https://discourse.julialang.org/t/textbox-graph-with-networklayout-with-labels-cut-off-using-graphmakie/96566 "2023-03-26T19:02:38Z")

</div>

I am using a textbox graph with NetworkLayout. Using their layout algorithms it creates the positions based on the graph but when the labels are bigger than the points it cuts it of. What would be a good solution for com…

---

## [How to start a julia process on a remote machine with multiple threads?](https://discourse.julialang.org/t/how-to-start-a-julia-process-on-a-remote-machine-with-multiple-threads/96628)

<div class="topic-metadata">

**Author:** [@lucasmsoares96](https://discourse.julialang.org/u/lucasmsoares96)\
**Replies:** 3\
**Last updated:** [March 26, 2023, 5:20pm UTC](https://discourse.julialang.org/t/how-to-start-a-julia-process-on-a-remote-machine-with-multiple-threads/96628 "2023-03-26T17:20:05Z")

</div>

When starting a Julia session with the following command julia --machine-file machine-file.txt -p 2, the processes created on the remote machine have only one thread, even with the environment variable JULIA\_NUM\_THREADS …

---

## [View and boolean indexing](https://discourse.julialang.org/t/view-and-boolean-indexing/96609)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 4\
**Last updated:** [March 26, 2023, 5:14pm UTC](https://discourse.julialang.org/t/view-and-boolean-indexing/96609 "2023-03-26T17:14:25Z")

</div>

This old thread brought up an important question about why view(x,boolean\_indices) is slow. One reply said “So the TLDR is: Mixing views and logical indices is currently no good.” It seems to be that we still have this …

---

## [Support for urlsafe alphabets in Base64?](https://discourse.julialang.org/t/support-for-urlsafe-alphabets-in-base64/4065)

<div class="topic-metadata">

**Author:** [@krm01](https://discourse.julialang.org/u/krm01)\
**Replies:** 3\
**Last updated:** [March 26, 2023, 5:11pm UTC](https://discourse.julialang.org/t/support-for-urlsafe-alphabets-in-base64/4065 "2023-03-26T17:11:10Z")

</div>

the Base64 module seems to be hardcoded to use the standard alphabet - I need to consume data encoded with the urlsafe alphabet (-,\_ instead of +,/). As a workaround I’m translating the source string into the urlsafe equ…

---

## [Can you Connect Julia REPL terminal to Jupyter Notebook](https://discourse.julialang.org/t/can-you-connect-julia-repl-terminal-to-jupyter-notebook/94739)

<div class="topic-metadata">

**Author:** [@m\_x155](https://discourse.julialang.org/u/m_x155)\
**Replies:** 4\
**Last updated:** [March 26, 2023, 4:22pm UTC](https://discourse.julialang.org/t/can-you-connect-julia-repl-terminal-to-jupyter-notebook/94739 "2023-03-26T16:22:53Z")

</div>

Can you Connect Julia REPL terminal to Jupyter Notebook. In python there is something is a command %connect\_info that gives you the information that allows you to connect an ipython terminal to an open notebook. Can you…

---

## [Chicago meetup via reddit](https://discourse.julialang.org/t/chicago-meetup-via-reddit/96631)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [March 26, 2023, 3:06pm UTC](https://discourse.julialang.org/t/chicago-meetup-via-reddit/96631 "2023-03-26T15:06:12Z")

</div>

Looks like some folks on Reddit are starting to consider a Chicago meetup. See below for the discussion. https://www.reddit.com/r/Julia/comments/1222nhj/julia\_people\_in\_chicago\_for\_a\_gather/

---

## [Problems fitting a simple Multinomial model in RxInfer](https://discourse.julialang.org/t/problems-fitting-a-simple-multinomial-model-in-rxinfer/95442)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 5\
**Last updated:** [March 26, 2023, 2:33pm UTC](https://discourse.julialang.org/t/problems-fitting-a-simple-multinomial-model-in-rxinfer/95442 "2023-03-26T14:33:10Z")

</div>

Hello everyone, I’m experimenting with the awesome package RxInfer but apparently I’m having some difficulties in understanding some basic principles. I tried to adapt one of the first simple examples of RxInfer to bui…

---

## [Help writing a timeout macro](https://discourse.julialang.org/t/help-writing-a-timeout-macro/16591)

<div class="topic-metadata">

**Author:** [@lstagner](https://discourse.julialang.org/u/lstagner)\
**Replies:** 12\
**Last updated:** [March 26, 2023, 12:32pm UTC](https://discourse.julialang.org/t/help-writing-a-timeout-macro/16591 "2023-03-26T12:32:16Z")

</div>

I have a function that can either execute quickly or take a very long time. I want to kill the function after a certain amount of time so I can fall back on a more reliable method. I should be able to do this using a mac…

---

## [Short delay for first input action in v1.9.0-rc1](https://discourse.julialang.org/t/short-delay-for-first-input-action-in-v1-9-0-rc1/96600)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 4\
**Last updated:** [March 26, 2023, 11:37am UTC](https://discourse.julialang.org/t/short-delay-for-first-input-action-in-v1-9-0-rc1/96600 "2023-03-26T11:37:21Z")

</div>

Hi all, I am using Julia v1.9.0-rc1 and I noticed that there is a short delay for the first action when start Julia (for example in REPL), delayed about 2 seconds. Is this normal? I install Julia through Juliaup and…

---

## [March 25: Climate Action at Eindhoven Airport, The Netherlands](https://discourse.julialang.org/t/march-25-climate-action-at-eindhoven-airport-the-netherlands/96419)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [March 26, 2023, 11:14am UTC](https://discourse.julialang.org/t/march-25-climate-action-at-eindhoven-airport-the-netherlands/96419 "2023-03-26T11:14:42Z")

</div>

Julia is the best tool to build climate models, but building models is not sufficient. Become active! Last November, Extinction Rebellion and Greenpeace organized a large action at Schiphol, demanding a ban on private …

---

## [Julia run error in visual studio code](https://discourse.julialang.org/t/julia-run-error-in-visual-studio-code/96314)

<div class="topic-metadata">

**Author:** [@AstroSathya\_sharma](https://discourse.julialang.org/u/AstroSathya_sharma)\
**Replies:** 4\
**Last updated:** [March 26, 2023, 9:38am UTC](https://discourse.julialang.org/t/julia-run-error-in-visual-studio-code/96314 "2023-03-26T09:38:00Z")

</div>

Hi, This is the first time i am trying to run Julia code in VS Code. Its just a bog standard first code but i get the error. Naturally I have installed Julia extension and also configured the json. Error: there is no re…

---

## [MethodError: no method matching gemm!, It looks like |\>gpu cannot manage arrays resulting from view and reshape](https://discourse.julialang.org/t/methoderror-no-method-matching-gemm-it-looks-like-gpu-cannot-manage-arrays-resulting-from-view-and-reshape/96621)

<div class="topic-metadata">

**Author:** [@Andrea\_Deflorio](https://discourse.julialang.org/u/Andrea_Deflorio)\
**Replies:** 0\
**Last updated:** [March 26, 2023, 8:47am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-gemm-it-looks-like-gpu-cannot-manage-arrays-resulting-from-view-and-reshape/96621 "2023-03-26T08:47:55Z")

</div>

My julia version: 1.9 beta4 It looks like |\>gpu cannot manage arrays resulting from view and reshape. cu() can it! When I run the code down, I get this error: Exception has occurred: CompositeException TaskFailedExce…

---

## [Using the end keyword as a function argument](https://discourse.julialang.org/t/using-the-end-keyword-as-a-function-argument/96615)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 3\
**Last updated:** [March 26, 2023, 2:13am UTC](https://discourse.julialang.org/t/using-the-end-keyword-as-a-function-argument/96615 "2023-03-26T02:13:22Z")

</div>

Hi, Is there any way to pass the end keyword as an argument in a function or another index (i.e., -1 in python) to point to the last position of an array? a = \[1 2 3 4 5\] function f1(a, n) return a\[n\] end f1(a, e…

---

## [Why are generated functions (maybe) impossible to statically compile?](https://discourse.julialang.org/t/why-are-generated-functions-maybe-impossible-to-statically-compile/96366)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 18\
**Last updated:** [March 25, 2023, 10:27pm UTC](https://discourse.julialang.org/t/why-are-generated-functions-maybe-impossible-to-statically-compile/96366 "2023-03-25T22:27:04Z")

</div>

I’m finally getting around to understanding generated functions, and the first paragraph under Optionally-generated functions raises a couple questions for me. I’ll repost the text here as it’s not too long: Generated …

---

## [Sentence Embeddings using Transformers.jl](https://discourse.julialang.org/t/sentence-embeddings-using-transformers-jl/96611)

<div class="topic-metadata">

**Author:** [@NAS](https://discourse.julialang.org/u/NAS)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 10:06pm UTC](https://discourse.julialang.org/t/sentence-embeddings-using-transformers-jl/96611 "2023-03-25T22:06:42Z")

</div>

I’m trying to do sentence embeddings using a huggingface model similar to python example here: sentence-transformers/all-MiniLM-L6-v2 · Hugging Face. So far I have this using Transformers.HuggingFace using Transformers…

---

## [Combining or reusing subplot elements](https://discourse.julialang.org/t/combining-or-reusing-subplot-elements/96606)

<div class="topic-metadata">

**Author:** [@iabraham](https://discourse.julialang.org/u/iabraham)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 8:05pm UTC](https://discourse.julialang.org/t/combining-or-reusing-subplot-elements/96606 "2023-03-25T20:05:53Z")

</div>

How can I extract and reuse/combine subplots in Julia? Consider: pp = plot(0:0.01:2, \[sin.(0:0.01:2), cos.(0:0.01:2)\], layout=(1,2)); gg = plot(0:0.01:2, \[sin.(0:0.01:2).^2, cos.(0:0.01:2).^2\], layout=(1,2)); Both pp …

---

## [Libcurl error with Julia nightly](https://discourse.julialang.org/t/libcurl-error-with-julia-nightly/96604)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 7:19pm UTC](https://discourse.julialang.org/t/libcurl-error-with-julia-nightly/96604 "2023-03-25T19:19:59Z")

</div>

I am finding this error when trying to build docs with Franklin and Julia nightly ERROR: Unsatisfiable requirements detected for package LibCURL\_jll \[deac9b47\]: LibCURL\_jll \[deac9b47\] log: ├─possible versions are: 8.0…

---

## [Lifting function in Query.jl](https://discourse.julialang.org/t/lifting-function-in-query-jl/96599)

<div class="topic-metadata">

**Author:** [@myrddin89](https://discourse.julialang.org/u/myrddin89)\
**Replies:** 2\
**Last updated:** [March 25, 2023, 6:17pm UTC](https://discourse.julialang.org/t/lifting-function-in-query-jl/96599 "2023-03-25T18:17:19Z")

</div>

I’m having troubles using the lifting functionality in Query.jl and DataValues.jl with dot syntax. If I simply try the following using DataValues a = DataValue(0.4) a .\* 2 I get the this error: ERROR: MethodError: no…

---

## [MiniFB Error (SetProcessDpiAwernessContext): Access was denied](https://discourse.julialang.org/t/minifb-error-setprocessdpiawernesscontext-access-was-denied/96598)

<div class="topic-metadata">

**Author:** [@Melancholic\_Octopus](https://discourse.julialang.org/u/Melancholic_Octopus)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 2:12pm UTC](https://discourse.julialang.org/t/minifb-error-setprocessdpiawernesscontext-access-was-denied/96598 "2023-03-25T14:12:22Z")

</div>

I am trying to use MiniFB.jl on Windows, and i am getting this error Error (SetProcessDpiAwernessContext): Access was denied I tried to find what is wrong, but i was not much succesful. The window still opens, and you…

---

## [LoadError: CUDA runtime not found](https://discourse.julialang.org/t/loaderror-cuda-runtime-not-found/96131)

<div class="topic-metadata">

**Author:** [@robvold](https://discourse.julialang.org/u/robvold)\
**Replies:** 11\
**Last updated:** [March 25, 2023, 1:57pm UTC](https://discourse.julialang.org/t/loaderror-cuda-runtime-not-found/96131 "2023-03-25T13:57:15Z")

</div>

I am trying to implement a couple of algorithms in CUDA using Julia and the CUDA.jl package. I started with Julia a couple of days ago, so the error may be easy to solve, but I haven’t figured out a solution yet. The Er…

---

## [Tips on (sort of) creating a new Problem type in SciML, derived from an existing type](https://discourse.julialang.org/t/tips-on-sort-of-creating-a-new-problem-type-in-sciml-derived-from-an-existing-type/95749)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 3\
**Last updated:** [March 25, 2023, 11:25am UTC](https://discourse.julialang.org/t/tips-on-sort-of-creating-a-new-problem-type-in-sciml-derived-from-an-existing-type/95749 "2023-03-25T11:25:37Z")

</div>

Hi everyone, I’m trying to define what is in effect a new Problem in SciML, but what actually is a special case of an existing Problem. As I can’t derive from an instantiated type, I’m making a new type with an instance…

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

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