# Latest

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

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

**Page:** 1057

---

## [WGLMakie, JSServer Button, update camera](https://discourse.julialang.org/t/wglmakie-jsserver-button-update-camera/80169)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 0\
**Last updated:** [April 27, 2022, 8:42pm UTC](https://discourse.julialang.org/t/wglmakie-jsserver-button-update-camera/80169 "2022-04-27T20:42:43Z")

</div>

The following updates correctly the colormap, however ignores all camera updates. Any hints on how to fix this? using WGLMakie, JSServe, Observables using JSServe: Button page = Page(offline=true, exportable=true); app…

---

## [Connect to external REPL no longer works](https://discourse.julialang.org/t/connect-to-external-repl-no-longer-works/80015)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 5\
**Last updated:** [April 27, 2022, 7:50pm UTC](https://discourse.julialang.org/t/connect-to-external-repl-no-longer-works/80015 "2022-04-27T19:50:26Z")

</div>

Version 1.7.2 of Julia. Latest version of VS Code. I got the command from the plugin Julia Connect to External REPL to work once. A sort of prompt came up with a button. I clicked it. I had an external repl connecte…

---

## [Analysis of complex surveys in Julia?](https://discourse.julialang.org/t/analysis-of-complex-surveys-in-julia/44011)

<div class="topic-metadata">

**Author:** [@jamanrique](https://discourse.julialang.org/u/jamanrique)\
**Replies:** 6\
**Last updated:** [April 27, 2022, 7:49pm UTC](https://discourse.julialang.org/t/analysis-of-complex-surveys-in-julia/44011 "2022-04-27T19:49:42Z")

</div>

Hi! I just wanted to know if someone knows if there’s a package related to the analysis of complex surveys in Julia. If not, this could be a great opportunity for me to learn how to create packages in Julia …

---

## [How to interpret the methods for Union{}?](https://discourse.julialang.org/t/how-to-interpret-the-methods-for-union/80166)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [April 27, 2022, 7:23pm UTC](https://discourse.julialang.org/t/how-to-interpret-the-methods-for-union/80166 "2022-04-27T19:23:44Z")

</div>

I find julia\> methods(Union{}) # 4 methods for callable object: \[1\] (::Type{T})(x::Number) where T\<:AbstractChar in Base at char.jl:48 \[2\] (::Type{T})(x::Rational{S}) where {S, T\<:AbstractFloat} in Base at rational.jl:1…

---

## [DQN Reinforcement Learning Agent is Not Learning](https://discourse.julialang.org/t/dqn-reinforcement-learning-agent-is-not-learning/79732)

<div class="topic-metadata">

**Author:** [@konmeso](https://discourse.julialang.org/u/konmeso)\
**Replies:** 16\
**Last updated:** [April 27, 2022, 7:20pm UTC](https://discourse.julialang.org/t/dqn-reinforcement-learning-agent-is-not-learning/79732 "2022-04-27T19:20:44Z")

</div>

Hello. I’m relatively new to Julia, I have only been coding in it the last 3 months. I’m trying to create a DQN RL agent that finds the optimal path while also choosing the maximum speed for doing so. However, it just wo…

---

## [Slow multiplication of transpose of sparse matrix](https://discourse.julialang.org/t/slow-multiplication-of-transpose-of-sparse-matrix/80153)

<div class="topic-metadata">

**Author:** [@andresdrenik](https://discourse.julialang.org/u/andresdrenik)\
**Replies:** 5\
**Last updated:** [April 27, 2022, 7:05pm UTC](https://discourse.julialang.org/t/slow-multiplication-of-transpose-of-sparse-matrix/80153 "2022-04-27T19:05:49Z")

</div>

I’m having speed issues multiplying the transpose of a sparse matrix with a column vector. In my code the matrix A is 501×501 SparseMatrixCSC{Float64, Integer} with 1501 stored entries: ⠻⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸ ⠀⠈⠻⣦⡀⠀⠀⠀⠀…

---

## [Should Discourse links open in a new tab?](https://discourse.julialang.org/t/should-discourse-links-open-in-a-new-tab/80161)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 6\
**Last updated:** [April 27, 2022, 6:50pm UTC](https://discourse.julialang.org/t/should-discourse-links-open-in-a-new-tab/80161 "2022-04-27T18:50:13Z")

</div>

When navigating the Discourse site, I’m often surprised that links open in the current tab. This makes it hard to switch back and forth between the discussion, and links that are referenced in the discussion. I’m curiou…

---

## [Introducing Julius: low code and scalable graph computing in Julia](https://discourse.julialang.org/t/introducing-julius-low-code-and-scalable-graph-computing-in-julia/80129)

<div class="topic-metadata">

**Author:** [@Yadong\_Li](https://discourse.julialang.org/u/Yadong_Li)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 5:34pm UTC](https://discourse.julialang.org/t/introducing-julius-low-code-and-scalable-graph-computing-in-julia/80129 "2022-04-27T17:34:59Z")

</div>

We are a group of researchers and engineers passionate about graph computing. At Julius Technologies, we have built a truly innovative graph computing solution that allows developers to build sophisticated, scalable and …

---

## [Best Practices for reporting bugs or suggesting improvements to Julia Docs](https://discourse.julialang.org/t/best-practices-for-reporting-bugs-or-suggesting-improvements-to-julia-docs/80157)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 1\
**Last updated:** [April 27, 2022, 5:10pm UTC](https://discourse.julialang.org/t/best-practices-for-reporting-bugs-or-suggesting-improvements-to-julia-docs/80157 "2022-04-27T17:10:00Z")

</div>

What’s the best way to Report possible typos or other technical errors in Julia Documentation, or Discuss potential improvements to the documentation, beyond minor typos? For example, in the documentation for the sin …

---

## [\`Vector{Float64} \<: Vector{Any}\` = false, why?](https://discourse.julialang.org/t/vector-float64-vector-any-false-why/80103)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 12\
**Last updated:** [April 27, 2022, 5:00pm UTC](https://discourse.julialang.org/t/vector-float64-vector-any-false-why/80103 "2022-04-27T17:00:58Z")

</div>

My apologies if this has been covered previously. I just got burned by this, I was assuming I could use ::Vector{Any} to cover an input of Vector{Float64}, Vector{Int}, etc. But it turns out that Julia doesn’t believe V…

---

## [How do I wait for a Plots.jl window to be closed?](https://discourse.julialang.org/t/how-do-i-wait-for-a-plots-jl-window-to-be-closed/80122)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 4:01pm UTC](https://discourse.julialang.org/t/how-do-i-wait-for-a-plots-jl-window-to-be-closed/80122 "2022-04-27T16:01:23Z")

</div>

Is there something similar to plt.show(block=true) from matplotlib in Plots.jl. I would prefer a solution for the GR backend. Maybe a call which is waiting for all windows / gui threads to be closed? using Plots p=plo…

---

## [Ideal number of BLAS threads](https://discourse.julialang.org/t/ideal-number-of-blas-threads/79197)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 10\
**Last updated:** [April 27, 2022, 2:43pm UTC](https://discourse.julialang.org/t/ideal-number-of-blas-threads/79197 "2022-04-27T14:43:22Z")

</div>

Hi, I am planning to run a heavy series of matrix operations on a cluster and I was wondering what’s the ideal number of BLAS threads I should use. Assume that I have a machine with 20 cores and 8-16 GB of RAM per core.…

---

## [Add ability to undo text formatting](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 5\
**Last updated:** [April 27, 2022, 2:56pm UTC](https://discourse.julialang.org/t/add-ability-to-undo-text-formatting/80088 "2022-04-27T14:56:46Z")

</div>

I’m new to the forum, and I’m very impressed by how beautifully the site is designed. However, I often want the ability to undo text formatting after I’ve applied it. When Undo is desired: I frequently highlight a selec…

---

## [Iteration over two grouped data frames](https://discourse.julialang.org/t/iteration-over-two-grouped-data-frames/80138)

<div class="topic-metadata">

**Author:** [@uferc](https://discourse.julialang.org/u/uferc)\
**Replies:** 1\
**Last updated:** [April 27, 2022, 2:48pm UTC](https://discourse.julialang.org/t/iteration-over-two-grouped-data-frames/80138 "2022-04-27T14:48:47Z")

</div>

Hi there, I am new to Julia using it for my data analysis. I am currently iterating over a grouped data frame with for (i, gdf) in enumerate(groupby(df, :var, sort = true)) for visualtization purposes (one plot for ea…

---

## [LsqFit x axis samples vs data](https://discourse.julialang.org/t/lsqfit-x-axis-samples-vs-data/80141)

<div class="topic-metadata">

**Author:** [@youcann](https://discourse.julialang.org/u/youcann)\
**Replies:** 0\
**Last updated:** [April 27, 2022, 2:23pm UTC](https://discourse.julialang.org/t/lsqfit-x-axis-samples-vs-data/80141 "2022-04-27T14:23:31Z")

</div>

Hey, i’ve tried to fit a Gaussian pulse to some experimental data. When i use x=range(), the result looks resonable, with x equals the actual data, the fit does not work. Any help is appreciated. (Can i include Pluto…

---

## [Milstein method in DifferentialEquations.jl or other](https://discourse.julialang.org/t/milstein-method-in-differentialequations-jl-or-other/80107)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 4\
**Last updated:** [April 27, 2022, 12:54pm UTC](https://discourse.julialang.org/t/milstein-method-in-differentialequations-jl-or-other/80107 "2022-04-27T12:54:21Z")

</div>

I am trying to use a Milstein method in DifferentialEquations.jl to solve a stochastic differential equation \\mathrm{d}X(t)=f(X(t))\\mathrm{d}t + g(X(t))\\mathrm{d}W(t), where the Milstein method is defined by X\_{n+1}=X\_n…

---

## [How can I change the color palette for Plots.jl line\_z and marker\_z attribute color gradients for line and scatter plots?](https://discourse.julialang.org/t/how-can-i-change-the-color-palette-for-plots-jl-line-z-and-marker-z-attribute-color-gradients-for-line-and-scatter-plots/80089)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 7:15pm UTC](https://discourse.julialang.org/t/how-can-i-change-the-color-palette-for-plots-jl-line-z-and-marker-z-attribute-color-gradients-for-line-and-scatter-plots/80089 "2022-04-26T19:15:38Z")

</div>

Plots.jl has z-value attributes available for line and scatter plots. Is there a way to change the palette used for this gradient to a named colorscheme? begin import Plots as Pt t = range(0.0,stop=2π,length=1000) y…

---

## [Should I use \`\]add\` or \`\]develop\` to access local packages from my main environment?](https://discourse.julialang.org/t/should-i-use-add-or-develop-to-access-local-packages-from-my-main-environment/80115)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 8\
**Last updated:** [April 27, 2022, 12:09pm UTC](https://discourse.julialang.org/t/should-i-use-add-or-develop-to-access-local-packages-from-my-main-environment/80115 "2022-04-27T12:09:56Z")

</div>

Scenario: I have a package, say Widgets, which exists in a public Github repository (but not in the Julia package repo) at github.com/maxkapur/Widgets. I have also git cloned Widgets to my home folder for development pu…

---

## [DiskArrays get array of values given a vector of Indices](https://discourse.julialang.org/t/diskarrays-get-array-of-values-given-a-vector-of-indices/79960)

<div class="topic-metadata">

**Author:** [@sunayana](https://discourse.julialang.org/u/sunayana)\
**Replies:** 6\
**Last updated:** [April 27, 2022, 11:49am UTC](https://discourse.julialang.org/t/diskarrays-get-array-of-values-given-a-vector-of-indices/79960 "2022-04-27T11:49:32Z")

</div>

Hello I am new to julia and currently using DiskArrays for very large matrices. I have a DiskArray of volumes of dimension 12000 x 12000 and I have a vector of indices Vector{CartesianIndex{2}} of length 47852268. I am …

---

## [\[ANN\] TableTransforms.jl](https://discourse.julialang.org/t/ann-tabletransforms-jl/70572)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 22\
**Last updated:** [February 11, 2022, 8:43pm UTC](https://discourse.julialang.org/t/ann-tabletransforms-jl/70572 "2022-02-11T20:43:59Z")

</div>

TableTransforms.jl is a new package for transforms and pipelines commonly used in statistics and machine learning. It works with general Tables.jl and has some unique features compared to previous attempts: The packag…

---

## [View and @view in DataFrames](https://discourse.julialang.org/t/view-and-view-in-dataframes/76645)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 9:20pm UTC](https://discourse.julialang.org/t/view-and-view-in-dataframes/76645 "2022-02-17T21:20:59Z")

</div>

I was surprised that view and @view work differently when we work with subsets of the data. The following does not modify the parent dataframe df = DataFrame(a = \[0, 0, 0, 0\], b = \[1, 1, -1, missing\], c = \[1, -1, missi…

---

## [Any package for survey data analysis?](https://discourse.julialang.org/t/any-package-for-survey-data-analysis/67317)

<div class="topic-metadata">

**Author:** [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Replies:** 3\
**Last updated:** [April 27, 2022, 8:55am UTC](https://discourse.julialang.org/t/any-package-for-survey-data-analysis/67317 "2022-04-27T08:55:43Z")

</div>

is there any package for survey data analysis? having functionalities similar to stata would be great

---

## [TimeDataFrames package? (not TimeArray)](https://discourse.julialang.org/t/timedataframes-package-not-timearray/80106)

<div class="topic-metadata">

**Author:** [@Emmanuel-R8](https://discourse.julialang.org/u/Emmanuel-R8)\
**Replies:** 2\
**Last updated:** [April 27, 2022, 8:31am UTC](https://discourse.julialang.org/t/timedataframes-package-not-timearray/80106 "2022-04-27T08:31:19Z")

</div>

I am looking for a package to manipulate general time series. The TimeSeries package is restricted to a TimeArray structure which slaps dates/times on top of an array. All the elements of the array have to be of the sam…

---

## [How to debug failing DifferentialEquations.solve when called with Dual numbers](https://discourse.julialang.org/t/how-to-debug-failing-differentialequations-solve-when-called-with-dual-numbers/79895)

<div class="topic-metadata">

**Author:** [@bgctw](https://discourse.julialang.org/u/bgctw)\
**Replies:** 5\
**Last updated:** [April 27, 2022, 7:47am UTC](https://discourse.julialang.org/t/how-to-debug-failing-differentialequations-solve-when-called-with-dual-numbers/79895 "2022-04-27T07:47:20Z")

</div>

I try to debug why Turing is not moving forward when exploring the posterior sensitivity of parameters and initial states of a ModelingToolkit ODE problem. I reduced the problem to sample no initial conditions and a sing…

---

## [How to carry out a sum over data indexed by time and grouped by year and month?](https://discourse.julialang.org/t/how-to-carry-out-a-sum-over-data-indexed-by-time-and-grouped-by-year-and-month/80071)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 5\
**Last updated:** [April 27, 2022, 5:47am UTC](https://discourse.julialang.org/t/how-to-carry-out-a-sum-over-data-indexed-by-time-and-grouped-by-year-and-month/80071 "2022-04-27T05:47:24Z")

</div>

Hello, everyone I am new to Julia and I’m trying to carry out the task of grouping a variable by year and month and then summing for each month and year along the duration of a time-index variable. I know how to do thi…

---

## [Arrays of complex values with very small imaginary part](https://discourse.julialang.org/t/arrays-of-complex-values-with-very-small-imaginary-part/79621)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 7\
**Last updated:** [April 27, 2022, 4:46am UTC](https://discourse.julialang.org/t/arrays-of-complex-values-with-very-small-imaginary-part/79621 "2022-04-27T04:46:50Z")

</div>

I am performing calculations with arrays with elements that can be complex (depending on the inputs). Later in my program, I need to check if the eigenvalues of the matrix are complex or real. (real and imaginary compone…

---

## [PyPlot doesn't work on Atom+Juno](https://discourse.julialang.org/t/pyplot-doesnt-work-on-atom-juno/23229)

<div class="topic-metadata">

**Author:** [@Xion\_Lee](https://discourse.julialang.org/u/Xion_Lee)\
**Replies:** 7\
**Last updated:** [April 27, 2022, 4:14am UTC](https://discourse.julialang.org/t/pyplot-doesnt-work-on-atom-juno/23229 "2022-04-27T04:14:01Z")

</div>

Hi…I’m new to julia and Atom. My system is Mac OS Mojave and the version of my packages are: The problem is that when I use PyPlot in terminal it works perfectly, but doesn’t show any plot when using PyPlot in Ato…

---

## [Installation of ForneyLab](https://discourse.julialang.org/t/installation-of-forneylab/80093)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 0\
**Last updated:** [April 26, 2022, 10:16pm UTC](https://discourse.julialang.org/t/installation-of-forneylab/80093 "2022-04-26T22:16:19Z")

</div>

I was using ForneyLab with Atom 1.6 on my M1 Macbook Air. All was well, except for the standard development errors. At some point, using ForneyLab generated an error on Jupyterlab, and eventually in Atom. I removed and r…

---

## [What does this TypeError("invalid NaN comparison") mean? And how do I fix it?](https://discourse.julialang.org/t/what-does-this-typeerror-invalid-nan-comparison-mean-and-how-do-i-fix-it/80095)

<div class="topic-metadata">

**Author:** [@Grace\_Chuan](https://discourse.julialang.org/u/Grace_Chuan)\
**Replies:** 4\
**Last updated:** [April 27, 2022, 1:36am UTC](https://discourse.julialang.org/t/what-does-this-typeerror-invalid-nan-comparison-mean-and-how-do-i-fix-it/80095 "2022-04-27T01:36:45Z")

</div>

I’m trying to use the function “solve” from sympy to solve for the values that satisfies a complicated equation. I am receiving the following error message: TypeError(“invalid NaN comparison”) Does anyone know how to re…

---

## [GraphMakie with scale](https://discourse.julialang.org/t/graphmakie-with-scale/79961)

<div class="topic-metadata">

**Author:** [@Yuri\_Mizusawa](https://discourse.julialang.org/u/Yuri_Mizusawa)\
**Replies:** 3\
**Last updated:** [April 26, 2022, 10:18pm UTC](https://discourse.julialang.org/t/graphmakie-with-scale/79961 "2022-04-26T22:18:58Z")

</div>

I am using the GraphMakie to make graphs, it is working very well, but I wanted to know if there is a way to add scale to the graphs, similar to a scatter plot. I tryed the documentation but did’t find anything about it…

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

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