# Latest

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

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

**Page:** 918

---

## [How to write a macro to export all instances of an enum type](https://discourse.julialang.org/t/how-to-write-a-macro-to-export-all-instances-of-an-enum-type/73137)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 2\
**Last updated:** [September 22, 2022, 8:45am UTC](https://discourse.julialang.org/t/how-to-write-a-macro-to-export-all-instances-of-an-enum-type/73137 "2022-09-22T08:45:58Z")

</div>

A module has an enum type A and I want to export all its instances instances(A). I want to write a macro @export\_instances like module MyModule export A @enum A a b c @export\_instances A # \`export a, b, c\` end # module…

---

## [Incorrect bifurcation diagram bifurcationkit.jl](https://discourse.julialang.org/t/incorrect-bifurcation-diagram-bifurcationkit-jl/87259)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 30\
**Last updated:** [September 22, 2022, 8:19am UTC](https://discourse.julialang.org/t/incorrect-bifurcation-diagram-bifurcationkit-jl/87259 "2022-09-22T08:19:27Z")

</div>

This is my first time using this package and I need to get a bifurcation diagram for the following system function sigma(x) return 1.0 / ( 1.0 + exp( -10.0 \* ( x - ( - 0.25 ) ) ) ) end function HR(u, p) a…

---

## [Is there a way to easily identify useless import, export and using statements](https://discourse.julialang.org/t/is-there-a-way-to-easily-identify-useless-import-export-and-using-statements/87580)

<div class="topic-metadata">

**Author:** [@Atiyah](https://discourse.julialang.org/u/Atiyah)\
**Replies:** 6\
**Last updated:** [September 22, 2022, 8:16am UTC](https://discourse.julialang.org/t/is-there-a-way-to-easily-identify-useless-import-export-and-using-statements/87580 "2022-09-22T08:16:08Z")

</div>

I was wondering if there is a way (probably a tool or a package) that could show whether an import, an export or a using statement is useless in a particular source file. Particularly, using X: Type1, Type2, foo1, foo2…

---

## [ReverseDiff and GalacticOptim: Issues with dependencies](https://discourse.julialang.org/t/reversediff-and-galacticoptim-issues-with-dependencies/87608)

<div class="topic-metadata">

**Author:** [@Luis\_Calderon](https://discourse.julialang.org/u/Luis_Calderon)\
**Replies:** 5\
**Last updated:** [September 22, 2022, 7:44am UTC](https://discourse.julialang.org/t/reversediff-and-galacticoptim-issues-with-dependencies/87608 "2022-09-22T07:44:13Z")

</div>

Dear all, I’m running a maximum likelihood estimation of 1000+ parameters and thought to use ReverseDiff. I found a video online (1:47) that said to run something similar to the following if interested in using ReverseD…

---

## [Memory error and garbage collection (Circuitscape)](https://discourse.julialang.org/t/memory-error-and-garbage-collection-circuitscape/87022)

<div class="topic-metadata">

**Author:** [@icancellare](https://discourse.julialang.org/u/icancellare)\
**Replies:** 15\
**Last updated:** [September 22, 2022, 6:46am UTC](https://discourse.julialang.org/t/memory-error-and-garbage-collection-circuitscape/87022 "2022-09-22T06:46:17Z")

</div>

Been working for weeks with the same code to run batches of models in Circuitscape. The machine has a LOT of memory and available storage, yet I am now getting an out of memory error. I don’t understand the Stacktrace or…

---

## [REPL and Source Code Question](https://discourse.julialang.org/t/repl-and-source-code-question/87613)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 1\
**Last updated:** [September 22, 2022, 3:22am UTC](https://discourse.julialang.org/t/repl-and-source-code-question/87613 "2022-09-22T03:22:38Z")

</div>

Hello, Often times when I am exploring and building things with a new package I am frequently checking what methods are available in the REPL by doing ? SomeFunc. It will return something like # 3 methods for generic fu…

---

## [Implement show function to make inline result display correctly](https://discourse.julialang.org/t/implement-show-function-to-make-inline-result-display-correctly/87602)

<div class="topic-metadata">

**Author:** [@Frankiewaang](https://discourse.julialang.org/u/Frankiewaang)\
**Replies:** 5\
**Last updated:** [September 22, 2022, 1:52am UTC](https://discourse.julialang.org/t/implement-show-function-to-make-inline-result-display-correctly/87602 "2022-09-22T01:52:56Z")

</div>

I have a struct that wraps a DataFrame, Could I ask how to dispatch Base.show function to make it display correctly in hover results? Currently, the hover result displays nothing.

---

## [A limit to free operations](https://discourse.julialang.org/t/a-limit-to-free-operations/87568)

<div class="topic-metadata">

**Author:** [@mongi](https://discourse.julialang.org/u/mongi)\
**Replies:** 5\
**Last updated:** [September 21, 2022, 2:17pm UTC](https://discourse.julialang.org/t/a-limit-to-free-operations/87568 "2022-09-21T14:17:31Z")

</div>

Hi, I have my own type and implemented (+,-,\*,/) for it “mulT(args…), addT, subT, divT”, and it works without allocations until length(args)\>7 for multiplication and 9 for addition. For each operation there is a cache …

---

## [Initializing BVP](https://discourse.julialang.org/t/initializing-bvp/87598)

<div class="topic-metadata">

**Author:** [@Jojo](https://discourse.julialang.org/u/Jojo)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 9:06pm UTC](https://discourse.julialang.org/t/initializing-bvp/87598 "2022-09-21T21:06:26Z")

</div>

Hello, I’m new to the BoundaryValueDiffEq package and I’ve seen some examples of its use for solving second order differential equations. However, I was wondering whether it’s posible to solve first order BVPs too. I t…

---

## [CSR matrices in CUDA.jl](https://discourse.julialang.org/t/csr-matrices-in-cuda-jl/87388)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 8:41pm UTC](https://discourse.julialang.org/t/csr-matrices-in-cuda-jl/87388 "2022-09-21T20:41:41Z")

</div>

I can create CSC matrices on the GPU, e.g. via cu(sprand(10,10,0.1)). How do I create CSR matrices? How do I convert a CSC into a CSR matrix on the CPU or GPU? I want to use csreigvsi, which requires CSR storage structu…

---

## [Dataframes combine over 100s of columns](https://discourse.julialang.org/t/dataframes-combine-over-100s-of-columns/87446)

<div class="topic-metadata">

**Author:** [@bicepjai](https://discourse.julialang.org/u/bicepjai)\
**Replies:** 22\
**Last updated:** [September 21, 2022, 8:36pm UTC](https://discourse.julialang.org/t/dataframes-combine-over-100s-of-columns/87446 "2022-09-21T20:36:52Z")

</div>

Trying to perform combine over one columns logged over multiple days and get delta (max - min) for 300 columns in a dataset with 10 million rows. How can i do this efficiently ? I also notice if i combine over 10 co…

---

## [Makie xlims!](https://discourse.julialang.org/t/makie-xlims/56417)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 7\
**Last updated:** [September 21, 2022, 8:20pm UTC](https://discourse.julialang.org/t/makie-xlims/56417 "2022-09-21T20:20:42Z")

</div>

How do I make this work… I have essentially tried everything for the last twenty minutes ?? = lines(x, y, z, linewidth=0.5, show\_axis=false) xlims!(??, 1.05,1.95) ylims!(??, 1.05,1.95)

---

## [ANN: GeoData.jl](https://discourse.julialang.org/t/ann-geodata-jl/45502)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 49\
**Last updated:** [September 21, 2022, 8:18pm UTC](https://discourse.julialang.org/t/ann-geodata-jl/45502 "2022-09-21T20:18:01Z")

</div>

It’s been a while coming, but I’m happy to announce that GeoData.jl is finally registered! GeoData is a package for loading and manipulating spatial data - predominantly raster arrays and multilayered stacks of rasters,…

---

## [Write from julia in excel](https://discourse.julialang.org/t/write-from-julia-in-excel/87582)

<div class="topic-metadata">

**Author:** [@Zizilabg](https://discourse.julialang.org/u/Zizilabg)\
**Replies:** 7\
**Last updated:** [September 21, 2022, 7:13pm UTC](https://discourse.julialang.org/t/write-from-julia-in-excel/87582 "2022-09-21T19:13:28Z")

</div>

Hello, Here is my code: using XLSX using JuMP using Gurobi using DataFrames # change working directory to the one containing this file cd(@\_\_DIR\_\_) fichierDonnees=XLSX.readxlsx("choix élèves julia.xlsx") ws=fichier…

---

## [Convert float matrix to abstract float](https://discourse.julialang.org/t/convert-float-matrix-to-abstract-float/87599)

<div class="topic-metadata">

**Author:** [@JosieG](https://discourse.julialang.org/u/JosieG)\
**Replies:** 3\
**Last updated:** [September 21, 2022, 7:07pm UTC](https://discourse.julialang.org/t/convert-float-matrix-to-abstract-float/87599 "2022-09-21T19:07:37Z")

</div>

I have a 2\*85 float matrix. And I need to pass it to a function function func( Y::Matrix{T}, )::Matrix{T} where {T\<:AbstractFloat} So I think I have to convert the matrix from float type to Abstractfloat. I have a …

---

## [Pathfinding and update\_vel!](https://discourse.julialang.org/t/pathfinding-and-update-vel/87471)

<div class="topic-metadata">

**Author:** [@InesP](https://discourse.julialang.org/u/InesP)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 6:37pm UTC](https://discourse.julialang.org/t/pathfinding-and-update-vel/87471 "2022-09-21T18:37:45Z")

</div>

Hey, I started using Agents.jl recently, and I have a question regarding using pathfinding and update\_vel! together. I’m trying to use Agents to model crowd dynamics in emergency situations. Right now, I’m using the AS…

---

## [Absolute value error?](https://discourse.julialang.org/t/absolute-value-error/87579)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 4\
**Last updated:** [September 21, 2022, 5:36pm UTC](https://discourse.julialang.org/t/absolute-value-error/87579 "2022-09-21T17:36:58Z")

</div>

Hello! I am using value function iteration to maximize a Bellman equation. When I check the difference between two vectors then take the absolute value, I get an error from the “di” line: subt = vnew - v println…

---

## [Could not start Julia Server VSCode in WSL2](https://discourse.julialang.org/t/could-not-start-julia-server-vscode-in-wsl2/87542)

<div class="topic-metadata">

**Author:** [@Eduardo\_Pacheco](https://discourse.julialang.org/u/Eduardo_Pacheco)\
**Replies:** 5\
**Last updated:** [September 21, 2022, 5:22pm UTC](https://discourse.julialang.org/t/could-not-start-julia-server-vscode-in-wsl2/87542 "2022-09-21T17:22:02Z")

</div>

I installed Julia 1.8.1 using WSL2 as explained here and added it to my PATH After that I’ve installed Julia Extension and created a new project I got error message \`Could not start the Julia Language Server’. If …

---

## [Asking for a user account to be deleted what are the ramifications to existing contributions](https://discourse.julialang.org/t/asking-for-a-user-account-to-be-deleted-what-are-the-ramifications-to-existing-contributions/87586)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 4\
**Last updated:** [September 21, 2022, 5:07pm UTC](https://discourse.julialang.org/t/asking-for-a-user-account-to-be-deleted-what-are-the-ramifications-to-existing-contributions/87586 "2022-09-21T17:07:14Z")

</div>

Should I ask for my user account to be deleted what are the ramifications related to any “contribution” I have made to julia discourse. Would such contributions be deleted or do I have to request that? this is just a ge…

---

## [Bit disallusioned about julia awareness and adoption](https://discourse.julialang.org/t/bit-disallusioned-about-julia-awareness-and-adoption/87408)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 49\
**Last updated:** [September 21, 2022, 4:59pm UTC](https://discourse.julialang.org/t/bit-disallusioned-about-julia-awareness-and-adoption/87408 "2022-09-21T16:59:26Z")

</div>

Hi all I am retired from silicon valley and have some idea about how to ask pertinent questions about a technology. My first startup’s chairman and ceo was Tom Perkins and so I learnt some things right from day one. An …

---

## [Julia 1.8.2 testing period](https://discourse.julialang.org/t/julia-1-8-2-testing-period/87590)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [September 21, 2022, 4:54pm UTC](https://discourse.julialang.org/t/julia-1-8-2-testing-period/87590 "2022-09-21T16:54:55Z")

</div>

The release-1.8 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.8.2, the second patch release in the 1.8 series. The list of commits included since v1.8.1 is available here . As…

---

## [Losing Science Marketshare to Non-Python Languages](https://discourse.julialang.org/t/losing-science-marketshare-to-non-python-languages/87136)

<div class="topic-metadata">

**Author:** [@NickW3101](https://discourse.julialang.org/u/NickW3101)\
**Replies:** 30\
**Last updated:** [September 21, 2022, 4:25pm UTC](https://discourse.julialang.org/t/losing-science-marketshare-to-non-python-languages/87136 "2022-09-21T16:25:55Z")

</div>

The Julia team could grow the user base by filling the programming language gaps that data scientists are resorting to more difficult languages for, such as Go and Rust. Search the web to see what problems scientists ar…

---

## [Sum of rationals](https://discourse.julialang.org/t/sum-of-rationals/87581)

<div class="topic-metadata">

**Author:** [@fa-bien](https://discourse.julialang.org/u/fa-bien)\
**Replies:** 1\
**Last updated:** [September 21, 2022, 3:51pm UTC](https://discourse.julialang.org/t/sum-of-rationals/87581 "2022-09-21T15:51:06Z")

</div>

I wrote the following function to calculate the sum of a vector of rational numbers: function rationalsum(numbers::Vector{T} where T\<:Rational) den = lcm(\[x.den for x in numbers\]) nums = (x.num \* div(den, x.den)…

---

## [Simple SciML case - core dumped after switching from julia 1.7 to 1.8](https://discourse.julialang.org/t/simple-sciml-case-core-dumped-after-switching-from-julia-1-7-to-1-8/87549)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 7\
**Last updated:** [September 21, 2022, 3:08pm UTC](https://discourse.julialang.org/t/simple-sciml-case-core-dumped-after-switching-from-julia-1-7-to-1-8/87549 "2022-09-21T15:08:45Z")

</div>

Hi there, I am starting with SciML and getting a core dumped when switching from julia 1.7.2 to julia 1.8.1 It is a simple combination of ODEProblem and Optimization, worked before, now fails dramatically. import Diffe…

---

## [Where Can I find documentation regarding TTY raw mode?](https://discourse.julialang.org/t/where-can-i-find-documentation-regarding-tty-raw-mode/87569)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 3\
**Last updated:** [September 21, 2022, 2:54pm UTC](https://discourse.julialang.org/t/where-can-i-find-documentation-regarding-tty-raw-mode/87569 "2022-09-21T14:54:37Z")

</div>

I have been working on a project that utilises a bit of low level terminal manipulation code to manage its flow and interface. I have encountered again and again and again and again mentions to this superhero raw mode t…

---

## [How do I make the julia code efficient?](https://discourse.julialang.org/t/how-do-i-make-the-julia-code-efficient/87560)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 3\
**Last updated:** [September 21, 2022, 2:45pm UTC](https://discourse.julialang.org/t/how-do-i-make-the-julia-code-efficient/87560 "2022-09-21T14:45:06Z")

</div>

function conver(ind, str) ls = length(str) ls \< ind + 2 && return nothing s = SubString(str, ind+1, ind+2) if 'N' in s return missing else return s=="CG" end end function classify\_…

---

## [Using selenium By syntax in Julia](https://discourse.julialang.org/t/using-selenium-by-syntax-in-julia/87577)

<div class="topic-metadata">

**Author:** [@rajmac](https://discourse.julialang.org/u/rajmac)\
**Replies:** 0\
**Last updated:** [September 21, 2022, 2:31pm UTC](https://discourse.julialang.org/t/using-selenium-by-syntax-in-julia/87577 "2022-09-21T14:31:51Z")

</div>

Hi, I have been using PyCall and selenium to scrape some sites. Whist I have managed to acheive my ends I have hit a snag which may be due to my being new to Julia. This is that I cannot get the new selenium locator synt…

---

## [Why is REPL unable to locate only one of my files?](https://discourse.julialang.org/t/why-is-repl-unable-to-locate-only-one-of-my-files/87503)

<div class="topic-metadata">

**Author:** [@Bananthahally](https://discourse.julialang.org/u/Bananthahally)\
**Replies:** 11\
**Last updated:** [September 21, 2022, 2:17pm UTC](https://discourse.julialang.org/t/why-is-repl-unable-to-locate-only-one-of-my-files/87503 "2022-09-21T14:17:47Z")

</div>

I’m just a newbie to Julia and am trying out simple stuff inside the Atom IDE. I created two small functions Eucl.jl and TriaMap.jl and tried executing these in the REPL window. The first one, Eucl.jl gets executed bu…

---

## [@sync doesn't synchronize @distributed unless called as @sync @distributed](https://discourse.julialang.org/t/sync-doesnt-synchronize-distributed-unless-called-as-sync-distributed/87574)

<div class="topic-metadata">

**Author:** [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Replies:** 0\
**Last updated:** [September 21, 2022, 2:07pm UTC](https://discourse.julialang.org/t/sync-doesnt-synchronize-distributed-unless-called-as-sync-distributed/87574 "2022-09-21T14:07:29Z")

</div>

I want to assemble a sparse matrix using Distributed. I use DistributedArrays for the nonzero elements. The code calls some functions (assemble\_synced! or assemble\_not\_synced!) which assemble submatrices of the whole mat…

---

## [Tables in Literate.jl](https://discourse.julialang.org/t/tables-in-literate-jl/87564)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [September 21, 2022, 2:01pm UTC](https://discourse.julialang.org/t/tables-in-literate-jl/87564 "2022-09-21T14:01:18Z")

</div>

I would like to display a computed table in a file marked up with Literate.jl. I managed to do it with using Tables, PrettyTables, DisplayAs tab = \[(a = 1, b = 2), (a = 3, b = 4)\]; pretty\_table(String, tab; tf = tf\_mar…

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

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