# Latest

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

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

**Page:** 1303

---

## [Automatic differentiation of \`cispi\`](https://discourse.julialang.org/t/automatic-differentiation-of-cispi/66075)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 3:43pm UTC](https://discourse.julialang.org/t/automatic-differentiation-of-cispi/66075 "2021-08-11T15:43:20Z")

</div>

I think the rrule for cispi seems to be missing. Maybe it should be included in the basic set of rules? function loss2(data) sum(abs.(cispi.(data))) end data = ones(2,2) loss2(data) gradient(loss2, data) yields: j…

---

## [Segmentation fault after update in Juno](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072)

<div class="topic-metadata">

**Author:** [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Replies:** 14\
**Last updated:** [August 11, 2021, 3:09pm UTC](https://discourse.julialang.org/t/segmentation-fault-after-update-in-juno/35072 "2021-08-11T15:09:29Z")

</div>

I have upgraded julia-client package in Atom. There was a prompt to upgrade Atom package in Juno (using Pkg.update). And afterwards Atom Repl gives segmentation fault when doing using Plots and pressing any button. The s…

---

## [@generated function - iterate over function argument](https://discourse.julialang.org/t/generated-function-iterate-over-function-argument/66087)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 9\
**Last updated:** [August 11, 2021, 3:06pm UTC](https://discourse.julialang.org/t/generated-function-iterate-over-function-argument/66087 "2021-08-11T15:06:14Z")

</div>

Hi there, I would like to learn a bit more about generated functions. My goal is to convert a struct into a tuple. I already achieved that if I want to convert all fields struct Teststruct{A,B,C} a :: A b :…

---

## [N-dim dict](https://discourse.julialang.org/t/n-dim-dict/66186)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 2:40pm UTC](https://discourse.julialang.org/t/n-dim-dict/66186 "2021-08-11T14:40:56Z")

</div>

Hey all :slight\_smile: I’m looking for something similar like a Array{T,N} but I want to index it with something hashable. I also want to do something like dict\[A("key"), :\] to get everything from the second dimension w…

---

## [REPL with the testing enviroment of a package](https://discourse.julialang.org/t/repl-with-the-testing-enviroment-of-a-package/66200)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 2\
**Last updated:** [August 11, 2021, 1:51pm UTC](https://discourse.julialang.org/t/repl-with-the-testing-enviroment-of-a-package/66200 "2021-08-11T13:51:54Z")

</div>

Is there a way to activate the environment which is used for tests in a REPL (i.e. loading the packages specified in the \[extra\] section of Project.toml)? (or, asked differently: When you work on PRs, in which environme…

---

## [Convert n number of 1\*1 matrices to one n\*1 vector](https://discourse.julialang.org/t/convert-n-number-of-1-1-matrices-to-one-n-1-vector/66182)

<div class="topic-metadata">

**Author:** [@Chaitanya](https://discourse.julialang.org/u/Chaitanya)\
**Replies:** 7\
**Last updated:** [August 11, 2021, 1:30pm UTC](https://discourse.julialang.org/t/convert-n-number-of-1-1-matrices-to-one-n-1-vector/66182 "2021-08-11T13:30:41Z")

</div>

k=collect(0:0.1:1) u is a neural network. pred=(u.(k)) 11-element Vector{Matrix{Float64}}: \[-0.48909483506995793\] \[-0.46596887211781113\] \[-0.44329630895872524\] \[-0.4211157735999599\] \[-0.39946203623807897\] \[-0.378…

---

## [Questions about the use of MLJ](https://discourse.julialang.org/t/questions-about-the-use-of-mlj/66199)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 0\
**Last updated:** [August 11, 2021, 12:54pm UTC](https://discourse.julialang.org/t/questions-about-the-use-of-mlj/66199 "2021-08-11T12:54:02Z")

</div>

I want to use MLJ to realize a multivariate probabilistic prediction algorithm, and the input and output of the model are multi-dimensional matrix. For example, IF I want to combine LSTM and quantile regression algorith…

---

## [What functions might break ForwardDiff.jl?](https://discourse.julialang.org/t/what-functions-might-break-forwarddiff-jl/64694)

<div class="topic-metadata">

**Author:** [@Eemilp](https://discourse.julialang.org/u/Eemilp)\
**Replies:** 10\
**Last updated:** [August 11, 2021, 12:46pm UTC](https://discourse.julialang.org/t/what-functions-might-break-forwarddiff-jl/64694 "2021-08-11T12:46:48Z")

</div>

Hi, are there some julia functions that might cause problems for ForwardDiff.jl? I’m using ForwardDiff.jl to take the derivative of a simulation output. For some reason the output differs slightly in some parts of the cu…

---

## [Inconsitency in matrix multiplication](https://discourse.julialang.org/t/inconsitency-in-matrix-multiplication/66193)

<div class="topic-metadata">

**Author:** [@Joseph\_S\_Rebeirro](https://discourse.julialang.org/u/Joseph_S_Rebeirro)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 12:40pm UTC](https://discourse.julialang.org/t/inconsitency-in-matrix-multiplication/66193 "2021-08-11T12:40:27Z")

</div>

Hi All, I was playing with the Quantum optics package and I saw something weird So the resulting matrix is inconsistent in comparison with other CAS systems (Mathematica) Mathematica: # Spin operators Sx = 1/Sq…

---

## [Autocompletion in debug console](https://discourse.julialang.org/t/autocompletion-in-debug-console/66195)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 1\
**Last updated:** [August 11, 2021, 12:22pm UTC](https://discourse.julialang.org/t/autocompletion-in-debug-console/66195 "2021-08-11T12:22:01Z")

</div>

Hi everyone, Is it possible to have tab autocompletion (to local variables and functions) in the debug console during debugging? It doesn’t work for me but I tried searching around a bit and didn’t find any conclusive …

---

## [Intel C/C++ compiler performance versus Julia](https://discourse.julialang.org/t/intel-c-c-compiler-performance-versus-julia/61929)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 20\
**Last updated:** [August 11, 2021, 11:48am UTC](https://discourse.julialang.org/t/intel-c-c-compiler-performance-versus-julia/61929 "2021-08-11T11:48:35Z")

</div>

In a discussion today with some colleagues the subject of the Intel C/C++ compiler came up. The conventional wisdom in HPC still seems to be that Intel C/C++ produces native code with higher performance than, say, GCC or…

---

## [Dispatch checker](https://discourse.julialang.org/t/dispatch-checker/66191)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 8\
**Last updated:** [August 11, 2021, 11:27am UTC](https://discourse.julialang.org/t/dispatch-checker/66191 "2021-08-11T11:27:58Z")

</div>

Having managed to express your if typeof(v) by suitable dispatch calls, how do you check if they are correct or cover all possible cases? Of course, like in other programming languages, one can always code test cases. …

---

## [How to apply \`Iterators.drop\` on an \`Iterators.Stateful\`?](https://discourse.julialang.org/t/how-to-apply-iterators-drop-on-an-iterators-stateful/27144)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 5\
**Last updated:** [August 11, 2021, 10:20am UTC](https://discourse.julialang.org/t/how-to-apply-iterators-drop-on-an-iterators-stateful/27144 "2021-08-11T10:20:56Z")

</div>

See the following MWE: julia\> a = Iterators.Stateful("123456789"); julia\> b = Iterators.drop(a, 3) Base.Iterators.Drop{Base.Iterators.Stateful{String,Union{Nothing, Tuple{Char,Int64}}}}(Base.Iterators.Stateful{String,U…

---

## [Single index contraction in sparse matrix multiplication of multidimensional array](https://discourse.julialang.org/t/single-index-contraction-in-sparse-matrix-multiplication-of-multidimensional-array/66187)

<div class="topic-metadata">

**Author:** [@SMijin](https://discourse.julialang.org/u/SMijin)\
**Replies:** 0\
**Last updated:** [August 11, 2021, 9:43am UTC](https://discourse.julialang.org/t/single-index-contraction-in-sparse-matrix-multiplication-of-multidimensional-array/66187 "2021-08-11T09:43:56Z")

</div>

I’d like to be able to effectively do something like C\[a,b,c\] = A\[b,d\]\*B\[a,d,c\], where A is a sparse matrix, and C and B are dense (and C and B could be other ranks, including 1). This is indeed just contraction of a sin…

---

## [Solving inequations](https://discourse.julialang.org/t/solving-inequations/58410)

<div class="topic-metadata">

**Author:** [@statspy](https://discourse.julialang.org/u/statspy)\
**Replies:** 8\
**Last updated:** [August 11, 2021, 9:42am UTC](https://discourse.julialang.org/t/solving-inequations/58410 "2021-08-11T09:42:20Z")

</div>

is there a package to solve inequations in Julia? 2x + 3 \<= x + 7 answer: x\<= 4 Thanks

---

## [No method matching terminate!(::DiffEqSensitivity.FakeIntegrator](https://discourse.julialang.org/t/no-method-matching-terminate-diffeqsensitivity-fakeintegrator/66159)

<div class="topic-metadata">

**Author:** [@iqopi](https://discourse.julialang.org/u/iqopi)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 9:16am UTC](https://discourse.julialang.org/t/no-method-matching-terminate-diffeqsensitivity-fakeintegrator/66159 "2021-08-11T09:16:46Z")

</div>

Hey, i am trying to optimize the parameters of a Differential equation using the DiffEqFlux. Since i am only interested into the new steady state, i am using a callback to terminate the integration, once this new state…

---

## [Difference between include, use and import](https://discourse.julialang.org/t/difference-between-include-use-and-import/65918)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 9:05am UTC](https://discourse.julialang.org/t/difference-between-include-use-and-import/65918 "2021-08-11T09:05:35Z")

</div>

I read about include, use and import in Julia. It seems they can all be used to ‘import’ a module. But I am still not very clear the difference between include, use and import. if I have a module called Mymod, and I w…

---

## [How to make R, C, etc. parameters in Acausal Component-Based Model (ModelingToolkit example)](https://discourse.julialang.org/t/how-to-make-r-c-etc-parameters-in-acausal-component-based-model-modelingtoolkit-example/66115)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 6\
**Last updated:** [August 11, 2021, 9:04am UTC](https://discourse.julialang.org/t/how-to-make-r-c-etc-parameters-in-acausal-component-based-model-modelingtoolkit-example/66115 "2021-08-11T09:04:39Z")

</div>

Hello, I am trying to move my models to the new ModelingToolkit framework and so far everything works nicely and it creates the models nicely. For simplicity I refer here to the example as outlined in Acausal Component…

---

## [\[ANN\] Brillouin.jl: k-space utilities for crystalline eigenproblems](https://discourse.julialang.org/t/ann-brillouin-jl-k-space-utilities-for-crystalline-eigenproblems/64597)

<div class="topic-metadata">

**Author:** [@tchr](https://discourse.julialang.org/u/tchr)\
**Replies:** 6\
**Last updated:** [August 11, 2021, 7:52am UTC](https://discourse.julialang.org/t/ann-brillouin-jl-k-space-utilities-for-crystalline-eigenproblems/64597 "2021-08-11T07:52:22Z")

</div>

I wrote a small’ish package Brillouin.jl that is aimed at making the frequent task of determining and understanding paths and domains in k-space simpler and more streamlined. Specifically, it provides tools to easily: …

---

## [Julia shell command tar and pigz pipeline](https://discourse.julialang.org/t/julia-shell-command-tar-and-pigz-pipeline/66175)

<div class="topic-metadata">

**Author:** [@wuxinyu](https://discourse.julialang.org/u/wuxinyu)\
**Replies:** 2\
**Last updated:** [August 11, 2021, 7:34am UTC](https://discourse.julialang.org/t/julia-shell-command-tar-and-pigz-pipeline/66175 "2021-08-11T07:34:18Z")

</div>

I want to compress a folder in julia: tar -cvf - "source" | pigz -k -9 \> "source.tar.xz" where source is a folder I tried this in julia: run(pipeline(\`tar -cvf - "2001\_ A Space Odyssey"\` , \`pigz -k -9 \\\> "2001\_ A Spa…

---

## [Julia PhD course in Ecology and Evolution](https://discourse.julialang.org/t/julia-phd-course-in-ecology-and-evolution/65942)

<div class="topic-metadata">

**Author:** [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 7:20am UTC](https://discourse.julialang.org/t/julia-phd-course-in-ecology-and-evolution/65942 "2021-08-11T07:20:19Z")

</div>

Many of the people behind EcoJulia (and Jakob from BioJulia) will be giving a PhD course in Ecology and Evolution with Julia in Copenhagen this October. The course consists of 1 week of in-person teaching in Copenhagen, …

---

## [Can I make a named Union of Types](https://discourse.julialang.org/t/can-i-make-a-named-union-of-types/66177)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 7\
**Last updated:** [August 11, 2021, 6:51am UTC](https://discourse.julialang.org/t/can-i-make-a-named-union-of-types/66177 "2021-08-11T06:51:15Z")

</div>

I am learning how to make one library compatible with another. They both have different type hierarchies for representing a file path. One uses AbstractString, the other uses SystemPath for their abstract representation…

---

## [Loop over SafeTestsets](https://discourse.julialang.org/t/loop-over-safetestsets/66181)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 0\
**Last updated:** [August 11, 2021, 6:34am UTC](https://discourse.julialang.org/t/loop-over-safetestsets/66181 "2021-08-11T06:34:43Z")

</div>

When using SafeTestsets, is any way to do something like the following? for (name, file) in TESTS @safetestset name begin include(file) end end This (and any variation I’ve tried) always gives me ArgumentError: Us…

---

## [Plot the distribution curve](https://discourse.julialang.org/t/plot-the-distribution-curve/66133)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 7\
**Last updated:** [August 11, 2021, 6:16am UTC](https://discourse.julialang.org/t/plot-the-distribution-curve/66133 "2021-08-11T06:16:57Z")

</div>

How to draw a distribution curve？ such as a normal distribution, its format is: Distributions.Normal{Float64}(μ=-0.42117172154916505, σ=1.2253594150160463) thanks！

---

## [Trying to use isdigit](https://discourse.julialang.org/t/trying-to-use-isdigit/66169)

<div class="topic-metadata">

**Author:** [@dgpdx](https://discourse.julialang.org/u/dgpdx)\
**Replies:** 1\
**Last updated:** [August 11, 2021, 4:32am UTC](https://discourse.julialang.org/t/trying-to-use-isdigit/66169 "2021-08-11T04:32:44Z")

</div>

I’m trying to use isdigit in Julia but I keep getting “isdigit not found.” Which package is isdigit located in? I’ve added Strings and Unicode packages to no avail Don Groves

---

## [What might cause colors to differ between .png and .pdf output in Plots?](https://discourse.julialang.org/t/what-might-cause-colors-to-differ-between-png-and-pdf-output-in-plots/66102)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 7\
**Last updated:** [August 11, 2021, 3:38am UTC](https://discourse.julialang.org/t/what-might-cause-colors-to-differ-between-png-and-pdf-output-in-plots/66102 "2021-08-11T03:38:28Z")

</div>

I just installed Ubuntu 20.04 on my work computer yesterday and have noticed that the colors in my Julia plots come out differently depending on whether I view them within VSCode/Jupyter, as a .png export, or as a .pdf e…

---

## [A question about drawing](https://discourse.julialang.org/t/a-question-about-drawing/66140)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 2:51am UTC](https://discourse.julialang.org/t/a-question-about-drawing/66140 "2021-08-11T02:51:43Z")

</div>

p1 = range(0, 360; length = 100)' # parameter 1 p2 = range(0, 360; length = 70) # parameter 2 w1 = @. sind(3\*(p1 + 2 \* p2)) + 1.25 # wave 1 w2 = @. 6 + w1 \* cosd(p1) # wave 2 x = vec(@. w2 \* cosd(p2)) y = ve…

---

## [Update Julia 1.6.0 Package in Jupyter notebook](https://discourse.julialang.org/t/update-julia-1-6-0-package-in-jupyter-notebook/58536)

<div class="topic-metadata">

**Author:** [@Manisha\_07](https://discourse.julialang.org/u/Manisha_07)\
**Replies:** 9\
**Last updated:** [August 11, 2021, 1:56am UTC](https://discourse.julialang.org/t/update-julia-1-6-0-package-in-jupyter-notebook/58536 "2021-08-11T01:56:27Z")

</div>

Hello I have updated my Julia.Now i need to add my julia to Jupyter notebook How would I do that .Please help me in adding the julia to jupyter notebook

---

## [Connecting to an API via WebSocket](https://discourse.julialang.org/t/connecting-to-an-api-via-websocket/65717)

<div class="topic-metadata">

**Author:** [@yenson-lau](https://discourse.julialang.org/u/yenson-lau)\
**Replies:** 6\
**Last updated:** [August 11, 2021, 12:53am UTC](https://discourse.julialang.org/t/connecting-to-an-api-via-websocket/65717 "2021-08-11T00:53:06Z")

</div>

Hi everyone, sorry if this is a really noob question but I’m I’m trying to translate some instructions in NodeJS to connect to an API into a Julia interface. I’m not a web developer and the documentation in HTTP.jl is mi…

---

## [\[ANN\] DashBio.jl: package with a set of higher-level components like alignment chart, Forna container, Speck and many more](https://discourse.julialang.org/t/ann-dashbio-jl-package-with-a-set-of-higher-level-components-like-alignment-chart-forna-container-speck-and-many-more/66122)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 5\
**Last updated:** [August 10, 2021, 11:37pm UTC](https://discourse.julialang.org/t/ann-dashbio-jl-package-with-a-set-of-higher-level-components-like-alignment-chart-forna-container-speck-and-many-more/66122 "2021-08-10T23:37:58Z")

</div>

I am excited to announce the release of DashBio.jl, a suite of bioinformatics components that make it simpler to analyze and visualize bioinformatics data and interact with them in a Dash application by Plotly. Now all b…

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

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