# Latest

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

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

**Page:** 1061

---

## [How can I define vectors using struct?](https://discourse.julialang.org/t/how-can-i-define-vectors-using-struct/79796)

<div class="topic-metadata">

**Author:** [@clrescobar](https://discourse.julialang.org/u/clrescobar)\
**Replies:** 19\
**Last updated:** [April 24, 2022, 4:20pm UTC](https://discourse.julialang.org/t/how-can-i-define-vectors-using-struct/79796 "2022-04-24T16:20:27Z")

</div>

Hello, I am new to Julia. I want to apply some RL algorithms using POMDPs.jl, but first I need to define my MDP. The state space are vectors of integer numbers and lenght (let’s suposse 15 but maybe later it will be bi…

---

## [What's the difference between Makie, GLMakie, and CairoMakie?](https://discourse.julialang.org/t/whats-the-difference-between-makie-glmakie-and-cairomakie/79905)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 6\
**Last updated:** [April 24, 2022, 4:09pm UTC](https://discourse.julialang.org/t/whats-the-difference-between-makie-glmakie-and-cairomakie/79905 "2022-04-24T16:09:31Z")

</div>

I’m a Julia novice, and I’m confused by how and when to access Makie functions. First point of confusion: There’s a package called Makie.jl, so my beginner’s assumption would be that I should initialize the package with…

---

## [RNN model converges at a high training loss](https://discourse.julialang.org/t/rnn-model-converges-at-a-high-training-loss/79941)

<div class="topic-metadata">

**Author:** [@cc672012](https://discourse.julialang.org/u/cc672012)\
**Replies:** 0\
**Last updated:** [April 24, 2022, 2:00pm UTC](https://discourse.julialang.org/t/rnn-model-converges-at-a-high-training-loss/79941 "2022-04-24T14:00:36Z")

</div>

Hi, I’m following d2l.ai’s book to learn deep learning. I implemented a character-level RNN from scratch and also one that uses the stuff exported by Flux. Both seem to give the same loss and perplexity where the former…

---

## [Best current approach for working with sparse tensors?](https://discourse.julialang.org/t/best-current-approach-for-working-with-sparse-tensors/79937)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 2\
**Last updated:** [April 24, 2022, 3:11pm UTC](https://discourse.julialang.org/t/best-current-approach-for-working-with-sparse-tensors/79937 "2022-04-24T15:11:09Z")

</div>

I would like to hear ideas about how to work with this kind of application right now in Julia. Some previous posts seem to be in line with what I’m looking for, but I’m not sure what’s the conclusion, and what’s the stat…

---

## [Finding nodal lines numerically in a volume](https://discourse.julialang.org/t/finding-nodal-lines-numerically-in-a-volume/79836)

<div class="topic-metadata">

**Author:** [@volkerkarle](https://discourse.julialang.org/u/volkerkarle)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 12:13pm UTC](https://discourse.julialang.org/t/finding-nodal-lines-numerically-in-a-volume/79836 "2022-04-24T12:13:32Z")

</div>

Dear all, I’m trying to the solve the following problem. Consider some volume V \\in \\mathbb{R}^3 with an almost everywhere smooth function f(x) \\in \\mathbb{R} \\leq 0 with x \\in V . For symmetry reasons, all zero manifo…

---

## [Yolo.jl \[CUDA\] related issue](https://discourse.julialang.org/t/yolo-jl-cuda-related-issue/71882)

<div class="topic-metadata">

**Author:** [@n90](https://discourse.julialang.org/u/n90)\
**Replies:** 8\
**Last updated:** [April 24, 2022, 11:17am UTC](https://discourse.julialang.org/t/yolo-jl-cuda-related-issue/71882 "2022-04-24T11:17:24Z")

</div>

I am working on a server with Tesla M60. When i try running the sample code am getting the following error. Using CUDA.jl I checked the versioninfo() and gpu is recognized and working. What is the cause of this error and…

---

## [Problem in installing Gurobi.jl](https://discourse.julialang.org/t/problem-in-installing-gurobi-jl/79929)

<div class="topic-metadata">

**Author:** [@HosseinF](https://discourse.julialang.org/u/HosseinF)\
**Replies:** 1\
**Last updated:** [April 24, 2022, 10:22am UTC](https://discourse.julialang.org/t/problem-in-installing-gurobi-jl/79929 "2022-04-24T10:22:19Z")

</div>

Hi, I wanted to solve a two stage stochastic problem via ipopt solver but it does not solved and shows: Converged to a point of local infeasibility. Problem may be infeasible. LOCALLY INFEASIBLE┌ Warning: Stochastic pr…

---

## [How to increase stack size for Julia in Windows?](https://discourse.julialang.org/t/how-to-increase-stack-size-for-julia-in-windows/79932)

<div class="topic-metadata">

**Author:** [@Yrogirg](https://discourse.julialang.org/u/Yrogirg)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 10:03am UTC](https://discourse.julialang.org/t/how-to-increase-stack-size-for-julia-in-windows/79932 "2022-04-24T10:03:22Z")

</div>

I mirror here my question at StackOverflow: How to increase stack size for Julia in Windows? - Stack Overflow I wrote a recursive function (basically a flood fill), it works fine on smaller datasets, but for slightly la…

---

## [Jacobian differentiation with Enzyme](https://discourse.julialang.org/t/jacobian-differentiation-with-enzyme/79912)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 8:57am UTC](https://discourse.julialang.org/t/jacobian-differentiation-with-enzyme/79912 "2022-04-24T08:57:28Z")

</div>

Hi all, I am having some trouble understanding the docs for Enzyme.jl. Specifically, how to differentiate functions that return arrays and take arrays as inputs (i.e. how to get the Jacobian). I have tried a number of a…

---

## [Read and convert JSON file from a website](https://discourse.julialang.org/t/read-and-convert-json-file-from-a-website/79556)

<div class="topic-metadata">

**Author:** [@Aminath\_Shausan](https://discourse.julialang.org/u/Aminath_Shausan)\
**Replies:** 9\
**Last updated:** [April 24, 2022, 8:38am UTC](https://discourse.julialang.org/t/read-and-convert-json-file-from-a-website/79556 "2022-04-24T08:38:26Z")

</div>

Hi I am trying to download the json file from https://raw.githubusercontent.com/hodcroftlab/covariants/master/cluster\_tables/EUClusters\_data.json And then to save it as a csv file. At the moment I have used using CSV, …

---

## [Failing to precompile CSV](https://discourse.julialang.org/t/failing-to-precompile-csv/79850)

<div class="topic-metadata">

**Author:** [@JedPhillips](https://discourse.julialang.org/u/JedPhillips)\
**Replies:** 3\
**Last updated:** [April 24, 2022, 8:38am UTC](https://discourse.julialang.org/t/failing-to-precompile-csv/79850 "2022-04-24T08:38:36Z")

</div>

I recently upgraded to Julia v 1.7.2, and the CSV package is failing to compile. The error stack is: \[ Info: Precompiling CSV \[336ed68f-0bac-5ca0-87d4-7b16caf5d00b\] ERROR: LoadError: MethodError: no method matching Pars…

---

## [Add Julia (Programming Language) as a skill on LinkedIn](https://discourse.julialang.org/t/add-julia-programming-language-as-a-skill-on-linkedin/13615)

<div class="topic-metadata">

**Author:** [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Replies:** 4\
**Last updated:** [April 24, 2022, 6:56am UTC](https://discourse.julialang.org/t/add-julia-programming-language-as-a-skill-on-linkedin/13615 "2022-04-24T06:56:18Z")

</div>

Folks, One easy way to increase awareness for Julia is to add “Julia (Programming Language)” as a skill on linkedin, and endorse others who you know to be good Julia programmers. I just added it to my profile. …

---

## [Non-trivial conversions (Python to Julia)](https://discourse.julialang.org/t/non-trivial-conversions-python-to-julia/79665)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 14\
**Last updated:** [April 24, 2022, 5:55am UTC](https://discourse.julialang.org/t/non-trivial-conversions-python-to-julia/79665 "2022-04-24T05:55:25Z")

</div>

Greetings Watchers, Disclaimer: Please maintain some level of professionalism/community by attempting to share your general thought process, feel free to follow-up with me for clarification or simply scroll/click al…

---

## [I want my code to display all the five results after each iteration](https://discourse.julialang.org/t/i-want-my-code-to-display-all-the-five-results-after-each-iteration/79864)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 6\
**Last updated:** [April 24, 2022, 4:51am UTC](https://discourse.julialang.org/t/i-want-my-code-to-display-all-the-five-results-after-each-iteration/79864 "2022-04-24T04:51:21Z")

</div>

I want my code to display all the five results after each iteration and also select the maximum among the 5 results and display it. When I run it I only get one output. All five results are not showing. I have an array o…

---

## [File not found in workspace](https://discourse.julialang.org/t/file-not-found-in-workspace/79926)

<div class="topic-metadata">

**Author:** [@Naadiyaar](https://discourse.julialang.org/u/Naadiyaar)\
**Replies:** 1\
**Last updated:** [April 24, 2022, 3:08am UTC](https://discourse.julialang.org/t/file-not-found-in-workspace/79926 "2022-04-24T03:08:21Z")

</div>

I created a .jl file in a regular directory, but when ever i chose “Debug file in new process” or “run file in new process” give me this error =\> File not found in workspace. Using Julia version 1.7.2 with VS Code exte…

---

## [Fast Parallel ROC AUC Calculation](https://discourse.julialang.org/t/fast-parallel-roc-auc-calculation/79918)

<div class="topic-metadata">

**Author:** [@brianhempel](https://discourse.julialang.org/u/brianhempel)\
**Replies:** 1\
**Last updated:** [April 24, 2022, 12:15am UTC](https://discourse.julialang.org/t/fast-parallel-roc-auc-calculation/79918 "2022-04-24T00:15:19Z")

</div>

I’m trying to calculate the receiver operator characteristic area under curve for large amounts of data. I’ve parallelized the sorting, but I’ve got too much SARS-CoV2 in me at the moment to figure out the math to parall…

---

## [Non-allocating matrix inversion](https://discourse.julialang.org/t/non-allocating-matrix-inversion/62264)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 13\
**Last updated:** [April 23, 2022, 9:56pm UTC](https://discourse.julialang.org/t/non-allocating-matrix-inversion/62264 "2022-04-23T21:56:43Z")

</div>

Is there any way to perform matrix inversion? Say I have a Vector of Matrix where I want to perform the inverse, and then save them in the same spot where they came from in the array. I had thought of this: function bu…

---

## [Interpolation with ModelingToolkit.jl](https://discourse.julialang.org/t/interpolation-with-modelingtoolkit-jl/79867)

<div class="topic-metadata">

**Author:** [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Replies:** 5\
**Last updated:** [April 23, 2022, 10:32pm UTC](https://discourse.julialang.org/t/interpolation-with-modelingtoolkit-jl/79867 "2022-04-23T22:32:38Z")

</div>

I’m trying to use cubic spline interpolation from DataInterpolations.jl in my loss function with ModelingToolkit.jl. There’s an older thread that seems to discuss this here but I have’t been able to get that working, an…

---

## [Warnings on Jupiter notebook](https://discourse.julialang.org/t/warnings-on-jupiter-notebook/79917)

<div class="topic-metadata">

**Author:** [@Aminath\_Shausan](https://discourse.julialang.org/u/Aminath_Shausan)\
**Replies:** 0\
**Last updated:** [April 23, 2022, 9:26pm UTC](https://discourse.julialang.org/t/warnings-on-jupiter-notebook/79917 "2022-04-23T21:26:03Z")

</div>

Hi I use Jupiter notebook for Julia coding, and sometimes gets lots of warning messages. Is there a way to suppress all warnings from notebook while running Julia. Thanks

---

## [How to further develop my package branch](https://discourse.julialang.org/t/how-to-further-develop-my-package-branch/79900)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 6\
**Last updated:** [April 23, 2022, 7:50pm UTC](https://discourse.julialang.org/t/how-to-further-develop-my-package-branch/79900 "2022-04-23T19:50:28Z")

</div>

I am working on a branch of the package DataStructures.jl. Until now I have been using git in a rather ad-hoc and tedious manner to get my commits posted to github. I would prefer to use a proper Julia package dev meth…

---

## [Incorrect jacobian using ForwardDiff and sparse functions](https://discourse.julialang.org/t/incorrect-jacobian-using-forwarddiff-and-sparse-functions/79901)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 4\
**Last updated:** [April 23, 2022, 7:08pm UTC](https://discourse.julialang.org/t/incorrect-jacobian-using-forwarddiff-and-sparse-functions/79901 "2022-04-23T19:08:46Z")

</div>

Hi all, Does anybody know why the following code produces different (incorrect) jacobians using ForwardDiff? The function being differentiated contains sparse matrices, but if I don’t expand them to dense matrices the j…

---

## [Automatically populate hyperlinks](https://discourse.julialang.org/t/automatically-populate-hyperlinks/79906)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 0\
**Last updated:** [April 23, 2022, 5:08pm UTC](https://discourse.julialang.org/t/automatically-populate-hyperlinks/79906 "2022-04-23T17:08:44Z")

</div>

I’m not sure if this is the right place to make this suggestion, but I use MacDown when writing all of my GitHub READMEs. If you have already copied a link and it’s sitting in your clipboard, MacDown has a very slick fea…

---

## [Hello world, and Julia behaves strangely](https://discourse.julialang.org/t/hello-world-and-julia-behaves-strangely/79866)

<div class="topic-metadata">

**Author:** [@emo](https://discourse.julialang.org/u/emo)\
**Replies:** 10\
**Last updated:** [April 23, 2022, 4:57pm UTC](https://discourse.julialang.org/t/hello-world-and-julia-behaves-strangely/79866 "2022-04-23T16:57:45Z")

</div>

Hi, I’m new to this community, so hello everyone! I’m learning Julia and I get some strange output on a very simple program. I don’t understand what I’m doing wrong. Could someone help me please? This is an experiment…

---

## [Precompiling non-inferrable calls](https://discourse.julialang.org/t/precompiling-non-inferrable-calls/79771)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 2\
**Last updated:** [April 23, 2022, 4:54pm UTC](https://discourse.julialang.org/t/precompiling-non-inferrable-calls/79771 "2022-04-23T16:54:21Z")

</div>

Let me start of by saying that precompile is great. It can move a lot of compilation time from the package loading to the precompilation stage. For people unfamiliar with precompile, when calling it on a function, it pr…

---

## [Should I put using statements in files to be included?](https://discourse.julialang.org/t/should-i-put-using-statements-in-files-to-be-included/79896)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 1\
**Last updated:** [April 23, 2022, 3:23pm UTC](https://discourse.julialang.org/t/should-i-put-using-statements-in-files-to-be-included/79896 "2022-04-23T15:23:16Z")

</div>

I’m currently developing a module, and I’m splitting the code into various files that will be then included into the main file that declares the module. At the moment, I’m putting all using statements in every single fil…

---

## [Best way to save/read bytes in struct](https://discourse.julialang.org/t/best-way-to-save-read-bytes-in-struct/79842)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 6\
**Last updated:** [April 23, 2022, 2:51pm UTC](https://discourse.julialang.org/t/best-way-to-save-read-bytes-in-struct/79842 "2022-04-23T14:51:52Z")

</div>

Hello! Main question I am developing a library to manipulate protocol messages in Julia. It must be able to store an incoming message, and then return its fields when asked for it. Here is a MWE for it: # incoming mes…

---

## [Load packages in a list with the using keyword](https://discourse.julialang.org/t/load-packages-in-a-list-with-the-using-keyword/79891)

<div class="topic-metadata">

**Author:** [@Ismam](https://discourse.julialang.org/u/Ismam)\
**Replies:** 5\
**Last updated:** [April 23, 2022, 2:50pm UTC](https://discourse.julialang.org/t/load-packages-in-a-list-with-the-using-keyword/79891 "2022-04-23T14:50:22Z")

</div>

Is there a way to load multiple packages stored in an array of strings, using the using keyword? Something like this, except that it works please: using \[“CSV”, “DataFrames”, “Dates”, “Plots”\] Thank you!

---

## [Multiplication of Categoricals in ForneyLab](https://discourse.julialang.org/t/multiplication-of-categoricals-in-forneylab/79894)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 0\
**Last updated:** [April 23, 2022, 2:09pm UTC](https://discourse.julialang.org/t/multiplication-of-categoricals-in-forneylab/79894 "2022-04-23T14:09:29Z")

</div>

I am trying to implement the skill modeling in Chapter 2 of Model-based machine learning by Winn and Bishop. In the course of the model, I create a factor node that is the product of two categoricals. I found out that th…

---

## [When to use HTTP.jl vs Downloads standard lib](https://discourse.julialang.org/t/when-to-use-http-jl-vs-downloads-standard-lib/79869)

<div class="topic-metadata">

**Author:** [@ProvocaTeach](https://discourse.julialang.org/u/ProvocaTeach)\
**Replies:** 1\
**Last updated:** [April 23, 2022, 1:42pm UTC](https://discourse.julialang.org/t/when-to-use-http-jl-vs-downloads-standard-lib/79869 "2022-04-23T13:42:37Z")

</div>

Hi all, I noticed in the Julia docs that there is a standard module called Downloads which implements a request function. Apparently you can make HTTP requests, complete with headers and HTTP/2 support, because Downloads…

---

## [How can I use the ScikitLearn.utils module?](https://discourse.julialang.org/t/how-can-i-use-the-scikitlearn-utils-module/79892)

<div class="topic-metadata">

**Author:** [@pat](https://discourse.julialang.org/u/pat)\
**Replies:** 0\
**Last updated:** [April 23, 2022, 1:41pm UTC](https://discourse.julialang.org/t/how-can-i-use-the-scikitlearn-utils-module/79892 "2022-04-23T13:41:42Z")

</div>

I’m converting a bit of sklearn python into Julia. In the python, they use a a method called resample from sklearn.utils but I can’t find these functions in the Julia interface. It seems that ScikitLearn.jl does have a U…

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

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