# Latest

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

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

**Page:** 1171

---

## [How do a I get a type "stripped" of parameters?](https://discourse.julialang.org/t/how-do-a-i-get-a-type-stripped-of-parameters/73465)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 10\
**Last updated:** [December 23, 2021, 6:15pm UTC](https://discourse.julialang.org/t/how-do-a-i-get-a-type-stripped-of-parameters/73465 "2021-12-23T18:15:47Z")

</div>

struct Foo{T} end What function takes Foo{Int} and returns the parent UnionAll type, Foo?

---

## [PlotlyJS: Add space between legend and plot](https://discourse.julialang.org/t/plotlyjs-add-space-between-legend-and-plot/73533)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [December 23, 2021, 3:48pm UTC](https://discourse.julialang.org/t/plotlyjs-add-space-between-legend-and-plot/73533 "2021-12-23T15:48:39Z")

</div>

It gave me really a headache to enlarge the horizontal space between my plot area and the legend. hdl\_layout = Layout( margin\_r = 60, ) does not help, it adds just space to the right. By changing the parameter l…

---

## [Allowing a package to be cited](https://discourse.julialang.org/t/allowing-a-package-to-be-cited/73522)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 8\
**Last updated:** [December 23, 2021, 5:23pm UTC](https://discourse.julialang.org/t/allowing-a-package-to-be-cited/73522 "2021-12-23T17:23:50Z")

</div>

Any thoughts here on what are currently the best options to allow people to cite a package that you have created? I know of Zenodo Pros Easy and also stores the code. Cons Is mostly ignored by Google Scholar. Prepr…

---

## [Brackets on structures Julia](https://discourse.julialang.org/t/brackets-on-structures-julia/73532)

<div class="topic-metadata">

**Author:** [@Leticia-maria](https://discourse.julialang.org/u/Leticia-maria)\
**Replies:** 1\
**Last updated:** [December 23, 2021, 2:17pm UTC](https://discourse.julialang.org/t/brackets-on-structures-julia/73532 "2021-12-23T14:17:12Z")

</div>

what means this brackets on struct?: struct Graph{T} adjacency\_lists :: Dict{T, Set{T}} edge\_weights :: Dict{Tuple{T, T}, Float64} end

---

## [Pluto: Get current notebook file path](https://discourse.julialang.org/t/pluto-get-current-notebook-file-path/60543)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 11\
**Last updated:** [December 23, 2021, 1:39pm UTC](https://discourse.julialang.org/t/pluto-get-current-notebook-file-path/60543 "2021-12-23T13:39:17Z")

</div>

Hello, I would like to get the filepath for the current Pluto notebook. Is there a way to get this information? Thanks Michel PS: My purpose is to write a SaveAsIpynb function that would keep a Jupyter notebook cop…

---

## [Extension of ^-operator for Vector{Vector{Real}}](https://discourse.julialang.org/t/extension-of-operator-for-vector-vector-real/73523)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 4\
**Last updated:** [December 23, 2021, 12:39pm UTC](https://discourse.julialang.org/t/extension-of-operator-for-vector-vector-real/73523 "2021-12-23T12:39:45Z")

</div>

Hi, I would like to extend the ^-operator for Vector{Vector{Real}}. I tried the following implementation, but I get an error message :MethodError: no method matching ^(::Vector{Vector{Int16}}, ::Int64). import Base:^ …

---

## [How to debug internal runtime error?](https://discourse.julialang.org/t/how-to-debug-internal-runtime-error/73511)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 4\
**Last updated:** [December 23, 2021, 7:11am UTC](https://discourse.julialang.org/t/how-to-debug-internal-runtime-error/73511 "2021-12-23T07:11:02Z")

</div>

Can anyone point me to how to find the source of a runtime error? Meaning, is there some tool I can use to interrogate this, like I would with @code\_typed or a debugger, if it weren’t a runtime error? I’m struggling to …

---

## [Rotate grid in plots](https://discourse.julialang.org/t/rotate-grid-in-plots/73454)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 7\
**Last updated:** [December 23, 2021, 9:42am UTC](https://discourse.julialang.org/t/rotate-grid-in-plots/73454 "2021-12-23T09:42:45Z")

</div>

I would like to superimpose a rotated grid to represent an alternative coordinate system in a plot. Right now I essentially translate an angle to a slope and plot the lines. When the angle parameter theta is zero, the gr…

---

## [Basic plot function in NetworkLayout.jl not working](https://discourse.julialang.org/t/basic-plot-function-in-networklayout-jl-not-working/73515)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 1\
**Last updated:** [December 23, 2021, 7:57am UTC](https://discourse.julialang.org/t/basic-plot-function-in-networklayout-jl-not-working/73515 "2021-12-23T07:57:15Z")

</div>

I am having trouble executing even the most basic commands in the NetworkLayout package. The following code is verbatim from the package’s documentation page. using CairoMakie using NetworkLayout using GraphMakie, Light…

---

## [Add a package of low version](https://discourse.julialang.org/t/add-a-package-of-low-version/73514)

<div class="topic-metadata">

**Author:** [@19801208812](https://discourse.julialang.org/u/19801208812)\
**Replies:** 2\
**Last updated:** [December 23, 2021, 3:10am UTC](https://discourse.julialang.org/t/add-a-package-of-low-version/73514 "2021-12-23T03:10:40Z")

</div>

I asked about downloading a low-version package yesterday, that is, I want to add a package Pkg.add(Pkg.PackageSpec(url=“GitHub - jbmuir/EnsembleKalmanInversion.jl: Ensemble Kalman Inversion in Julia”)) The error is as s…

---

## [How can I adjust the resolution of PyPlot.jl in Pluto?](https://discourse.julialang.org/t/how-can-i-adjust-the-resolution-of-pyplot-jl-in-pluto/73495)

<div class="topic-metadata">

**Author:** [@Minghao\_Du](https://discourse.julialang.org/u/Minghao_Du)\
**Replies:** 3\
**Last updated:** [December 23, 2021, 1:41am UTC](https://discourse.julialang.org/t/how-can-i-adjust-the-resolution-of-pyplot-jl-in-pluto/73495 "2021-12-23T01:41:35Z")

</div>

How to adjust the resolution of PyPlot in Pluto? import PyPlot as plt let X=collect(0:0.01:10) plt.clf() plt.plot(X,sin.(exp.(X/3))) figure=plt.gcf() end

---

## [Task not runnable error](https://discourse.julialang.org/t/task-not-runnable-error/73506)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 3\
**Last updated:** [December 23, 2021, 1:38am UTC](https://discourse.julialang.org/t/task-not-runnable-error/73506 "2021-12-23T01:38:37Z")

</div>

Hi folks, I have a task that says it’s runnable, but I get a task not runnable error: julia\> task = @task readline(stdin) Task (runnable) @0x000000010f798010 julia\> yield(task) julia\> task Task (runnable) @0x000000010…

---

## [Executing a vector of expressions: some benchmarks](https://discourse.julialang.org/t/executing-a-vector-of-expressions-some-benchmarks/73500)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 11\
**Last updated:** [December 22, 2021, 10:55pm UTC](https://discourse.julialang.org/t/executing-a-vector-of-expressions-some-benchmarks/73500 "2021-12-22T22:55:50Z")

</div>

A code generates a vector of expressions. What is the fastest way to execute them as a function? Below are some ideas with their benchmarks. @btime fun\_func($a) # 6.500 ns (0 allocations: 0 bytes) @btime fu…

---

## [Pattern-based programming](https://discourse.julialang.org/t/pattern-based-programming/73493)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 10\
**Last updated:** [December 22, 2021, 10:33pm UTC](https://discourse.julialang.org/t/pattern-based-programming/73493 "2021-12-22T22:33:56Z")

</div>

Hi. Just curious: Is it possible to harness the Julia dispatcher as an inference engine by placing restrictions on function arguments to create a rule-based program? So for example I might implement the Greatest Common D…

---

## [Parallel simulation : coroutine vs multi-threading](https://discourse.julialang.org/t/parallel-simulation-coroutine-vs-multi-threading/73466)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 4\
**Last updated:** [December 22, 2021, 10:00pm UTC](https://discourse.julialang.org/t/parallel-simulation-coroutine-vs-multi-threading/73466 "2021-12-22T22:00:40Z")

</div>

Hi, community! I’m usually using DiffEq.jl to perform dynamical system simulation. To perform simulation with multiple conditions simultaneously (to reduce the overall wall time), I often use multi-threading via Transdu…

---

## [Hessian Vector products in Flux with Zygote](https://discourse.julialang.org/t/hessian-vector-products-in-flux-with-zygote/40242)

<div class="topic-metadata">

**Author:** [@DR59](https://discourse.julialang.org/u/DR59)\
**Replies:** 4\
**Last updated:** [December 22, 2021, 9:29pm UTC](https://discourse.julialang.org/t/hessian-vector-products-in-flux-with-zygote/40242 "2021-12-22T21:29:03Z")

</div>

Hi, I’m trying to update some of my code that uses Flux models and HVPs. With Tracker as the backend (i.e. the old version of Flux), this was possible. I’m unsure how to implement similar functionality with Zygote. Any h…

---

## [Zygote gradients with ensemble ODEs](https://discourse.julialang.org/t/zygote-gradients-with-ensemble-odes/65062)

<div class="topic-metadata">

**Author:** [@PavanChaggar](https://discourse.julialang.org/u/PavanChaggar)\
**Replies:** 16\
**Last updated:** [December 22, 2021, 9:24pm UTC](https://discourse.julialang.org/t/zygote-gradients-with-ensemble-odes/65062 "2021-12-22T21:24:34Z")

</div>

Hey, I’ve been doing some work on getting zygote gradients from ensemble problems. I tried extending the first example in the docs for local sensitivities but I’m getting an error that I’m not sure how to solve. I’m not…

---

## [LSP with Neovim keeps crashing](https://discourse.julialang.org/t/lsp-with-neovim-keeps-crashing/73496)

<div class="topic-metadata">

**Author:** [@davibarreira](https://discourse.julialang.org/u/davibarreira)\
**Replies:** 1\
**Last updated:** [December 22, 2021, 7:06pm UTC](https://discourse.julialang.org/t/lsp-with-neovim-keeps-crashing/73496 "2021-12-22T19:06:29Z")

</div>

I’m using LSP with Neovim, but for some reason, it keeps crashing when I’m using it in the package I’m developing. I couldn’t pin point what exactly is causing the crash, but here is the first log message that I get as s…

---

## [How to create a function from a vector of expressions?](https://discourse.julialang.org/t/how-to-create-a-function-from-a-vector-of-expressions/73457)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 3\
**Last updated:** [December 22, 2021, 5:16pm UTC](https://discourse.julialang.org/t/how-to-create-a-function-from-a-vector-of-expressions/73457 "2021-12-22T17:16:35Z")

</div>

From How do I create a function from an expression - General Usage - JuliaLang function genfun(expr, args::Tuple, gs=gensym()) eval(Expr(:function,Expr(:call, gs, args...),expr)) (args...) -\> Base.invokelatest(…

---

## [Using Makie for Allotaxonometry](https://discourse.julialang.org/t/using-makie-for-allotaxonometry/73453)

<div class="topic-metadata">

**Author:** [@jstonge](https://discourse.julialang.org/u/jstonge)\
**Replies:** 3\
**Last updated:** [December 22, 2021, 5:01pm UTC](https://discourse.julialang.org/t/using-makie-for-allotaxonometry/73453 "2021-12-22T17:01:21Z")

</div>

Hi, As part of a small project of mine, I want to replicate a figure in a paper using Makie (this paper and these figures). The idea of allotaxonometry plots is that you compare two systems that are zipf distributed (in…

---

## [Unique! and count](https://discourse.julialang.org/t/unique-and-count/73440)

<div class="topic-metadata">

**Author:** [@hieun](https://discourse.julialang.org/u/hieun)\
**Replies:** 5\
**Last updated:** [December 22, 2021, 4:20pm UTC](https://discourse.julialang.org/t/unique-and-count/73440 "2021-12-22T16:20:59Z")

</div>

Hi, I’m trying to determine unique counts of values in an array as an example, given the following array data = \[‘a’, ‘b’, ‘a’, ‘c’\] i wanna get: unique\_array = \[‘a’, ‘b’, ‘c’\] and count\_array = \[2,1,1\] in python I …

---

## [CSV.Rows usage & Tables.jl interface](https://discourse.julialang.org/t/csv-rows-usage-tables-jl-interface/72120)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 8\
**Last updated:** [December 22, 2021, 2:28pm UTC](https://discourse.julialang.org/t/csv-rows-usage-tables-jl-interface/72120 "2021-12-22T14:28:59Z")

</div>

Hello, I am newbie in julia so please bare with me. I am trying to read a csv file which includes a fairly large taxi data about 124M lines. I would like to read line by line. According to documentation, I should be u…

---

## [How to use PyPlot.jl to draw the graph of DifferentialEquations](https://discourse.julialang.org/t/how-to-use-pyplot-jl-to-draw-the-graph-of-differentialequations/73487)

<div class="topic-metadata">

**Author:** [@Minghao\_Du](https://discourse.julialang.org/u/Minghao_Du)\
**Replies:** 3\
**Last updated:** [December 22, 2021, 2:59pm UTC](https://discourse.julialang.org/t/how-to-use-pyplot-jl-to-draw-the-graph-of-differentialequations/73487 "2021-12-22T14:59:13Z")

</div>

The sol of the “DifferentialEquations.jl” package can be nicely drawn with Plots, like the following But if you use the “PyPlot.jl” package, how do you draw the sol curve? The IDE I use is Pluto using DifferentialE…

---

## [Current upsampling layers](https://discourse.julialang.org/t/current-upsampling-layers/73286)

<div class="topic-metadata">

**Author:** [@Avec](https://discourse.julialang.org/u/Avec)\
**Replies:** 4\
**Last updated:** [December 22, 2021, 2:18pm UTC](https://discourse.julialang.org/t/current-upsampling-layers/73286 "2021-12-22T14:18:22Z")

</div>

Hi, what are the current options for upsampling layers in Flux that run on GPU? I am using ConvTranspose, but I would like to try out something else. I found Upsample(scale, mode) in documentation but it is extremely sl…

---

## [Reading a large JSON file make Julia crashing](https://discourse.julialang.org/t/reading-a-large-json-file-make-julia-crashing/73424)

<div class="topic-metadata">

**Author:** [@tlorans](https://discourse.julialang.org/u/tlorans)\
**Replies:** 10\
**Last updated:** [December 22, 2021, 1:55pm UTC](https://discourse.julialang.org/t/reading-a-large-json-file-make-julia-crashing/73424 "2021-12-22T13:55:35Z")

</div>

Hello everyone, I’m trying to read and select a subset of a large JSON file from here. The result is a Dataframe of few lines (1600+) according to the game selected. However, I cannot reuse my process as after a first r…

---

## [Anything to read on suggested solutions to inter-process communications](https://discourse.julialang.org/t/anything-to-read-on-suggested-solutions-to-inter-process-communications/73455)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 6\
**Last updated:** [December 22, 2021, 12:57pm UTC](https://discourse.julialang.org/t/anything-to-read-on-suggested-solutions-to-inter-process-communications/73455 "2021-12-22T12:57:40Z")

</div>

Hi there struggling with my architecture and would like to do a little reading. I have existing Python scripts which login to a brokerage api and get me real time data which I use for calculations. I am thinking about …

---

## [NEW: JuliaPerformance launched, an IT consultancy for Julia in Germany and Central Europe](https://discourse.julialang.org/t/new-juliaperformance-launched-an-it-consultancy-for-julia-in-germany-and-central-europe/73476)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [December 22, 2021, 12:30pm UTC](https://discourse.julialang.org/t/new-juliaperformance-launched-an-it-consultancy-for-julia-in-germany-and-central-europe/73476 "2021-12-22T12:30:43Z")

</div>

I am very happy to announce the launch of the IT consulting company JuliaPerformance, dedicated entirely to the Julia programming language. JuliaPerformance is active in Germany, the DACH region, and Central Europe. Y…

---

## [Package to format simple text output](https://discourse.julialang.org/t/package-to-format-simple-text-output/73481)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 3\
**Last updated:** [December 22, 2021, 11:55am UTC](https://discourse.julialang.org/t/package-to-format-simple-text-output/73481 "2021-12-22T11:55:38Z")

</div>

Ok, there is the nice module PrettyTables, but it seems that I am looking for something else. I would like to structure my text output regarding column width and I would like to plot separation lines. At the end I gave…

---

## [EAGO.jl: LoadError: Invalid upper bound value NaN](https://discourse.julialang.org/t/eago-jl-loaderror-invalid-upper-bound-value-nan/73403)

<div class="topic-metadata">

**Author:** [@mvsoom](https://discourse.julialang.org/u/mvsoom)\
**Replies:** 4\
**Last updated:** [December 22, 2021, 11:19am UTC](https://discourse.julialang.org/t/eago-jl-loaderror-invalid-upper-bound-value-nan/73403 "2021-12-22T11:19:12Z")

</div>

I’ve been trying to solve the following nonlinear optimization program with EAGO.jl in order to find a global solution: using JuMP using EAGO model = Model(EAGO.Optimizer) n = 2 r = 0.15 @variable(model, 0 \<= e…

---

## [Julia version compatibilty entry in 'Project.toml' does not have expected effect](https://discourse.julialang.org/t/julia-version-compatibilty-entry-in-project-toml-does-not-have-expected-effect/73475)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 1\
**Last updated:** [December 22, 2021, 11:14am UTC](https://discourse.julialang.org/t/julia-version-compatibilty-entry-in-project-toml-does-not-have-expected-effect/73475 "2021-12-22T11:14:14Z")

</div>

I’m working on a project that uses Turing.jl as one of it’s dependencies. Turing is as of today not compatible with Julia 1.7, so I’m working with 1.5.4 at the moment. In ‘Project.toml’ I have tried to make that compatib…

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

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