# Latest

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

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

**Page:** 1286

---

## [How to properly bring in a module and use its namespace](https://discourse.julialang.org/t/how-to-properly-bring-in-a-module-and-use-its-namespace/66999)

<div class="topic-metadata">

**Author:** [@Tyler\_Ingebrand](https://discourse.julialang.org/u/Tyler_Ingebrand)\
**Replies:** 8\
**Last updated:** [August 27, 2021, 5:26pm UTC](https://discourse.julialang.org/t/how-to-properly-bring-in-a-module-and-use-its-namespace/66999 "2021-08-27T17:26:17Z")

</div>

Hello, Julia noob here. I am trying to take some code that worked in a previous version of Julia (0.6 I think?) and get it working in the current version (1.6.2). The problem I am having is in the previous version, they …

---

## [Minimum size of Makie grid cell?](https://discourse.julialang.org/t/minimum-size-of-makie-grid-cell/67082)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 4:50pm UTC](https://discourse.julialang.org/t/minimum-size-of-makie-grid-cell/67082 "2021-08-27T16:50:20Z")

</div>

I am layouting a Makie.jl figure with some figure elements (at \[1,1\], \[2,1\] and \[1,2\]) and a text box (at \[2,2\]). The text box is created as well as an axis and the text is written (a little painfully) into it. To get a …

---

## [Why can't I access a GroupedDataFrame (via get function) through a GroupKey?](https://discourse.julialang.org/t/why-cant-i-access-a-groupeddataframe-via-get-function-through-a-groupkey/67106)

<div class="topic-metadata">

**Author:** [@zepphit](https://discourse.julialang.org/u/zepphit)\
**Replies:** 13\
**Last updated:** [August 27, 2021, 4:30pm UTC](https://discourse.julialang.org/t/why-cant-i-access-a-groupeddataframe-via-get-function-through-a-groupkey/67106 "2021-08-27T16:30:45Z")

</div>

I’m sorry, this should be a question easily answered I guess, but why does the following not work. grouped\_df = groupby(original\_df,\[:field\_to\_group\]) get(grouped\_df, keys(grouped\_df)\[1\]) LoadError: MethodError: no me…

---

## [Tracking DMRG progress in ITensors](https://discourse.julialang.org/t/tracking-dmrg-progress-in-itensors/66907)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 1\
**Last updated:** [August 27, 2021, 4:26pm UTC](https://discourse.julialang.org/t/tracking-dmrg-progress-in-itensors/66907 "2021-08-27T16:26:10Z")

</div>

I’m using ITensors to do some DMRG calculation. When running dmrg(H, ψ\_0, sweeps), is there a way to track the progress? For example, if I want to displa a progress bar to keep an eye on the calculation, what should I do…

---

## [Smooth Signal Correlation](https://discourse.julialang.org/t/smooth-signal-correlation/67055)

<div class="topic-metadata">

**Author:** [@user1200](https://discourse.julialang.org/u/user1200)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 3:30pm UTC](https://discourse.julialang.org/t/smooth-signal-correlation/67055 "2021-08-27T15:30:34Z")

</div>

Hello I wanted, to smooth data signal. For example, using mean y\[1\]=(a\[1\]+a\[2\])/2 it is y\[1\]=0.5\*a\[1\]+0.5\*a\[2\] y\[2\]=0.5\*a\[3\]+0.5\*a\[4\] But in specific way, that new signal (y), need to have some attributes: for e…

---

## [Get all combinations in a range](https://discourse.julialang.org/t/get-all-combinations-in-a-range/67108)

<div class="topic-metadata">

**Author:** [@daviddoij](https://discourse.julialang.org/u/daviddoij)\
**Replies:** 1\
**Last updated:** [August 27, 2021, 4:05pm UTC](https://discourse.julialang.org/t/get-all-combinations-in-a-range/67108 "2021-08-27T16:05:50Z")

</div>

Hi, I’m trying to get the following algorithm (done with Python) but in Julia: from itertools import product coins = \[2, 5, 10, 20, 50, 100\] no\_ways = 0 bunch\_of\_coins = product(\*\[range(0, 201, i) for i in coins\]) for…

---

## [Publishing package](https://discourse.julialang.org/t/publishing-package/67107)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [August 27, 2021, 3:44pm UTC](https://discourse.julialang.org/t/publishing-package/67107 "2021-08-27T15:44:22Z")

</div>

Hello I am preparing the packege to get published I have a lot of files and modules, till now I hade file with bunch of include statements - executed once via repl ; then in all modules I referenced other (for example so…

---

## [Software engineers to build AI system at PlantingSpace](https://discourse.julialang.org/t/software-engineers-to-build-ai-system-at-plantingspace/58638)

<div class="topic-metadata">

**Author:** [@keorn](https://discourse.julialang.org/u/keorn)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 2:52pm UTC](https://discourse.julialang.org/t/software-engineers-to-build-ai-system-at-plantingspace/58638 "2021-08-27T14:52:50Z")

</div>

PlantingSpace is an early stage startup with big ambitions of understanding humanity’s collective knowledge, and using it to answer questions and to get things done. We make heavy use of Julia in the core parts of our sy…

---

## [Will Julia 1.8 be the last 1.x release?](https://discourse.julialang.org/t/will-julia-1-8-be-the-last-1-x-release/67092)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 2:46pm UTC](https://discourse.julialang.org/t/will-julia-1-8-be-the-last-1-x-release/67092 "2021-08-27T14:46:28Z")

</div>

Purely speculative - is it true that the 1.x series will wrap up soon before development shifts to 2.0? For example, should I expect 1.7 to be the last “feature release”, and 1.8 to be a “transitional release” to provide…

---

## [AlgebraOfGraphics force points colors in scatter plot](https://discourse.julialang.org/t/algebraofgraphics-force-points-colors-in-scatter-plot/67089)

<div class="topic-metadata">

**Author:** [@rvezy](https://discourse.julialang.org/u/rvezy)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 1:16pm UTC](https://discourse.julialang.org/t/algebraofgraphics-force-points-colors-in-scatter-plot/67089 "2021-08-27T13:16:44Z")

</div>

I starting using AlgebraOfGraphics and I really like it so far. Now I’m using it in a Pluto notebook to plot two variables as a scatter colored by groups with CairoMakie as a backend. I also added some checkboxes to mak…

---

## [Julia implementation of IDL's rebin?](https://discourse.julialang.org/t/julia-implementation-of-idls-rebin/67098)

<div class="topic-metadata">

**Author:** [@sbrisard](https://discourse.julialang.org/u/sbrisard)\
**Replies:** 0\
**Last updated:** [August 27, 2021, 1:08pm UTC](https://discourse.julialang.org/t/julia-implementation-of-idls-rebin/67098 "2021-08-27T13:08:25Z")

</div>

Hello, I am looking for the Julia equivalent of IDL’s rebin function. It basically applies a reduction function f to “macro-cells” of an array. For example, a (M₁ \* N₁, M₂ \* N₂, …, Mₚ \* Nₚ) array, x would be transformed…

---

## [Inconsistent Pluto behaviour - some cache to clean?](https://discourse.julialang.org/t/inconsistent-pluto-behaviour-some-cache-to-clean/67083)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 3\
**Last updated:** [August 27, 2021, 12:23pm UTC](https://discourse.julialang.org/t/inconsistent-pluto-behaviour-some-cache-to-clean/67083 "2021-08-27T12:23:13Z")

</div>

Hi, Using WGLMaki in Pluto and tried following the thread here My issue is that I seem to get different behaviour in different workbooks. Starting a fresh workbook and adding the minimal example of using WGLMakie, JS…

---

## [Why does Julia think a vector is a string?](https://discourse.julialang.org/t/why-does-julia-think-a-vector-is-a-string/67078)

<div class="topic-metadata">

**Author:** [@dgpdx](https://discourse.julialang.org/u/dgpdx)\
**Replies:** 32\
**Last updated:** [August 27, 2021, 11:39am UTC](https://discourse.julialang.org/t/why-does-julia-think-a-vector-is-a-string/67078 "2021-08-27T11:39:49Z")

</div>

This works perfectly, as expected: julia\> push!(S,\[2,3,4\]) Stack{Any}(Deque \[Any\[\[2, 3, 4\]\]\]) julia\> push!(S,\[5,6,7\]) Stack{Any}(Deque \[Any\[\[2, 3, 4\], \[5, 6, 7\]\]\]) julia\> x = pop() 3-element Vector{Int64}: 5 6 7 …

---

## [Creating an iterative structure](https://discourse.julialang.org/t/creating-an-iterative-structure/67088)

<div class="topic-metadata">

**Author:** [@Rajesh\_Nakka](https://discourse.julialang.org/u/Rajesh_Nakka)\
**Replies:** 8\
**Last updated:** [August 27, 2021, 9:56am UTC](https://discourse.julialang.org/t/creating-an-iterative-structure/67088 "2021-08-27T09:56:50Z")

</div>

Given, struct Point x::Float64 y::Float64 z::Float64 end p1 = Point(1.0, 0.0, 0.0) p2 = Point(1.0, 1.0, 0.0) p3 = Point(1.0, 0.0, 1.0) I want to define another iterative structure Points similar to Julia Ar…

---

## [Ordered color palette](https://discourse.julialang.org/t/ordered-color-palette/67005)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [August 27, 2021, 9:50am UTC](https://discourse.julialang.org/t/ordered-color-palette/67005 "2021-08-27T09:50:56Z")

</div>

I want to use a palette that is ordered rather than nominal or continuous. If I don’t specify a palette, I get nominal. If I specify a continuous one, I get an error. visual(Scatter, colormap=:viridis) doesn’t change any…

---

## [Loading packages in a parallel thread](https://discourse.julialang.org/t/loading-packages-in-a-parallel-thread/67084)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 1\
**Last updated:** [August 27, 2021, 9:41am UTC](https://discourse.julialang.org/t/loading-packages-in-a-parallel-thread/67084 "2021-08-27T09:41:20Z")

</div>

Sometimes there are packages that are not needed in the first steps of a script, so performance can be improved by running those first steps and loading the “secondary” packages in parallel. For instance: t = Threads.@s…

---

## [Toggling visibility of widget is effective only after starting the Gtk loop](https://discourse.julialang.org/t/toggling-visibility-of-widget-is-effective-only-after-starting-the-gtk-loop/67086)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 0\
**Last updated:** [August 27, 2021, 8:45am UTC](https://discourse.julialang.org/t/toggling-visibility-of-widget-is-effective-only-after-starting-the-gtk-loop/67086 "2021-08-27T08:45:33Z")

</div>

I would like to start a Gtk.jl window with two buttons, one of them being invisible; the visible button toggles the visibility of the invisible one. I cannot set the visibility of the “invisible” button until after I st…

---

## [How to get the values of a column according to multiple conditions of another column?](https://discourse.julialang.org/t/how-to-get-the-values-of-a-column-according-to-multiple-conditions-of-another-column/67052)

<div class="topic-metadata">

**Author:** [@Sebastian\_Mena](https://discourse.julialang.org/u/Sebastian_Mena)\
**Replies:** 5\
**Last updated:** [August 27, 2021, 8:18am UTC](https://discourse.julialang.org/t/how-to-get-the-values-of-a-column-according-to-multiple-conditions-of-another-column/67052 "2021-08-27T08:18:14Z")

</div>

I would like to get values from a column according to multiple conditions of another column. Here is an example of what i would like to do: list\_of\_values = df\[df\[:column1\] .== (value1 OR value2),:\].column2 I know tha…

---

## [How to select dataframe column by name?](https://discourse.julialang.org/t/how-to-select-dataframe-column-by-name/67048)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 6\
**Last updated:** [August 27, 2021, 7:05am UTC](https://discourse.julialang.org/t/how-to-select-dataframe-column-by-name/67048 "2021-08-27T07:05:20Z")

</div>

Hello, I have a dataframe and I am selecting row based on a condition. How can I select a column based on its name? Here I can get column X but the result is a string instead of a numeric vector. If I use the names of …

---

## [A living post of Julia vs R's data manipulation tasks speeds](https://discourse.julialang.org/t/a-living-post-of-julia-vs-rs-data-manipulation-tasks-speeds/6316)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 21\
**Last updated:** [August 27, 2021, 6:36am UTC](https://discourse.julialang.org/t/a-living-post-of-julia-vs-rs-data-manipulation-tasks-speeds/6316 "2021-08-27T06:36:49Z")

</div>

Update Please also see a new post https://www.codementor.io/zhuojiadai/an-empirical-study-of-group-by-strategies-in-julia-dagnosell Original post https://www.codementor.io/zhuojiadai/speed-of-data-manipulation-in-juli…

---

## [Saving the value of parameterized functions in DifferentialEquations.jl](https://discourse.julialang.org/t/saving-the-value-of-parameterized-functions-in-differentialequations-jl/67071)

<div class="topic-metadata">

**Author:** [@mys\_721tx](https://discourse.julialang.org/u/mys_721tx)\
**Replies:** 3\
**Last updated:** [August 27, 2021, 6:35am UTC](https://discourse.julialang.org/t/saving-the-value-of-parameterized-functions-in-differentialequations-jl/67071 "2021-08-27T06:35:41Z")

</div>

Hello all, I have the following ODE system in which p is a parameterized function: function fcd!(du, u, p, t) du\[1\] = p(t) - u\[1\] du\[2\] = p(t) / u\[1\] - u\[2\] end I wish to solve the ODE using DifferentialEquati…

---

## [\`rowsize!\` and \`colsize!\` for nested layouts](https://discourse.julialang.org/t/rowsize-and-colsize-for-nested-layouts/66981)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 6:33am UTC](https://discourse.julialang.org/t/rowsize-and-colsize-for-nested-layouts/66981 "2021-08-27T06:33:39Z")

</div>

I am writing code which generates a specific layout with interactions etc. It works fine for a figure, but as soon as I try to embed it as a subfigure I am getting into trouble. The reason is that rowsize! and colsize! f…

---

## [Deploying a web app built with Stipple?](https://discourse.julialang.org/t/deploying-a-web-app-built-with-stipple/65860)

<div class="topic-metadata">

**Author:** [@astrowanders](https://discourse.julialang.org/u/astrowanders)\
**Replies:** 6\
**Last updated:** [August 27, 2021, 6:23am UTC](https://discourse.julialang.org/t/deploying-a-web-app-built-with-stipple/65860 "2021-08-27T06:23:34Z")

</div>

Hello! I built a web app using Stipple, and I’m hoping to get deployment advice. Web App Background: I’m making a web app where owners of pet rabbits can input their rabbit’s details (e.g., weight, age, breed) and foo…

---

## [Programmatically generate a function akin to Python closure](https://discourse.julialang.org/t/programmatically-generate-a-function-akin-to-python-closure/66514)

<div class="topic-metadata">

**Author:** [@mys\_721tx](https://discourse.julialang.org/u/mys_721tx)\
**Replies:** 8\
**Last updated:** [August 27, 2021, 2:31am UTC](https://discourse.julialang.org/t/programmatically-generate-a-function-akin-to-python-closure/66514 "2021-08-27T02:31:50Z")

</div>

Hello all, I am implementing a step function. Current I use the following function to generate an expression and returns side expression in a generated function. struct TimePoint t v end function step(x, pts::…

---

## [Show empty bins with 2d Gadfly histogram?](https://discourse.julialang.org/t/show-empty-bins-with-2d-gadfly-histogram/67056)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [August 27, 2021, 1:50am UTC](https://discourse.julialang.org/t/show-empty-bins-with-2d-gadfly-histogram/67056 "2021-08-27T01:50:29Z")

</div>

Can’t find it anywhere in the docs, so I guess this isn’t possible with hex or square bins?

---

## [How to define custom AD rule in ForwardDiff](https://discourse.julialang.org/t/how-to-define-custom-ad-rule-in-forwarddiff/67036)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 8\
**Last updated:** [August 27, 2021, 1:45am UTC](https://discourse.julialang.org/t/how-to-define-custom-ad-rule-in-forwarddiff/67036 "2021-08-27T01:45:45Z")

</div>

How to define a custom AD rule in ForwardDiff using DiffRules. I have tried this: using DiffRules using ForwardDiff f(xx) = NaN DiffRules.@define\_diffrule Main.f(xx) = :($xx\[1\] + $xx\[2\], $xx\[1\] - $xx\[2\]) julia\> Forwa…

---

## [Y-axis reversed when using PyPlot.ylim](https://discourse.julialang.org/t/y-axis-reversed-when-using-pyplot-ylim/66958)

<div class="topic-metadata">

**Author:** [@SSU](https://discourse.julialang.org/u/SSU)\
**Replies:** 2\
**Last updated:** [August 27, 2021, 1:24am UTC](https://discourse.julialang.org/t/y-axis-reversed-when-using-pyplot-ylim/66958 "2021-08-27T01:24:12Z")

</div>

Y axis of pyplot turns upside down when using pyplot.ylim. Is this an expected behavior of PyPlot.jl? By the way, are the indices of images/matrixes passed to PyPlot.jl converted to 0-origin? Thank you in advance!! v…

---

## [Speed up Julia code for simple Monte Carlo Pi estimation (compared to Numba)](https://discourse.julialang.org/t/speed-up-julia-code-for-simple-monte-carlo-pi-estimation-compared-to-numba/59808)

<div class="topic-metadata">

**Author:** [@smpurkis](https://discourse.julialang.org/u/smpurkis)\
**Replies:** 20\
**Last updated:** [August 22, 2021, 4:45am UTC](https://discourse.julialang.org/t/speed-up-julia-code-for-simple-monte-carlo-pi-estimation-compared-to-numba/59808 "2021-08-22T04:45:45Z")

</div>

Hello, I’m benchmarking Julia against some other langauges, mainly against Cython, Numba etc (in this case mainly Numba). I’m running a simple Monte Carlo estimate of Pi. Trying to recreate Python+Numba vs. Julia, and ex…

---

## [ERROR: LoadError: MethodError: no method matching +(::Array{Float64,1}, ::Int64) For element-wise addition, use broadcasting with dot syntax: array .+ scalar](https://discourse.julialang.org/t/error-loaderror-methoderror-no-method-matching-array-float64-1-int64-for-element-wise-addition-use-broadcasting-with-dot-syntax-array-scalar/67075)

<div class="topic-metadata">

**Author:** [@setegn\_alemu](https://discourse.julialang.org/u/setegn_alemu)\
**Replies:** 4\
**Last updated:** [August 27, 2021, 12:39am UTC](https://discourse.julialang.org/t/error-loaderror-methoderror-no-method-matching-array-float64-1-int64-for-element-wise-addition-use-broadcasting-with-dot-syntax-array-scalar/67075 "2021-08-27T00:39:41Z")

</div>

Write the function periodic which takes as its input the vector t , vector c which contains the vector of coefficents ccc in the order as above, the integers d\_poly and d\_periodic corresponding to the order of the polyno…

---

## [Bipartite networks](https://discourse.julialang.org/t/bipartite-networks/67065)

<div class="topic-metadata">

**Author:** [@emchateau](https://discourse.julialang.org/u/emchateau)\
**Replies:** 2\
**Last updated:** [August 26, 2021, 10:48pm UTC](https://discourse.julialang.org/t/bipartite-networks/67065 "2021-08-26T22:48:24Z")

</div>

Quite new to Julia but we enjoy it a lot. We are currently trying to use it for network analysis working with LightGraph. We were wondering if some of you could point us to exemple for bi-partite networks analysis done …

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

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