# Latest

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

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

**Page:** 1249

---

## [\[ANN\] ForecastPlots: Collection of plot functionalities for time series analysis](https://discourse.julialang.org/t/ann-forecastplots-collection-of-plot-functionalities-for-time-series-analysis/68940)

<div class="topic-metadata">

**Author:** [@viraltux](https://discourse.julialang.org/u/viraltux)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 6:04am UTC](https://discourse.julialang.org/t/ann-forecastplots-collection-of-plot-functionalities-for-time-series-analysis/68940 "2021-09-30T06:04:53Z")

</div>

ForecastPlots.lj has been created in the process of decoupling functionality from Forecast.jl. The package contains a collection of basic plots for time series analysis. Some of these functionalities also return the dat…

---

## [How to deal with discontinuities in contour plot?](https://discourse.julialang.org/t/how-to-deal-with-discontinuities-in-contour-plot/69022)

<div class="topic-metadata">

**Author:** [@vini-fda](https://discourse.julialang.org/u/vini-fda)\
**Replies:** 12\
**Last updated:** [October 4, 2021, 9:22pm UTC](https://discourse.julialang.org/t/how-to-deal-with-discontinuities-in-contour-plot/69022 "2021-10-04T21:22:53Z")

</div>

I’m a making a plot of a complex function which has a branch cut discontinuity, and unfortunately it is not easy to parameterize its contour lines, so I rely on calculating the function on the given domain, then taking t…

---

## [Passing "dynamic" argument to function in Optim.jl](https://discourse.julialang.org/t/passing-dynamic-argument-to-function-in-optim-jl/69202)

<div class="topic-metadata">

**Author:** [@Gabriel\_Kreindler](https://discourse.julialang.org/u/Gabriel_Kreindler)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 8:16pm UTC](https://discourse.julialang.org/t/passing-dynamic-argument-to-function-in-optim-jl/69202 "2021-10-04T20:16:08Z")

</div>

Hello, I have an objective function that solves for a vector z using an iterative algorithm. I then feed this into optimize(). I can use a “static” starting guess z0 that I set before calling optimize. However, it might…

---

## [DSP package filt vs. filtfilt](https://discourse.julialang.org/t/dsp-package-filt-vs-filtfilt/69199)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 5\
**Last updated:** [October 4, 2021, 7:45pm UTC](https://discourse.julialang.org/t/dsp-package-filt-vs-filtfilt/69199 "2021-10-04T19:45:58Z")

</div>

I am wondering how I need to modify the a and b vectors to make filtfilt give the same amplitude as filt. A minimum working example is: using DSP using Plots ω1 = 2 \* π \* 15 ω2 = 2 \* π \* 21 t = 0:1/400:1 fs = 1/(t\[2\]-…

---

## [LoadError: Can't differentiate loopinfo expression](https://discourse.julialang.org/t/loaderror-cant-differentiate-loopinfo-expression/69067)

<div class="topic-metadata">

**Author:** [@Tyler\_Ingebrand](https://discourse.julialang.org/u/Tyler_Ingebrand)\
**Replies:** 8\
**Last updated:** [October 4, 2021, 7:17pm UTC](https://discourse.julialang.org/t/loaderror-cant-differentiate-loopinfo-expression/69067 "2021-10-04T19:17:53Z")

</div>

When trying to run the code: (from an example) using DeepQLearning using POMDPs using Flux using POMDPModels using POMDPSimulators using POMDPPolicies # load MDP model from POMDPModels or define your own! mdp = SimpleG…

---

## [Forcing type declaration in Julia](https://discourse.julialang.org/t/forcing-type-declaration-in-julia/69095)

<div class="topic-metadata">

**Author:** [@amit1](https://discourse.julialang.org/u/amit1)\
**Replies:** 19\
**Last updated:** [October 4, 2021, 7:02pm UTC](https://discourse.julialang.org/t/forcing-type-declaration-in-julia/69095 "2021-10-04T19:02:34Z")

</div>

I was pitching Julia as a viable option to my PI. The biggest potential problem they foresaw was same issues as with python, dynamic typing of variables. As most of our codes will be authored by multiple people, I would…

---

## [Writing to CSV files and plotting are getting slower in every run](https://discourse.julialang.org/t/writing-to-csv-files-and-plotting-are-getting-slower-in-every-run/68711)

<div class="topic-metadata">

**Author:** [@fksayaci](https://discourse.julialang.org/u/fksayaci)\
**Replies:** 17\
**Last updated:** [October 4, 2021, 6:08pm UTC](https://discourse.julialang.org/t/writing-to-csv-files-and-plotting-are-getting-slower-in-every-run/68711 "2021-10-04T18:08:39Z")

</div>

Hi, I am using an HPC cluster to solve an optimization model. Usually, solving an optimization model takes hours, and writing results to CSV files takes only minutes. However, it is reverse in my case. Let me show time …

---

## [Can't get isequal to compare custom struct with Int](https://discourse.julialang.org/t/cant-get-isequal-to-compare-custom-struct-with-int/69178)

<div class="topic-metadata">

**Author:** [@pbal](https://discourse.julialang.org/u/pbal)\
**Replies:** 5\
**Last updated:** [October 4, 2021, 5:45pm UTC](https://discourse.julialang.org/t/cant-get-isequal-to-compare-custom-struct-with-int/69178 "2021-10-04T17:45:32Z")

</div>

I am having trouble getting isequal to work for a user created struct. Below is an example that shows what I’m doing. I don’t understand what I’m doing wrong. struct MyStruct value::Int end import Base.+ (+)(x::M…

---

## [How to read numerical values out of a NetCDF file and convert them into logical values?](https://discourse.julialang.org/t/how-to-read-numerical-values-out-of-a-netcdf-file-and-convert-them-into-logical-values/69153)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 3\
**Last updated:** [October 4, 2021, 5:01pm UTC](https://discourse.julialang.org/t/how-to-read-numerical-values-out-of-a-netcdf-file-and-convert-them-into-logical-values/69153 "2021-10-04T17:01:07Z")

</div>

I have a land mask that is created using Matlab. Because NetCDF does not allow the use of “logical” data type, I had to store them as float values. My question is in Julia, how do I convert these 1 and 0 values on a m …

---

## [Fall in love with Julia: Reactive Pluto Notebooks](https://discourse.julialang.org/t/fall-in-love-with-julia-reactive-pluto-notebooks/68453)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [October 4, 2021, 4:25pm UTC](https://discourse.julialang.org/t/fall-in-love-with-julia-reactive-pluto-notebooks/68453 "2021-10-04T16:25:42Z")

</div>

Join our Meetup from the Julia User Group Munich this is 100% introductory level, targeting people who have never used Pluto. Spread the news and invite people to join. Everything is online and organized via meetup T…

---

## [Forwarding & invoking a block of code](https://discourse.julialang.org/t/forwarding-invoking-a-block-of-code/69185)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 1:44pm UTC](https://discourse.julialang.org/t/forwarding-invoking-a-block-of-code/69185 "2021-10-04T13:44:01Z")

</div>

I’m writing a wrapper function for a macro, that can be invoked, for instance as @snoopl "/tmp/a.txt" "/tmp/b.txt" println("Helloworld"). Now when trying to wrap it, it fails with the error ERROR: UndefVarError: code\_blo…

---

## [Makie: Multiline plots, subplots and attributes examples](https://discourse.julialang.org/t/makie-multiline-plots-subplots-and-attributes-examples/69113)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 11\
**Last updated:** [October 4, 2021, 12:12pm UTC](https://discourse.julialang.org/t/makie-multiline-plots-subplots-and-attributes-examples/69113 "2021-10-04T12:12:16Z")

</div>

I wanted some convenience in plotting several lines into one plot or several subplots. Since Plots.jl does not yet serve the Makie backend, I wrote the functions below. My first experiments with Makie, did I waste a lo…

---

## [Interactive network visualization](https://discourse.julialang.org/t/interactive-network-visualization/49054)

<div class="topic-metadata">

**Author:** [@elkaps](https://discourse.julialang.org/u/elkaps)\
**Replies:** 22\
**Last updated:** [October 4, 2021, 11:56am UTC](https://discourse.julialang.org/t/interactive-network-visualization/49054 "2021-10-04T11:56:57Z")

</div>

I’m looking for a way to visualize networks while being able to add/remove/move vertices interactively. I’ve seen NetworkViz but it doesn’t look maintained anymore. Would it be possible to use GraphRecipes by getting t…

---

## [Strange order of operations on SymPy.jl / multiplication with a(1/a)](https://discourse.julialang.org/t/strange-order-of-operations-on-sympy-jl-multiplication-with-a-1-a/69157)

<div class="topic-metadata">

**Author:** [@Brian\_Toomey](https://discourse.julialang.org/u/Brian_Toomey)\
**Replies:** 4\
**Last updated:** [October 4, 2021, 11:43am UTC](https://discourse.julialang.org/t/strange-order-of-operations-on-sympy-jl-multiplication-with-a-1-a/69157 "2021-10-04T11:43:39Z")

</div>

In SymPy.jl I’m seeing a strange order of operations. Is there a way to have a(1/a) == 1 or do I always need to explicitly include the \* operator before the parentheses? Thanks! using SymPy @vars a a(1/a) == 1 / a # == …

---

## [Tracing of optimization algorithm with @debug](https://discourse.julialang.org/t/tracing-of-optimization-algorithm-with-debug/69184)

<div class="topic-metadata">

**Author:** [@stepanzh](https://discourse.julialang.org/u/stepanzh)\
**Replies:** 0\
**Last updated:** [October 4, 2021, 11:32am UTC](https://discourse.julialang.org/t/tracing-of-optimization-algorithm-with-debug/69184 "2021-10-04T11:32:26Z")

</div>

I’m debugging a constatined-optimization algorithm of CubicEoS.jl package. The code is heavily logged with @debug macro. Each of @debug-entry has a unique message like newton or backtracking… I want to post-process log…

---

## [NetCDF file created in Matlab is read differently by Julia?](https://discourse.julialang.org/t/netcdf-file-created-in-matlab-is-read-differently-by-julia/69162)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 5\
**Last updated:** [October 4, 2021, 11:18am UTC](https://discourse.julialang.org/t/netcdf-file-created-in-matlab-is-read-differently-by-julia/69162 "2021-10-04T11:18:54Z")

</div>

I have a NetCDF file that is created using Matlab and it is composed of 'double" values of 1 and 0. I can read the values as they are without any issues inside Matlab. However, when I tried to read it using Julia, their…

---

## [How to avoid this code duplication?](https://discourse.julialang.org/t/how-to-avoid-this-code-duplication/69171)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 10:54am UTC](https://discourse.julialang.org/t/how-to-avoid-this-code-duplication/69171 "2021-10-04T10:54:21Z")

</div>

Hi, The following Makie code appends subplots to existing plots. Working, but… Code duplication was needed for the optional parameter in the first position function output was needed because mutation of input pa…

---

## [SimulatedAnnealing (and SAMIN) claims "Status Failure", but output seems to be OK?](https://discourse.julialang.org/t/simulatedannealing-and-samin-claims-status-failure-but-output-seems-to-be-ok/69146)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [October 4, 2021, 10:28am UTC](https://discourse.julialang.org/t/simulatedannealing-and-samin-claims-status-failure-but-output-seems-to-be-ok/69146 "2021-10-04T10:28:08Z")

</div>

I am trying to get SimulatedAnnealing to work for an optimisation problem, so I first look at a basic example. using Optim f(x) = (1.0 - x\[1\])^2 + 100.0 \* (x\[2\] - x\[1\]^2)^2 This works fine: x0 = \[0.0,0.0\] res = optimi…

---

## [Garbage collector freeing rooted data?](https://discourse.julialang.org/t/garbage-collector-freeing-rooted-data/69176)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 0\
**Last updated:** [October 4, 2021, 9:54am UTC](https://discourse.julialang.org/t/garbage-collector-freeing-rooted-data/69176 "2021-10-04T09:54:11Z")

</div>

Hi, last weekend I tried to use Plots/PyPlot when embedding Julia. I’ve written a function that takes a plot function and an arbitrary number of (keyword) arguments, which simply calls the given function with the provide…

---

## [VSCODE debugger seems stopped at first USING statement](https://discourse.julialang.org/t/vscode-debugger-seems-stopped-at-first-using-statement/52609)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 9:48am UTC](https://discourse.julialang.org/t/vscode-debugger-seems-stopped-at-first-using-statement/52609 "2021-10-04T09:48:03Z")

</div>

The debugging session ends here immediately after the start after pressing F5 the indication paused on exception appears this is the code involved if someone would give a try. using Dates using DataFrames full\_ind…

---

## [Reinterpret\_cast](https://discourse.julialang.org/t/reinterpret-cast/69169)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 8:41am UTC](https://discourse.julialang.org/t/reinterpret-cast/69169 "2021-10-04T08:41:17Z")

</div>

suppose I have a function such as function foo(::A);, I’d like to check how it is compiled with @code\_llvm foo(a), but I don’t know or care how to create an instance of the class A. Is there a way to achieve that without…

---

## [Juno does not display all of unicode](https://discourse.julialang.org/t/juno-does-not-display-all-of-unicode/69093)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 7:41am UTC](https://discourse.julialang.org/t/juno-does-not-display-all-of-unicode/69093 "2021-10-04T07:41:53Z")

</div>

Since I installed Juno I have not been able to see all the available unicode characters. I attached a simple example of my problem. Some background: I’m using Version 1.4.1 in macOS Catalina Screen Shot 2021-10-02 at …

---

## [Is there a function to resolve a uuid to a package name and repository?](https://discourse.julialang.org/t/is-there-a-function-to-resolve-a-uuid-to-a-package-name-and-repository/69143)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 7:28am UTC](https://discourse.julialang.org/t/is-there-a-function-to-resolve-a-uuid-to-a-package-name-and-repository/69143 "2021-10-04T07:28:32Z")

</div>

Is there any function that given the uuid of a package resolves to its name and its git repository, default to the registry in use ?

---

## [Too many resources requested for launch](https://discourse.julialang.org/t/too-many-resources-requested-for-launch/69100)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 5:51am UTC](https://discourse.julialang.org/t/too-many-resources-requested-for-launch/69100 "2021-10-04T05:51:07Z")

</div>

I get “too many resources requested for launch” in CUDA.jl kernel when I try to either set value to the array set in global memory like mainWorkQueue\[1,1\]=1 OR print anything using CUDA.@cuprint “aa” I suspect …

---

## [Is there a package for fractional calculus?](https://discourse.julialang.org/t/is-there-a-package-for-fractional-calculus/19702)

<div class="topic-metadata">

**Author:** [@phelipe](https://discourse.julialang.org/u/phelipe)\
**Replies:** 10\
**Last updated:** [October 4, 2021, 5:46am UTC](https://discourse.julialang.org/t/is-there-a-package-for-fractional-calculus/19702 "2021-10-04T05:46:20Z")

</div>

Is there any package for fractional derivatives?

---

## [I encountered a problem when using a convolutional neural network for training by using Flux package](https://discourse.julialang.org/t/i-encountered-a-problem-when-using-a-convolutional-neural-network-for-training-by-using-flux-package/69163)

<div class="topic-metadata">

**Author:** [@wondering](https://discourse.julialang.org/u/wondering)\
**Replies:** 0\
**Last updated:** [October 4, 2021, 2:37am UTC](https://discourse.julialang.org/t/i-encountered-a-problem-when-using-a-convolutional-neural-network-for-training-by-using-flux-package/69163 "2021-10-04T02:37:48Z")

</div>

using Flux, DifferentialEquations, DiffEqSensitivity model = Chain(Conv((3,), 2 =\> N, relu, pad = SamePad()), ) p, re = Flux.destructure(model) ps = Flux.params(p) function ODE(du, u, p, t) Mat = re(p)(rand(N, 2, 1…

---

## [Fully lost with custom broadcasting interface](https://discourse.julialang.org/t/fully-lost-with-custom-broadcasting-interface/69140)

<div class="topic-metadata">

**Author:** [@tpoisot](https://discourse.julialang.org/u/tpoisot)\
**Replies:** 3\
**Last updated:** [October 3, 2021, 8:48pm UTC](https://discourse.julialang.org/t/fully-lost-with-custom-broadcasting-interface/69140 "2021-10-03T20:48:47Z")

</div>

I am trying to implement custom broadcasting for a type, and after spending a few hours with the doc I am well and truly lost. My type looks like this: struct XYZ{T} data::Matrix{Union{T,Nothing}} x::Number …

---

## [Loci programming language, C++ with more dynamic templates?](https://discourse.julialang.org/t/loci-programming-language-c-with-more-dynamic-templates/69147)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 1\
**Last updated:** [October 3, 2021, 7:00pm UTC](https://discourse.julialang.org/t/loci-programming-language-c-with-more-dynamic-templates/69147 "2021-10-03T19:00:42Z")

</div>

Here is some discussion about C++ templates, and a different language that solves some pain points of using templates. This section in particular stood out to me Run-time Templates One of the biggest steps taken in Loc…

---

## [How to set lower and upper bound for SimulatedAnnealing OptimizationProblem's? Tired "lu=" and "ub=" but doesn't seem to work](https://discourse.julialang.org/t/how-to-set-lower-and-upper-bound-for-simulatedannealing-optimizationproblems-tired-lu-and-ub-but-doesnt-seem-to-work/69134)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [October 3, 2021, 5:42pm UTC](https://discourse.julialang.org/t/how-to-set-lower-and-upper-bound-for-simulatedannealing-optimizationproblems-tired-lu-and-ub-but-doesnt-seem-to-work/69134 "2021-10-03T17:42:03Z")

</div>

This is the sampel code: using GalacticOptim, Optim function tmp(x,p) return (x\[1\]-2)^2 end prob = OptimizationProblem(tmp,\[4.\],lb=\[3\],ub=\[6\]) res = solve(prob,SimulatedAnnealing()) the result is correct 1.99822287…

---

## [How to link the x-axis of subplots using Plots?](https://discourse.julialang.org/t/how-to-link-the-x-axis-of-subplots-using-plots/68906)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 4\
**Last updated:** [October 3, 2021, 5:35pm UTC](https://discourse.julialang.org/t/how-to-link-the-x-axis-of-subplots-using-plots/68906 "2021-10-03T17:35:39Z")

</div>

Essential for zooming in subplots. The command in Matlab is linkaxes(subplots, ‘x’); Plot, then zoom, without “link”: using Plots plotlyjs() plot(rand(100, 4), layout = (4, 1))

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

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