# Latest

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

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

**Page:** 812

---

## [Reading DataFrames from JLD2 files](https://discourse.julialang.org/t/reading-dataframes-from-jld2-files/88543)

<div class="topic-metadata">

**Author:** [@ehsani63](https://discourse.julialang.org/u/ehsani63)\
**Replies:** 9\
**Last updated:** [January 16, 2023, 12:58pm UTC](https://discourse.julialang.org/t/reading-dataframes-from-jld2-files/88543 "2023-01-16T12:58:00Z")

</div>

The results of my simulations are saved as DataFrames in JLD2 files: struct Sim params::Dict adf::DataFrame model::ABM end # Running simulations and generating results... ... sim = Sim(d, adf, model) # con…

---

## [VMLS Question](https://discourse.julialang.org/t/vmls-question/93025)

<div class="topic-metadata">

**Author:** [@priyanshujiiii](https://discourse.julialang.org/u/priyanshujiiii)\
**Replies:** 0\
**Last updated:** [January 16, 2023, 12:13pm UTC](https://discourse.julialang.org/t/vmls-question/93025 "2023-01-16T12:13:07Z")

</div>

in problem 1.1 sir how we solved this question . i approached the method like that we have 8 hrs in question, i converted at in second = 86060 = 28800 we already know that they are interval of 10 sec so we have 288…

---

## [QuadGK Computation Question](https://discourse.julialang.org/t/quadgk-computation-question/92983)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 8\
**Last updated:** [January 16, 2023, 12:01pm UTC](https://discourse.julialang.org/t/quadgk-computation-question/92983 "2023-01-16T12:01:27Z")

</div>

Hi all, I have tried QuadGK, but the result is not the same as the solution manual. Is there a problem in between? this is my code: using SymPy, QuadGK x = symbols("x") f(x) = (x^6 + 2)/(8x^2) # simplify(diff(f(x),…

---

## [JET.jl only show problems in my script](https://discourse.julialang.org/t/jet-jl-only-show-problems-in-my-script/93018)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 11:59am UTC](https://discourse.julialang.org/t/jet-jl-only-show-problems-in-my-script/93018 "2023-01-16T11:59:38Z")

</div>

Hey all :slight\_smile: Is there a setting in JET.jl so that I only get error reported in my script. I basically want to disable the displaying of error from imported pkgs. Cheers

---

## [How to dispatch on a Tuple with unknown length, but elements have same abstract type?](https://discourse.julialang.org/t/how-to-dispatch-on-a-tuple-with-unknown-length-but-elements-have-same-abstract-type/93017)

<div class="topic-metadata">

**Author:** [@zsoerenm](https://discourse.julialang.org/u/zsoerenm)\
**Replies:** 4\
**Last updated:** [January 16, 2023, 11:42am UTC](https://discourse.julialang.org/t/how-to-dispatch-on-a-tuple-with-unknown-length-but-elements-have-same-abstract-type/93017 "2023-01-16T11:42:33Z")

</div>

Consider this example: a = (complex(1,2), complex(1.0, 2.0)) The length of a is not fixed to 2, but could be arbitrary. Is there a way to dispatch on this? I tried a isa NTuple{N, \<: Complex} where N but this is ob…

---

## [Help to track down a type instability](https://discourse.julialang.org/t/help-to-track-down-a-type-instability/92970)

<div class="topic-metadata">

**Author:** [@vlc](https://discourse.julialang.org/u/vlc)\
**Replies:** 5\
**Last updated:** [January 16, 2023, 9:52am UTC](https://discourse.julialang.org/t/help-to-track-down-a-type-instability/92970 "2023-01-16T09:52:07Z")

</div>

Hi there, I have a piece of code that is sometimes type-stable, sometimes not, and can’t understand why… I’ve been scratching my head on this for a while, a fresh look would be very much appreciated… I’ve boiled it dow…

---

## [Remote development](https://discourse.julialang.org/t/remote-development/92987)

<div class="topic-metadata">

**Author:** [@d1cker](https://discourse.julialang.org/u/d1cker)\
**Replies:** 7\
**Last updated:** [January 16, 2023, 8:59am UTC](https://discourse.julialang.org/t/remote-development/92987 "2023-01-16T08:59:40Z")

</div>

Hi, I started working on remote DGX server remotely, and I didn’t manage to set up Languageserver.jl to work on the remote server and the editor to work locally (Emacs or VScode). Does someone manage to do so? Is ther…

---

## [\[ANN\] KeywordStrings.jl --- A fun and convenient string macro for interpolations](https://discourse.julialang.org/t/ann-keywordstrings-jl-a-fun-and-convenient-string-macro-for-interpolations/93011)

<div class="topic-metadata">

**Author:** [@adienes](https://discourse.julialang.org/u/adienes)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 6:13am UTC](https://discourse.julialang.org/t/ann-keywordstrings-jl-a-fun-and-convenient-string-macro-for-interpolations/93011 "2023-01-16T06:13:28Z")

</div>

Hi all, I have written my first package and pushed it here: GitHub - adienes/KeywordStrings.jl: Flexible and convenient string formatting for the Julia language. It is not yet registered but I thought I’d share. It is v…

---

## [Stringify number with unicode minus symbol](https://discourse.julialang.org/t/stringify-number-with-unicode-minus-symbol/92905)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 5\
**Last updated:** [January 16, 2023, 6:12am UTC](https://discourse.julialang.org/t/stringify-number-with-unicode-minus-symbol/92905 "2023-01-16T06:12:53Z")

</div>

This is a minor, simple question. Is there already a function that acts like string() but uses the unicode minus symbol for negative numbers? (It would be nice if string() accepted such an option.) If not, I’d just wr…

---

## [Fixing the Piping/Chaining Issue](https://discourse.julialang.org/t/fixing-the-piping-chaining-issue/89654)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 212\
**Last updated:** [January 16, 2023, 5:45am UTC](https://discourse.julialang.org/t/fixing-the-piping-chaining-issue/89654 "2023-01-16T05:45:00Z")

</div>

Objective To satisfy Julia’s piping/chaining/currying/partial application problem with an elegant and functional approach worthy and idiomatic of Base Julia. If you want, skip the background reading material straight do…

---

## [Not possible to "share" top-level variables during precompilation?](https://discourse.julialang.org/t/not-possible-to-share-top-level-variables-during-precompilation/92973)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 2\
**Last updated:** [January 16, 2023, 4:34am UTC](https://discourse.julialang.org/t/not-possible-to-share-top-level-variables-during-precompilation/92973 "2023-01-16T04:34:50Z")

</div>

I noticed the following behavior I’m trying to understand if its intentional, a bug, or could be changed. It seems obscure but has kind of come up as I’m trying to make Memoization.jl more precompile-friendly. On 1.9-bet…

---

## ["x" Argument in Optimization.OptimizationProblem](https://discourse.julialang.org/t/x-argument-in-optimization-optimizationproblem/92971)

<div class="topic-metadata">

**Author:** [@jonlym](https://discourse.julialang.org/u/jonlym)\
**Replies:** 1\
**Last updated:** [January 16, 2023, 3:49am UTC](https://discourse.julialang.org/t/x-argument-in-optimization-optimizationproblem/92971 "2023-01-16T03:49:48Z")

</div>

The docs for Optimization.OptimizationProblem refer to u and u₀ but neither are included in the argument list. Should the second positional argument (i.e., x) be relabeled to u? If they’re not representing the same thing…

---

## [Problem with stiff ODE solved by Julia](https://discourse.julialang.org/t/problem-with-stiff-ode-solved-by-julia/92980)

<div class="topic-metadata">

**Author:** [@liao2877104858](https://discourse.julialang.org/u/liao2877104858)\
**Replies:** 6\
**Last updated:** [January 16, 2023, 3:29am UTC](https://discourse.julialang.org/t/problem-with-stiff-ode-solved-by-julia/92980 "2023-01-16T03:29:26Z")

</div>

There’s an ODE to be solved. It’s a chemical reaction system. There is 863 reactions and 230 species. The system is quite stiff and large. So I ues some algorithms advised by Solving Large Stiff Equations · DifferentialE…

---

## [Looking for use cases of Julia in computational and data science research with astrophysics focus](https://discourse.julialang.org/t/looking-for-use-cases-of-julia-in-computational-and-data-science-research-with-astrophysics-focus/92257)

<div class="topic-metadata">

**Author:** [@brookluo](https://discourse.julialang.org/u/brookluo)\
**Replies:** 10\
**Last updated:** [January 15, 2023, 9:51pm UTC](https://discourse.julialang.org/t/looking-for-use-cases-of-julia-in-computational-and-data-science-research-with-astrophysics-focus/92257 "2023-01-15T21:51:43Z")

</div>

Hi all, I am a PhD student studying astrophysics. I am very interested in Julia and have been using it in some side projects on computational and data science. I hope to use Julia in astronomy research so I would apprec…

---

## [Vector type-recipe plotting in Julia](https://discourse.julialang.org/t/vector-type-recipe-plotting-in-julia/92986)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [January 15, 2023, 7:22pm UTC](https://discourse.julialang.org/t/vector-type-recipe-plotting-in-julia/92986 "2023-01-15T19:22:22Z")

</div>

I saw this question on stackoverflow. And I also have the same question: Could we define plot for one data point and it automatically works for an Array of it? IIs there a way to write a plotting type recipe for a type T…

---

## [Difficulty in understanding Error from Zygote](https://discourse.julialang.org/t/difficulty-in-understanding-error-from-zygote/92968)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 2\
**Last updated:** [January 15, 2023, 7:42pm UTC](https://discourse.julialang.org/t/difficulty-in-understanding-error-from-zygote/92968 "2023-01-15T19:42:52Z")

</div>

I’m trying to write a custom adjoint for a function given below: function factor\_divide(poly::Vector{ComplexF64}, α::ComplexF64, p::Int64) quotient\_deg::Int64 = size(poly,1) - p - 1 quotient::Vector{ComplexF64} …

---

## [Juliahub.com RSS XML feed not working](https://discourse.julialang.org/t/juliahub-com-rss-xml-feed-not-working/92964)

<div class="topic-metadata">

**Author:** [@fortunewalla](https://discourse.julialang.org/u/fortunewalla)\
**Replies:** 2\
**Last updated:** [January 15, 2023, 6:40pm UTC](https://discourse.julialang.org/t/juliahub-com-rss-xml-feed-not-working/92964 "2023-01-15T18:40:50Z")

</div>

not sure if this is the right place to post or not. (Please let me know) The RSS feed https://juliahub.com/feed.xml found in the Blog - JuliaHub page is not working while the feed of \<!\[CDATA\[ Julia Computing Website \]\]\>…

---

## [Franklin.jl file tree in navigation bar](https://discourse.julialang.org/t/franklin-jl-file-tree-in-navigation-bar/92996)

<div class="topic-metadata">

**Author:** [@Antomek](https://discourse.julialang.org/u/Antomek)\
**Replies:** 1\
**Last updated:** [January 15, 2023, 6:37pm UTC](https://discourse.julialang.org/t/franklin-jl-file-tree-in-navigation-bar/92996 "2023-01-15T18:37:13Z")

</div>

Hello everyone, I am trying to build a website with Franklin.jl. One of the elements I would like to have on the website is a wiki, with all of the posts being markdown files in a certain file structure, e.g. wiki/wik…

---

## [Precompilation failure caused by package dependency version](https://discourse.julialang.org/t/precompilation-failure-caused-by-package-dependency-version/92995)

<div class="topic-metadata">

**Author:** [@Rex\_Wang](https://discourse.julialang.org/u/Rex_Wang)\
**Replies:** 1\
**Last updated:** [January 15, 2023, 5:10pm UTC](https://discourse.julialang.org/t/precompilation-failure-caused-by-package-dependency-version/92995 "2023-01-15T17:10:08Z")

</div>

I am trying to install two packages ClimeTools and MultivariateStats. The former requires version 0.32.2 of the package StatsBase while the latter requires 0.33.21. This results in a conflict and prevents me from success…

---

## [Having human-readable and parseable display styles](https://discourse.julialang.org/t/having-human-readable-and-parseable-display-styles/92946)

<div class="topic-metadata">

**Author:** [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Replies:** 5\
**Last updated:** [January 15, 2023, 5:03pm UTC](https://discourse.julialang.org/t/having-human-readable-and-parseable-display-styles/92946 "2023-01-15T17:03:43Z")

</div>

What’s the best way to have both human-readable and parseable display styles for your own type, when there are both multiline and inline versions of the human-readable style? For example, suppose I have a vector-like ty…

---

## [Numerically stable derivative of logerf without catastrophic cancellation](https://discourse.julialang.org/t/numerically-stable-derivative-of-logerf-without-catastrophic-cancellation/92992)

<div class="topic-metadata">

**Author:** [@user22](https://discourse.julialang.org/u/user22)\
**Replies:** 4\
**Last updated:** [January 15, 2023, 4:56pm UTC](https://discourse.julialang.org/t/numerically-stable-derivative-of-logerf-without-catastrophic-cancellation/92992 "2023-01-15T16:56:08Z")

</div>

I need to evaluate the derivative of a logerf function fun with respect to x within the widest possible range of x. At the moment, the derivative is calculated through the function dfun. using LogExpFunctions using Fini…

---

## [SymPy Simplify Took too Long for Area of Surface Revolution of a sphere](https://discourse.julialang.org/t/sympy-simplify-took-too-long-for-area-of-surface-revolution-of-a-sphere/92988)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 6\
**Last updated:** [January 15, 2023, 3:06pm UTC](https://discourse.julialang.org/t/sympy-simplify-took-too-long-for-area-of-surface-revolution-of-a-sphere/92988 "2023-01-15T15:06:08Z")

</div>

Hi all, I want to calculate symbolically area of a surface of a sphere. y = f(x) = \\sqrt{r^{2} - x^{2}} with -r \\le x \\le r this is my code: using SymPy x, r = symbols("x r") f(x) = sqrt(r^2 - x^2) # simplify(diff(…

---

## [Unexpected comma in array expression Stacktrace:](https://discourse.julialang.org/t/unexpected-comma-in-array-expression-stacktrace/92993)

<div class="topic-metadata">

**Author:** [@priyanshujiiii](https://discourse.julialang.org/u/priyanshujiiii)\
**Replies:** 1\
**Last updated:** [January 15, 2023, 2:02pm UTC](https://discourse.julialang.org/t/unexpected-comma-in-array-expression-stacktrace/92993 "2023-01-15T14:02:47Z")

</div>

---

## [How to efficiently split StaticArrays into columns?](https://discourse.julialang.org/t/how-to-efficiently-split-staticarrays-into-columns/92990)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 6\
**Last updated:** [January 15, 2023, 1:35pm UTC](https://discourse.julialang.org/t/how-to-efficiently-split-staticarrays-into-columns/92990 "2023-01-15T13:35:47Z")

</div>

Hi! Suppose I have: using StaticArrays Values = rand(SVector{3,Float64},10^6) I know that I can split this into components as such: ValuesX = getindex.(Values,1) @benchmark getindex.($Values,1) BenchmarkTools.Tria…

---

## [Julia multithreading](https://discourse.julialang.org/t/julia-multithreading/92962)

<div class="topic-metadata">

**Author:** [@Sudipta\_Chakraborty](https://discourse.julialang.org/u/Sudipta_Chakraborty)\
**Replies:** 8\
**Last updated:** [January 15, 2023, 12:41pm UTC](https://discourse.julialang.org/t/julia-multithreading/92962 "2023-01-15T12:41:33Z")

</div>

I am new to Julia and want to multithread a portion of my code in Julia. Below is the code I have written, but it is throwing an error. Could anyone please help me in this regard? t2new = SharedArray{Float64…

---

## [Sankey Diagram in JULIA](https://discourse.julialang.org/t/sankey-diagram-in-julia/92884)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 8\
**Last updated:** [January 15, 2023, 10:10am UTC](https://discourse.julialang.org/t/sankey-diagram-in-julia/92884 "2023-01-15T10:10:34Z")

</div>

How to create Sankey Diagram in JULIA ? Is there any working package completely in Julia ? JuliaHub this is not working properly .    ~  julia  ✔ …

---

## [What is the usage of "type recipes" in RecipesBase.jl & Plots.jl?](https://discourse.julialang.org/t/what-is-the-usage-of-type-recipes-in-recipesbase-jl-plots-jl/92985)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [January 15, 2023, 7:58am UTC](https://discourse.julialang.org/t/what-is-the-usage-of-type-recipes-in-recipesbase-jl-plots-jl/92985 "2023-01-15T07:58:30Z")

</div>

The signature of a normal recipe looks like @recipe function f(data::AbstractArray{MyType}) And the “type recipes”'s signature look like: @recipe f(::Type{MyWrapper}, mw::MyWrapper) = mw.v What is the difference? Why…

---

## [How to tell if code is being run in global scope?](https://discourse.julialang.org/t/how-to-tell-if-code-is-being-run-in-global-scope/92982)

<div class="topic-metadata">

**Author:** [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Replies:** 1\
**Last updated:** [January 15, 2023, 6:13am UTC](https://discourse.julialang.org/t/how-to-tell-if-code-is-being-run-in-global-scope/92982 "2023-01-15T06:13:25Z")

</div>

How do you tell if code is being evaluated at top-level, or directly into the REPL? I have a macro that defines some variables in the current scope. For example: macro defs(n) assignments = \[:($(esc(Symbol("x$i"))) = …

---

## [Is there a way to ask Pkg for a package's download URL?](https://discourse.julialang.org/t/is-there-a-way-to-ask-pkg-for-a-packages-download-url/92686)

<div class="topic-metadata">

**Author:** [@SamuraiAku](https://discourse.julialang.org/u/SamuraiAku)\
**Replies:** 2\
**Last updated:** [January 15, 2023, 4:45am UTC](https://discourse.julialang.org/t/is-there-a-way-to-ask-pkg-for-a-packages-download-url/92686 "2023-01-15T04:45:37Z")

</div>

The use case for this question is when one must submit a FOSS review ticket to your IT organization. One essential field is the URL that Pkg uses to download the package. The organization then downloads the source code …

---

## [How to define a nested type?](https://discourse.julialang.org/t/how-to-define-a-nested-type/92978)

<div class="topic-metadata">

**Author:** [@wangyunyueyueniao](https://discourse.julialang.org/u/wangyunyueyueniao)\
**Replies:** 1\
**Last updated:** [January 15, 2023, 2:45am UTC](https://discourse.julialang.org/t/how-to-define-a-nested-type/92978 "2023-01-15T02:45:27Z")

</div>

For example: a nested dict with unknown depth. Tree=Dict{Char,Union{Dict{Char,...},Int}} I have tried this: Tree=Dict{Char,Union{Tree,Int}} But it gives “UndefVarError: Tree not defined” (I want to use this tree to …

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

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