# Latest

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

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

**Page:** 1058

---

## [Flux + GPU memory problems](https://discourse.julialang.org/t/flux-gpu-memory-problems/79783)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 10:03pm UTC](https://discourse.julialang.org/t/flux-gpu-memory-problems/79783 "2022-04-26T22:03:54Z")

</div>

I was trying to train some models available in the Metalhead (0.7) + Flux (0.13) using an NVIDIA GTX 1080 Ti (11 GB ) using some toy data (512 images size:224x224x3). I was running the code that I show at the end of the …

---

## [Symbolic differentiation of sparse function gives incorrect jacobian](https://discourse.julialang.org/t/symbolic-differentiation-of-sparse-function-gives-incorrect-jacobian/79943)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 3\
**Last updated:** [April 26, 2022, 9:38pm UTC](https://discourse.julialang.org/t/symbolic-differentiation-of-sparse-function-gives-incorrect-jacobian/79943 "2022-04-26T21:38:42Z")

</div>

Hi all, I am trying to differentiate a vector function with respect to a subset of the variables symbolically, but I am running into problems. Below is the problematic code: using Symbolics, SparseArrays, LinearAlgebra…

---

## [Jacobian of Symbolic Matrix multiplications](https://discourse.julialang.org/t/jacobian-of-symbolic-matrix-multiplications/80002)

<div class="topic-metadata">

**Author:** [@achrafmam2](https://discourse.julialang.org/u/achrafmam2)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 9:06pm UTC](https://discourse.julialang.org/t/jacobian-of-symbolic-matrix-multiplications/80002 "2022-04-26T21:06:47Z")

</div>

Hi, Consider the following operation M \* x where A is a matrix and x a vector. I want to know if we can do the following using the Symbolics package. Calculate the Jacobian of M \* x with respect to M\[1\], M\[2\], \\dots . …

---

## [How to filter a DataFrame of DateTime data by the time of day?](https://discourse.julialang.org/t/how-to-filter-a-dataframe-of-datetime-data-by-the-time-of-day/79958)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 9\
**Last updated:** [April 26, 2022, 8:30pm UTC](https://discourse.julialang.org/t/how-to-filter-a-dataframe-of-datetime-data-by-the-time-of-day/79958 "2022-04-26T20:30:36Z")

</div>

Suppose you have an array of Dataframes. Each Dataframe contains the time and date of the datapoint in the DateTime format. Is there a way to filter/ remove rows from the DataFrame based on the time of day the data is …

---

## [Shout out to JuliaConnectoR and DataFrames.jl / Tables.jl](https://discourse.julialang.org/t/shout-out-to-juliaconnector-and-dataframes-jl-tables-jl/80090)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 8:01pm UTC](https://discourse.julialang.org/t/shout-out-to-juliaconnector-and-dataframes-jl-tables-jl/80090 "2022-04-26T20:01:08Z")

</div>

I’m impressed at how smoothly these two packages worked together for me just now! I was creating a Julia to R interface for a little package I’m developing and noticed that the JuliaConnectoR package could directly tran…

---

## [WebMercatorfromLLA not defined](https://discourse.julialang.org/t/webmercatorfromlla-not-defined/78358)

<div class="topic-metadata">

**Author:** [@julio.ca2020](https://discourse.julialang.org/u/julio.ca2020)\
**Replies:** 9\
**Last updated:** [April 26, 2022, 7:59pm UTC](https://discourse.julialang.org/t/webmercatorfromlla-not-defined/78358 "2022-04-26T19:59:33Z")

</div>

I am trying to use WebMercatorfromLLA… Julia tells me that is not defined. Any other transformation, function work ERROR: UndefVarError: WebMercatorfromLLA not defined Stacktrace: \[1\] top-level scope @ ~/Documents/Hardw…

---

## [How to pass ARGS to multiple processes?](https://discourse.julialang.org/t/how-to-pass-args-to-multiple-processes/80075)

<div class="topic-metadata">

**Author:** [@JedPhillips](https://discourse.julialang.org/u/JedPhillips)\
**Replies:** 4\
**Last updated:** [April 26, 2022, 6:17pm UTC](https://discourse.julialang.org/t/how-to-pass-args-to-multiple-processes/80075 "2022-04-26T18:17:54Z")

</div>

I’m trying to pass command line arguments to a script that calls multiple processes, but I can’t seem to have the other processes access these arguments. Here’s a simple example: using Distributed addprocs(1) @everywher…

---

## [Help with solving symbolic nonlinear system of equations](https://discourse.julialang.org/t/help-with-solving-symbolic-nonlinear-system-of-equations/80077)

<div class="topic-metadata">

**Author:** [@Grace\_Chuan](https://discourse.julialang.org/u/Grace_Chuan)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 5:42pm UTC](https://discourse.julialang.org/t/help-with-solving-symbolic-nonlinear-system-of-equations/80077 "2022-04-26T17:42:05Z")

</div>

Hi, I wrote some Matlab code that uses vpasolve to solve for the elements in a vector (x=\[x1,x2,x3,etc\]) in a matrix-based equation ( term = x) and the term itself has x values in it. The term is super complicated and ba…

---

## [Can I set the default operation of a sparse Matrix to not store zeros?](https://discourse.julialang.org/t/can-i-set-the-default-operation-of-a-sparse-matrix-to-not-store-zeros/80007)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 7\
**Last updated:** [April 26, 2022, 3:59pm UTC](https://discourse.julialang.org/t/can-i-set-the-default-operation-of-a-sparse-matrix-to-not-store-zeros/80007 "2022-04-26T15:59:58Z")

</div>

I am building a sparse matrix II, however, when I assign some of its elements by zeros they are being stored with zero values unless I use dropzeros(II). 1- Why using sparse(II) below not dropping zeros from II? 2- Is …

---

## [National Vulnerability database issues](https://discourse.julialang.org/t/national-vulnerability-database-issues/79938)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 6\
**Last updated:** [April 26, 2022, 3:49pm UTC](https://discourse.julialang.org/t/national-vulnerability-database-issues/79938 "2022-04-26T15:49:38Z")

</div>

My Company uses an automated FOSS scanner that appears to track the national vulnerability database. I’ll have to dig around for more details. It complains about Julia’s full dependency packages found on julialang.org …

---

## [Makie interactions with nested plot](https://discourse.julialang.org/t/makie-interactions-with-nested-plot/80072)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 3:49pm UTC](https://discourse.julialang.org/t/makie-interactions-with-nested-plot/80072 "2022-04-26T15:49:03Z")

</div>

I am looking at using some 3rd party makie interactions for my recipe and I cannot seem to make it. I am leveraging the functionality of the GraphPlot recipe by wrapping it around a new application-specific recipe. Let…

---

## [Equivalent of the Python Package PaCAL in Julia](https://discourse.julialang.org/t/equivalent-of-the-python-package-pacal-in-julia/79978)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 3:43pm UTC](https://discourse.julialang.org/t/equivalent-of-the-python-package-pacal-in-julia/79978 "2022-04-26T15:43:41Z")

</div>

The ChebFun MATLAB package links to a nice Python package called PaCAL. This nice package allows doing some arithmetic with random variables / distributions and get and object which basically represents the PDF without …

---

## [Julia's biggest success\[es\] so far?](https://discourse.julialang.org/t/julias-biggest-success-es-so-far/80044)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 6\
**Last updated:** [April 26, 2022, 3:38pm UTC](https://discourse.julialang.org/t/julias-biggest-success-es-so-far/80044 "2022-04-26T15:38:40Z")

</div>

I’m thinking of a) \[enabling\] commercial success and/or b) research success and/or c) good behind-the scenes package, likely at 1.0+. \[And maybe Julia website in production?\] For a) you might not know of a specific comp…

---

## [Getting index and value of the second highest element of CuArray](https://discourse.julialang.org/t/getting-index-and-value-of-the-second-highest-element-of-cuarray/80054)

<div class="topic-metadata">

**Author:** [@Phuntsho](https://discourse.julialang.org/u/Phuntsho)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 3:24pm UTC](https://discourse.julialang.org/t/getting-index-and-value-of-the-second-highest-element-of-cuarray/80054 "2022-04-26T15:24:21Z")

</div>

For CuArray, say, A, we can use findmax(A) to find the value and index of the highest element efficiently. Is there a similar function that does for the second element? Thank you in advance for your help.

---

## [Problem when installing PalmerPenguins.jl or CSV.jl](https://discourse.julialang.org/t/problem-when-installing-palmerpenguins-jl-or-csv-jl/80009)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 6\
**Last updated:** [April 26, 2022, 3:03pm UTC](https://discourse.julialang.org/t/problem-when-installing-palmerpenguins-jl-or-csv-jl/80009 "2022-04-26T15:03:34Z")

</div>

Hello, I am following the following example of AlgebraOfGraphics. There was a problem when installing PalmerPenguins (I think it was a problem with the package CSV). The installation suggested me to check details with P…

---

## [.glade file import issues](https://discourse.julialang.org/t/glade-file-import-issues/79880)

<div class="topic-metadata">

**Author:** [@candidaorelmex](https://discourse.julialang.org/u/candidaorelmex)\
**Replies:** 2\
**Last updated:** [April 26, 2022, 3:00pm UTC](https://discourse.julialang.org/t/glade-file-import-issues/79880 "2022-04-26T15:00:54Z")

</div>

Hi everyone, I’m trying to import a layout file I generated with glade with GtkBuilder, but whenever I do so Julia crashes:(. Here my script: using Gtk, LightXML b = GtkBuilder(filename = "glade\_file") I can’t upload…

---

## [There is an error in tutorials about the Variational inference](https://discourse.julialang.org/t/there-is-an-error-in-tutorials-about-the-variational-inference/79975)

<div class="topic-metadata">

**Author:** [@huangruiping9](https://discourse.julialang.org/u/huangruiping9)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 2:45pm UTC](https://discourse.julialang.org/t/there-is-an-error-in-tutorials-about-the-variational-inference/79975 "2022-04-26T14:45:16Z")

</div>

Variational inference (VI) in Turing.jl Copy-paste from 5. Linear regression¶ “remove\_names = filter(x-\>!in(x, \[:MPG, :Model\]), names(data))” has an error should be replace by “remove\_names = filter(x-\>!in(x, \[“MPG”…

---

## [Why are ref's in structs type unstable?](https://discourse.julialang.org/t/why-are-refs-in-structs-type-unstable/80041)

<div class="topic-metadata">

**Author:** [@tr00](https://discourse.julialang.org/u/tr00)\
**Replies:** 4\
**Last updated:** [April 26, 2022, 2:39pm UTC](https://discourse.julialang.org/t/why-are-refs-in-structs-type-unstable/80041 "2022-04-26T14:39:15Z")

</div>

Hello Julia Community, I’ve just came across a small code example which isn’t type stable according to @code\_warntype but clearly should be, at least according to my understanding of refs. Here is the example: julia\> …

---

## [Dispatch on lambda functions](https://discourse.julialang.org/t/dispatch-on-lambda-functions/80064)

<div class="topic-metadata">

**Author:** [@jj-404](https://discourse.julialang.org/u/jj-404)\
**Replies:** 5\
**Last updated:** [April 26, 2022, 2:22pm UTC](https://discourse.julialang.org/t/dispatch-on-lambda-functions/80064 "2022-04-26T14:22:05Z")

</div>

Hi, is there a way to dispatch on lambda functions? It seems that lambda’s don’t have a specific type for themselves (unlike Functions), but are rather uniquely typed with a counter (var"#29#30"). I would like to dispatc…

---

## [Jupyter notebook: show output “in real time” instead of once cell finishes running](https://discourse.julialang.org/t/jupyter-notebook-show-output-in-real-time-instead-of-once-cell-finishes-running/80052)

<div class="topic-metadata">

**Author:** [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 12:26pm UTC](https://discourse.julialang.org/t/jupyter-notebook-show-output-in-real-time-instead-of-once-cell-finishes-running/80052 "2022-04-26T12:26:38Z")

</div>

At least on my system\*, the following Jupyter cell shows no output until execution finishes after 10s, when all the output appears at once. ## In: for i in 1:10 @show i sleep(1) end #= Out: i = 1 i = 2 i = 3 i …

---

## [Unexpected change of a function argument (array) - bug or feature?](https://discourse.julialang.org/t/unexpected-change-of-a-function-argument-array-bug-or-feature/80042)

<div class="topic-metadata">

**Author:** [@Friedrich](https://discourse.julialang.org/u/Friedrich)\
**Replies:** 11\
**Last updated:** [April 26, 2022, 12:01pm UTC](https://discourse.julialang.org/t/unexpected-change-of-a-function-argument-array-bug-or-feature/80042 "2022-04-26T12:01:55Z")

</div>

When doing some first coding with Julia, I run into an issue that a function argument was changed unexpectedly. I could boil the problem down to the following lines of code: function myfunc(f,n) q = f for k in 1:n q…

---

## [VScode underline error in plot call, wrongly](https://discourse.julialang.org/t/vscode-underline-error-in-plot-call-wrongly/80048)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 11:55am UTC](https://discourse.julialang.org/t/vscode-underline-error-in-plot-call-wrongly/80048 "2022-04-26T11:55:32Z")

</div>

Many times (all?) when I write a plot call, I get VSCode to underline it as if it was a possible error in function call: It is only me?

---

## [Handling multiple files at the same time](https://discourse.julialang.org/t/handling-multiple-files-at-the-same-time/80037)

<div class="topic-metadata">

**Author:** [@Drachta](https://discourse.julialang.org/u/Drachta)\
**Replies:** 6\
**Last updated:** [April 26, 2022, 10:49am UTC](https://discourse.julialang.org/t/handling-multiple-files-at-the-same-time/80037 "2022-04-26T10:49:13Z")

</div>

Hello, I wish to replace some occurrence in a file and save it under a new file. The following does what I need, but it reads the entire file before making the substitution. Is there a better way to do this ? some\_var…

---

## [Turing.jl coin flipping example with large number of data points](https://discourse.julialang.org/t/turing-jl-coin-flipping-example-with-large-number-of-data-points/33049)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 4\
**Last updated:** [April 26, 2022, 9:47am UTC](https://discourse.julialang.org/t/turing-jl-coin-flipping-example-with-large-number-of-data-points/33049 "2022-04-26T09:47:41Z")

</div>

Please forgive my naïveté (I don’t have any formal training in probabilistic programming/Bayesian statistics) but I’m trying to understand something about the coin flipping example in the Turing.jl docs. Here’s a bare-b…

---

## [Error handling in CUDA kernels](https://discourse.julialang.org/t/error-handling-in-cuda-kernels/79692)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 6\
**Last updated:** [April 26, 2022, 8:37am UTC](https://discourse.julialang.org/t/error-handling-in-cuda-kernels/79692 "2022-04-26T08:37:52Z")

</div>

In my CUDA kernel I check for a specific condition and would like to terminate the execution if the condition is fulfilled. What is the proper way to do so? How can I throw an error from inside a CUDA kernel?

---

## [Help speeding up problem with Convex.jl](https://discourse.julialang.org/t/help-speeding-up-problem-with-convex-jl/79005)

<div class="topic-metadata">

**Author:** [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Replies:** 31\
**Last updated:** [April 26, 2022, 8:11am UTC](https://discourse.julialang.org/t/help-speeding-up-problem-with-convex-jl/79005 "2022-04-26T08:11:52Z")

</div>

I’m currently solving a convex problem with Convex.jl and COSMO.jl. The text output from COSMO indicates that the solution is actually quite fast (less than a second) but it takes ca. 30 seconds to set the problem up wit…

---

## [CUDA.jl - Multiple Threads to Initiate Same CUDA Algorithm](https://discourse.julialang.org/t/cuda-jl-multiple-threads-to-initiate-same-cuda-algorithm/79728)

<div class="topic-metadata">

**Author:** [@moukann](https://discourse.julialang.org/u/moukann)\
**Replies:** 3\
**Last updated:** [April 26, 2022, 7:58am UTC](https://discourse.julialang.org/t/cuda-jl-multiple-threads-to-initiate-same-cuda-algorithm/79728 "2022-04-26T07:58:04Z")

</div>

Hello all, Let’s say we have a situation where we run a for loop with “n” times. Every for loop contains CUDA kernels and CPU functions mixture. However, every operation is independent from each other. for index = 1:n …

---

## [LoadError: CUDA error: invalid device ordinal. Version:Julia](https://discourse.julialang.org/t/loaderror-cuda-error-invalid-device-ordinal-version-julia/79863)

<div class="topic-metadata">

**Author:** [@munozdjp](https://discourse.julialang.org/u/munozdjp)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 7:51am UTC](https://discourse.julialang.org/t/loaderror-cuda-error-invalid-device-ordinal-version-julia/79863 "2022-04-26T07:51:22Z")

</div>

When i follow the tutorial on: I run julia -i run/run\_nf.jl And I obtain the following error: shell\> julia -i run/run\_nf.jl /usr/share/modules/init/bash: eval: line 43: syntax error near unexpected token (' /usr…

---

## [Dependencies "4 skipped during auto due to previous errors"](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862)

<div class="topic-metadata">

**Author:** [@munozdjp](https://discourse.julialang.org/u/munozdjp)\
**Replies:** 9\
**Last updated:** [April 26, 2022, 7:48am UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862 "2022-04-26T07:48:00Z")

</div>

When I follow the tutorial on : When I instantiate in julia: (image attached): I obtain the following errors: Do someone knows how to fix the problem of these dependencies?

---

## [One feature we could learn from Matlab?](https://discourse.julialang.org/t/one-feature-we-could-learn-from-matlab/79965)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 5\
**Last updated:** [April 26, 2022, 7:47am UTC](https://discourse.julialang.org/t/one-feature-we-could-learn-from-matlab/79965 "2022-04-26T07:47:13Z")

</div>

I really like how Matlab can automatically load some types of files into its memory. For example, if I have a MAT file, I can just drag and drop it into Matlab, that’s all it takes to load the file into Matlab. By typin…

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

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