# Latest

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

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

**Page:** 728

---

## [Leading Zeros got truncated from df column](https://discourse.julialang.org/t/leading-zeros-got-truncated-from-df-column/97409)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 7\
**Last updated:** [April 13, 2023, 9:03pm UTC](https://discourse.julialang.org/t/leading-zeros-got-truncated-from-df-column/97409 "2023-04-13T21:03:59Z")

</div>

I have dataframe with integer field and it’s usually consists of time for ex. 0001, 1020, 2359 etc. When there are leading zeros in the column they are being truncated and I’ve tried applying lpad which seems to be does…

---

## [Default method used to display the results of cell evaluation](https://discourse.julialang.org/t/default-method-used-to-display-the-results-of-cell-evaluation/97437)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 6:20pm UTC](https://discourse.julialang.org/t/default-method-used-to-display-the-results-of-cell-evaluation/97437 "2023-04-13T18:20:00Z")

</div>

As the title suggests, I would like to know what specific method is called to display the results of the evaluated cell in Pluto. The problem that I am trying to solve is why Latexify.jl works for real symbolic matrices…

---

## [How to make Zygote's gradient function work with a custom rrule](https://discourse.julialang.org/t/how-to-make-zygotes-gradient-function-work-with-a-custom-rrule/97439)

<div class="topic-metadata">

**Author:** [@gladisor](https://discourse.julialang.org/u/gladisor)\
**Replies:** 0\
**Last updated:** [April 13, 2023, 6:16pm UTC](https://discourse.julialang.org/t/how-to-make-zygotes-gradient-function-work-with-a-custom-rrule/97439 "2023-04-13T18:16:35Z")

</div>

Here is a link to my issue which describes the problem I am facing:

---

## [Posterior prediction in Turing](https://discourse.julialang.org/t/posterior-prediction-in-turing/97355)

<div class="topic-metadata">

**Author:** [@jfhawkin](https://discourse.julialang.org/u/jfhawkin)\
**Replies:** 4\
**Last updated:** [April 13, 2023, 6:10pm UTC](https://discourse.julialang.org/t/posterior-prediction-in-turing/97355 "2023-04-13T18:10:09Z")

</div>

I’m looking to replicate the below code snippet from a Stan example. I’m having a hard time figuring out the syntax to replicate the Turing predict() example for my logistic regression model and translating the Stan code…

---

## [Error in testset sockets](https://discourse.julialang.org/t/error-in-testset-sockets/97435)

<div class="topic-metadata">

**Author:** [@bob](https://discourse.julialang.org/u/bob)\
**Replies:** 0\
**Last updated:** [April 13, 2023, 5:40pm UTC](https://discourse.julialang.org/t/error-in-testset-sockets/97435 "2023-04-13T17:40:58Z")

</div>

Installed 1.8.5 from source on Fedora 37. Make testall shows an error observing that DNS setup seem to be working and suggests installation of libnss-resolve. Libnss-resolve unavailable via dnf search. Details: From wo…

---

## [\[Help\] Nested ForwardDiff.jacobian of an Integrals.IntegralProblem](https://discourse.julialang.org/t/help-nested-forwarddiff-jacobian-of-an-integrals-integralproblem/97430)

<div class="topic-metadata">

**Author:** [@aafsar](https://discourse.julialang.org/u/aafsar)\
**Replies:** 2\
**Last updated:** [April 13, 2023, 5:36pm UTC](https://discourse.julialang.org/t/help-nested-forwarddiff-jacobian-of-an-integrals-integralproblem/97430 "2023-04-13T17:36:03Z")

</div>

I have an integration problem (actually vector-valued, but problem here applies to scalar-valued ones as well) as a part of my model which it might be helpful to calculate its Hessian. I follow the documentation of Integ…

---

## [Make a Legend with width equal to an axis](https://discourse.julialang.org/t/make-a-legend-with-width-equal-to-an-axis/97317)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 11\
**Last updated:** [April 13, 2023, 5:29pm UTC](https://discourse.julialang.org/t/make-a-legend-with-width-equal-to-an-axis/97317 "2023-04-13T17:29:26Z")

</div>

Hi, I am trying to recreate the following PyPlot image with Makie: I know how to make everything in the figure except one thing: how to make the legend width to be exactly the same as the axis below it. Any help woul…

---

## [Startup.jl not running](https://discourse.julialang.org/t/startup-jl-not-running/97232)

<div class="topic-metadata">

**Author:** [@kw\_martin](https://discourse.julialang.org/u/kw_martin)\
**Replies:** 24\
**Last updated:** [April 13, 2023, 4:55pm UTC](https://discourse.julialang.org/t/startup-jl-not-running/97232 "2023-04-13T16:55:38Z")

</div>

Been away from Julia for about 9 months. Coming back I upgraded fro m 1.7.3 to 1.8.5; had issues with environment variables but eventally got over them. However, my file in ~/.julia/config/startup.jl is not being run. I …

---

## [Plotting problems with Mac M1](https://discourse.julialang.org/t/plotting-problems-with-mac-m1/97220)

<div class="topic-metadata">

**Author:** [@ericstoneking](https://discourse.julialang.org/u/ericstoneking)\
**Replies:** 4\
**Last updated:** [April 13, 2023, 4:11pm UTC](https://discourse.julialang.org/t/plotting-problems-with-mac-m1/97220 "2023-04-13T16:11:51Z")

</div>

Hi All, I’m migrating to a Mac M1. I’ve installed julia 1.8.5 (2023-01-08) from julialang.org. Added my favorite packages using Pkg, among which is Plots.jl. This input in the REPL: using Plots gr(); x =…

---

## [Edgelist of a graph](https://discourse.julialang.org/t/edgelist-of-a-graph/97423)

<div class="topic-metadata">

**Author:** [@ahmad88](https://discourse.julialang.org/u/ahmad88)\
**Replies:** 6\
**Last updated:** [April 13, 2023, 3:30pm UTC](https://discourse.julialang.org/t/edgelist-of-a-graph/97423 "2023-04-13T15:30:35Z")

</div>

I have the follwoing graph in graphml format \<?xml version="1.0"?\> \<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdra…

---

## [Replacing missing values in DataFrames.jl with function requiring multiple inputs](https://discourse.julialang.org/t/replacing-missing-values-in-dataframes-jl-with-function-requiring-multiple-inputs/97323)

<div class="topic-metadata">

**Author:** [@dleather](https://discourse.julialang.org/u/dleather)\
**Replies:** 2\
**Last updated:** [April 13, 2023, 11:04am UTC](https://discourse.julialang.org/t/replacing-missing-values-in-dataframes-jl-with-function-requiring-multiple-inputs/97323 "2023-04-13T11:04:07Z")

</div>

The code below should create a new column in a DataFrame, new\_MaxAllwFAR = \[15.0, 15.0, 15.0, 15.0\]. Instead it creates, new\_MaxAllwFAR = \[15.0, 15.0, missing, missing\]. Can you help me understand why? And how should…

---

## [Has PGO for (re)compiling methods been considered?](https://discourse.julialang.org/t/has-pgo-for-re-compiling-methods-been-considered/97426)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 5\
**Last updated:** [April 13, 2023, 12:50pm UTC](https://discourse.julialang.org/t/has-pgo-for-re-compiling-methods-been-considered/97426 "2023-04-13T12:50:34Z")

</div>

It just crossed my mind that it would be very nice if Julia provided some kind of profile-guided optimization (PGO) API. Something like: The user gathers a performance profile for some of their Julia code The user…

---

## [Difference equation with neural network](https://discourse.julialang.org/t/difference-equation-with-neural-network/97403)

<div class="topic-metadata">

**Author:** [@quantiota](https://discourse.julialang.org/u/quantiota)\
**Replies:** 0\
**Last updated:** [April 12, 2023, 7:07pm UTC](https://discourse.julialang.org/t/difference-equation-with-neural-network/97403 "2023-04-12T19:07:30Z")

</div>

Someone can give me a research direction to find the time series w\[i\] so that the loss function sum(F.^2) is minimized for a known time series q. # define a function to calculate the values of F for a given time serie…

---

## [Function fitting neural network](https://discourse.julialang.org/t/function-fitting-neural-network/97425)

<div class="topic-metadata">

**Author:** [@Vahagn](https://discourse.julialang.org/u/Vahagn)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 11:53am UTC](https://discourse.julialang.org/t/function-fitting-neural-network/97425 "2023-04-13T11:53:32Z")

</div>

Hi everyone, I am a beginner in using Julia and I want to ask how to use neural network in Julia. To be more specific, I have a target matrix 8x5000 and an input matrix 300x5000 and I want to find coefficients for fitt…

---

## [How is the performance of GraphNeuralNetworks.jl compared to PytorchGeometric?](https://discourse.julialang.org/t/how-is-the-performance-of-graphneuralnetworks-jl-compared-to-pytorchgeometric/97396)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 4\
**Last updated:** [April 13, 2023, 11:30am UTC](https://discourse.julialang.org/t/how-is-the-performance-of-graphneuralnetworks-jl-compared-to-pytorchgeometric/97396 "2023-04-13T11:30:45Z")

</div>

I’ve been playing around with the excellent GraphNeuralNetworks.jl and am thinking about applying it to the biochemistry domain. Specifically within drug discovery. I was wondering if anyone has tried to benchmark speed …

---

## [Plotlyjs and composite figures](https://discourse.julialang.org/t/plotlyjs-and-composite-figures/97320)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 8\
**Last updated:** [April 13, 2023, 10:32am UTC](https://discourse.julialang.org/t/plotlyjs-and-composite-figures/97320 "2023-04-13T10:32:11Z")

</div>

Hi all, I’m trying to create composite figures which involve a heatmap as well as an overlying contour. I’d like to control the aspect ratio, the contour thickness and the colorbars. I chose plotlyjs backend of Plots be…

---

## [Using GLMakie to animate crank mechanism](https://discourse.julialang.org/t/using-glmakie-to-animate-crank-mechanism/79594)

<div class="topic-metadata">

**Author:** [@Ogweno\_Emmanuel](https://discourse.julialang.org/u/Ogweno_Emmanuel)\
**Replies:** 18\
**Last updated:** [April 13, 2023, 4:44am UTC](https://discourse.julialang.org/t/using-glmakie-to-animate-crank-mechanism/79594 "2023-04-13T04:44:15Z")

</div>

I am trying to animate a crank mechanism using the GLMakie package. I was following this youtube tutorial, Making animations and interactive applications in Makie.jl - YouTube , and here’s the code I wrote. using GLMaki…

---

## [OSSInsight/GitHub Data Explorer: JuliaLang/julia Pull Request Rank = 9](https://discourse.julialang.org/t/ossinsight-github-data-explorer-julialang-julia-pull-request-rank-9/97418)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 2\
**Last updated:** [April 13, 2023, 10:15am UTC](https://discourse.julialang.org/t/ossinsight-github-data-explorer-julialang-julia-pull-request-rank-9/97418 "2023-04-13T10:15:02Z")

</div>

Rank: https://ossinsight.io/collections/programming-language/ JuliaLang/Julia : 2023 Mar Stars: Rank = 12 Pull Request: Rank = 9 Issues: Rank = 10 You can check trending julia repos: ( " We ranked all r…

---

## [CUTENSOR not available](https://discourse.julialang.org/t/cutensor-not-available/97341)

<div class="topic-metadata">

**Author:** [@lello](https://discourse.julialang.org/u/lello)\
**Replies:** 7\
**Last updated:** [April 13, 2023, 9:36am UTC](https://discourse.julialang.org/t/cutensor-not-available/97341 "2023-04-13T09:36:02Z")

</div>

Hi All, I am trying to install CUDA with CUTENSOR support on a Debian 11+julia 1.8.5, but witout success. The main problem is that CUTENSOR is non supported at moment for the new CUDA 12.1 drivers. This is the error m…

---

## [Is the Julia plugin compatible with VSCode 1.77](https://discourse.julialang.org/t/is-the-julia-plugin-compatible-with-vscode-1-77/97421)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [April 13, 2023, 9:14am UTC](https://discourse.julialang.org/t/is-the-julia-plugin-compatible-with-vscode-1-77/97421 "2023-04-13T09:14:13Z")

</div>

I upgraded to VSCode 1.77, but the Julia plugin does not work on my system. Is this to be expected or is it perhaps a system-specific problem?

---

## [\[Plots.jl\] Can't show data on hover (surface plot)](https://discourse.julialang.org/t/plots-jl-cant-show-data-on-hover-surface-plot/56397)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 5\
**Last updated:** [April 13, 2023, 8:59am UTC](https://discourse.julialang.org/t/plots-jl-cant-show-data-on-hover-surface-plot/56397 "2023-04-13T08:59:18Z")

</div>

Hello! My problem For my application, I need to be able to obtain data points when hovering over a surface plot. As far as I know: Makie has no backend that supports this feature In Plots, there are two backends that …

---

## [How do I get the indexes for matrix columns whose elements are all the same?](https://discourse.julialang.org/t/how-do-i-get-the-indexes-for-matrix-columns-whose-elements-are-all-the-same/97402)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 12\
**Last updated:** [April 13, 2023, 8:41am UTC](https://discourse.julialang.org/t/how-do-i-get-the-indexes-for-matrix-columns-whose-elements-are-all-the-same/97402 "2023-04-13T08:41:17Z")

</div>

Suppose you have a matrix m, how do you get the indexes of all the columns whose values are all the same. For example, if m is such as below, the answer should be 1 because only the first column has all entries equal. m…

---

## [How to create an exe file from julia code?](https://discourse.julialang.org/t/how-to-create-an-exe-file-from-julia-code/30004)

<div class="topic-metadata">

**Author:** [@vinod\_kc](https://discourse.julialang.org/u/vinod_kc)\
**Replies:** 56\
**Last updated:** [April 13, 2023, 8:37am UTC](https://discourse.julialang.org/t/how-to-create-an-exe-file-from-julia-code/30004 "2023-04-13T08:37:27Z")

</div>

Hi all, I am new to julia. I just started loving this language at first sight, Elegant ! My area of interest is windows desktop applications. I just set up all the beginning steps in atom and execute my Hello World app…

---

## [Guarantees on order of evaluation?](https://discourse.julialang.org/t/guarantees-on-order-of-evaluation/96259)

<div class="topic-metadata">

**Author:** [@lmtzx9h4qqnt](https://discourse.julialang.org/u/lmtzx9h4qqnt)\
**Replies:** 12\
**Last updated:** [April 13, 2023, 4:52am UTC](https://discourse.julialang.org/t/guarantees-on-order-of-evaluation/96259 "2023-04-13T04:52:18Z")

</div>

Are there any guarantees on the order in which sub-parts of expressions (e. g. function arguments) are evaluated? It seems like Julia evaluates from left to right, but there doesn’t actually seem to be anything in the do…

---

## [@Const(x::T), where T\<: AbstractArray, throwing error in KernelAbstractions kernel call](https://discourse.julialang.org/t/const-x-t-where-t-abstractarray-throwing-error-in-kernelabstractions-kernel-call/96587)

<div class="topic-metadata">

**Author:** [@prikmm](https://discourse.julialang.org/u/prikmm)\
**Replies:** 1\
**Last updated:** [April 13, 2023, 1:25am UTC](https://discourse.julialang.org/t/const-x-t-where-t-abstractarray-throwing-error-in-kernelabstractions-kernel-call/96587 "2023-04-13T01:25:40Z")

</div>

Hi all, I am currently working on a softmax kernel while parallelly learning Julia. After going through some examples, I tried using @Const macro with Abstract Type Declaration in kernel. Minimal Kernel Code given below…

---

## [Recovering different form from JuMP model](https://discourse.julialang.org/t/recovering-different-form-from-jump-model/97401)

<div class="topic-metadata">

**Author:** [@shakedregev](https://discourse.julialang.org/u/shakedregev)\
**Replies:** 3\
**Last updated:** [April 12, 2023, 11:33pm UTC](https://discourse.julialang.org/t/recovering-different-form-from-jump-model/97401 "2023-04-12T23:33:31Z")

</div>

If I have a model that I know represents the LP min c'x s.t. Ax\<=b how can I extract (A, b, c) from the model? I know JuMP.\_nlp\_objective\_function will give me the objective function, but I actually need the vector c …

---

## [Flattening YFinance.jl JSON result into a DataFrame](https://discourse.julialang.org/t/flattening-yfinance-jl-json-result-into-a-dataframe/96333)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 22\
**Last updated:** [April 11, 2023, 5:07pm UTC](https://discourse.julialang.org/t/flattening-yfinance-jl-json-result-into-a-dataframe/96333 "2023-04-11T17:07:38Z")

</div>

I have a DataFrame similar to this one: df4 = DataFrame(a=\[Dict(\[:aa=\>1, :bb=\>2\]), Dict(\[:aa=\>3, :bb=\>4\])\], b=\["one", "two"\]) … and I want the Dictionaries to be flattened wide, that is, I want that the DataFramehas…

---

## [Why am I getting: "Error: there is no registered task type 'julia-proc'"](https://discourse.julialang.org/t/why-am-i-getting-error-there-is-no-registered-task-type-julia-proc/97398)

<div class="topic-metadata">

**Author:** [@Charles\_Brauer](https://discourse.julialang.org/u/Charles_Brauer)\
**Replies:** 1\
**Last updated:** [April 12, 2023, 6:15pm UTC](https://discourse.julialang.org/t/why-am-i-getting-error-there-is-no-registered-task-type-julia-proc/97398 "2023-04-12T18:15:19Z")

</div>

Hello, I’m a new user of Julia and Visual Studio Code. They both have been installed today. I’m getting an error message I don’t understand. Here is a screen capture of the error message: Any help will be greatly …

---

## [Bitshifting using GMP.MPZ](https://discourse.julialang.org/t/bitshifting-using-gmp-mpz/97356)

<div class="topic-metadata">

**Author:** [@x13420x](https://discourse.julialang.org/u/x13420x)\
**Replies:** 7\
**Last updated:** [April 11, 2023, 10:49pm UTC](https://discourse.julialang.org/t/bitshifting-using-gmp-mpz/97356 "2023-04-11T22:49:53Z")

</div>

I am noticing that the GMP functions are faster that the native julia functions for example: Base.GMP.MPZ.gcd(a,b) 20 percent faster …only tried 2 values…sorry I am certain for 1000 digit numbers I wil…

---

## [Calling a Julia script from the Linux terminal (with inputs)](https://discourse.julialang.org/t/calling-a-julia-script-from-the-linux-terminal-with-inputs/97380)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 8\
**Last updated:** [April 12, 2023, 4:30pm UTC](https://discourse.julialang.org/t/calling-a-julia-script-from-the-linux-terminal-with-inputs/97380 "2023-04-12T16:30:40Z")

</div>

Hi all. I have a script that I need to run as a part of a shell script. Inside julia I can just put the name of the file, but in my workflow I need to parse this file name to the julia script (from a shelle script) and …

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

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