# Latest

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

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

**Page:** 925

---

## [An easy way to debug the julia code in base/](https://discourse.julialang.org/t/an-easy-way-to-debug-the-julia-code-in-base/44914)

<div class="topic-metadata">

**Author:** [@mitsuruk](https://discourse.julialang.org/u/mitsuruk)\
**Replies:** 10\
**Last updated:** [September 14, 2022, 4:41pm UTC](https://discourse.julialang.org/t/an-easy-way-to-debug-the-julia-code-in-base/44914 "2022-09-14T16:41:45Z")

</div>

Hi, Julian expert people. What is the easiest way to debug a modification to the source code in julia/base if I change the Julia code in base/string/? Specifically, I would like to know how to easily debugging way the …

---

## [Incorrect plot for small values](https://discourse.julialang.org/t/incorrect-plot-for-small-values/87254)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [September 14, 2022, 4:27pm UTC](https://discourse.julialang.org/t/incorrect-plot-for-small-values/87254 "2022-09-14T16:27:22Z")

</div>

I’m a bit puzzled by what’s happening here, is this a known issue? (@v1.8) pkg\> st -m Plots Status \`~/.julia/environments/v1.8/Manifest.toml\` \[91a5bcdd\] Plots v1.33.0 julia\> using Plots julia\> r = range(-1, 1, lengt…

---

## [Help needed regarding making list, and modifying them, inside a DataFrame](https://discourse.julialang.org/t/help-needed-regarding-making-list-and-modifying-them-inside-a-dataframe/87231)

<div class="topic-metadata">

**Author:** [@Juan\_Mac\_Donagh](https://discourse.julialang.org/u/Juan_Mac_Donagh)\
**Replies:** 5\
**Last updated:** [September 14, 2022, 3:03pm UTC](https://discourse.julialang.org/t/help-needed-regarding-making-list-and-modifying-them-inside-a-dataframe/87231 "2022-09-14T15:03:30Z")

</div>

Hi all. I need helping figuring out how to make this: I have a DataFrame that look like this: df = DataFrame() df.pdb\_names = \["C1\_1", "C1\_1", "C1\_2", "C1\_3", "C2\_1", "C2\_2"\] df.missings\_range = \[\[2,5\],\[9,10\], \[9,10…

---

## [Sparse is not defined](https://discourse.julialang.org/t/sparse-is-not-defined/87276)

<div class="topic-metadata">

**Author:** [@m\_shah2](https://discourse.julialang.org/u/m_shah2)\
**Replies:** 1\
**Last updated:** [September 14, 2022, 2:47pm UTC](https://discourse.julialang.org/t/sparse-is-not-defined/87276 "2022-09-14T14:47:20Z")

</div>

When I try to run W = sparse(W + W’); it gives the following error. UndefVarError: sparse not defined Stacktrace: \[1\] top-level scope @ In\[13\]:21 \[2\] eval @ .\\boot.jl:368 \[inlined\] \[3\] include\_string(mapexpr::typ…

---

## [Materialize transducer into existing storage](https://discourse.julialang.org/t/materialize-transducer-into-existing-storage/87258)

<div class="topic-metadata">

**Author:** [@mfiano](https://discourse.julialang.org/u/mfiano)\
**Replies:** 4\
**Last updated:** [September 14, 2022, 2:38pm UTC](https://discourse.julialang.org/t/materialize-transducer-into-existing-storage/87258 "2022-09-14T14:38:00Z")

</div>

I defined a reducible for my Kernel type, which works fine, and I can materialize pipelines with collect, etc. I now want to be able to write a function that does kernel |\> Map(func) |\> # ... materialize into existing v…

---

## [How to log10 scale on bar plot y axis with Makie](https://discourse.julialang.org/t/how-to-log10-scale-on-bar-plot-y-axis-with-makie/87200)

<div class="topic-metadata">

**Author:** [@Hester](https://discourse.julialang.org/u/Hester)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 2:27pm UTC](https://discourse.julialang.org/t/how-to-log10-scale-on-bar-plot-y-axis-with-makie/87200 "2022-09-14T14:27:15Z")

</div>

I am trying to display a bar plot with a log10 scale in the y axis, but I get the error Found invalid x-limits (0.0f0, 125.0f0) for scale log10 which is defined on the interval 0.0..Inf (open) despite my data not contain…

---

## [How to pass struct fields as function arguments?](https://discourse.julialang.org/t/how-to-pass-struct-fields-as-function-arguments/24599)

<div class="topic-metadata">

**Author:** [@Elmer\_Cusipuma](https://discourse.julialang.org/u/Elmer_Cusipuma)\
**Replies:** 6\
**Last updated:** [September 14, 2022, 1:58pm UTC](https://discourse.julialang.org/t/how-to-pass-struct-fields-as-function-arguments/24599 "2022-09-14T13:58:50Z")

</div>

Example struct variables a :: Integer b :: Float64 c :: Integer end function f(a::Integer,b::Float64,c::Integer) d = a + b + c println(d) end var = variables(1,2.5,3) f(var) # ? How can I pass a stru…

---

## [Type conversion driving me crazy](https://discourse.julialang.org/t/type-conversion-driving-me-crazy/87253)

<div class="topic-metadata">

**Author:** [@scotts](https://discourse.julialang.org/u/scotts)\
**Replies:** 10\
**Last updated:** [September 14, 2022, 10:38am UTC](https://discourse.julialang.org/t/type-conversion-driving-me-crazy/87253 "2022-09-14T10:38:53Z")

</div>

I’ve wasted half a day in frustration just trying to clean up some simple data. Basically, it’s a bunch of numbers as strings that I’ve bought into a data frame and now just want to remove missing values, spaces, remove …

---

## [How to Fix Plot GUI/WIndow not showing again / Anymore?](https://discourse.julialang.org/t/how-to-fix-plot-gui-window-not-showing-again-anymore/87209)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 12:05pm UTC](https://discourse.julialang.org/t/how-to-fix-plot-gui-window-not-showing-again-anymore/87209 "2022-09-14T12:05:38Z")

</div>

I have a problem, probably due to plotting a lot of graphs. I can’t plot anymore. Either using pyplot() or gr() as backend the plot window / gui does not comes out, I try with working codes and the window never shown aga…

---

## [How to solve this error? About Pkg.jl and Plots.jl](https://discourse.julialang.org/t/how-to-solve-this-error-about-pkg-jl-and-plots-jl/87265)

<div class="topic-metadata">

**Author:** [@Zhiwei125](https://discourse.julialang.org/u/Zhiwei125)\
**Replies:** 5\
**Last updated:** [September 14, 2022, 11:58am UTC](https://discourse.julialang.org/t/how-to-solve-this-error-about-pkg-jl-and-plots-jl/87265 "2022-09-14T11:58:07Z")

</div>

import Pkg Pkg.build(“Plots”) import CSV import DataFrames import Plots const DATA\_DIR = joinpath(@DIR, “.julia\\data\_julia”) water\_place = CSV.read(joinpath(DATA\_DIR,“water\_place.csv”), DataFrames.DataFrame) Plots…

---

## [Ticks with integer numbers only (instead of fractional values)](https://discourse.julialang.org/t/ticks-with-integer-numbers-only-instead-of-fractional-values/87267)

<div class="topic-metadata">

**Author:** [@benoitseron](https://discourse.julialang.org/u/benoitseron)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 11:40am UTC](https://discourse.julialang.org/t/ticks-with-integer-numbers-only-instead-of-fractional-values/87267 "2022-09-14T11:40:48Z")

</div>

I am looking to make a scatter plot some values with x values that can only be integers (1,2,3…). By default, Julia will sometimes use x ticks that are integers values, or sometimes as floats, depending on the range of …

---

## [How to implement Lionel Zoubritzky's removetype() function?](https://discourse.julialang.org/t/how-to-implement-lionel-zoubritzkys-removetype-function/87089)

<div class="topic-metadata">

**Author:** [@Henri\_Laurie](https://discourse.julialang.org/u/Henri_Laurie)\
**Replies:** 13\
**Last updated:** [September 14, 2022, 11:43am UTC](https://discourse.julialang.org/t/how-to-implement-lionel-zoubritzkys-removetype-function/87089 "2022-09-14T11:43:18Z")

</div>

I am so impressed by the clarity of @liozou’s presentation of the Bezanson et al paper “Julia: Dynamism and Performance Reconciled by Design”. Unfortunately I can’t seem to find a pdf of the slides, and I would love to r…

---

## [Convert math model to latex](https://discourse.julialang.org/t/convert-math-model-to-latex/87266)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 11:41am UTC](https://discourse.julialang.org/t/convert-math-model-to-latex/87266 "2022-09-14T11:41:57Z")

</div>

Hello, I have a model based on a set of ordinary differential equations, wrapped in a function. Is it possible to convert it into latex? For instance, function X!(du, u, p, t) A = p\[:a\] # parameter a B = p\[:…

---

## [Bounds error while iterating over for loop](https://discourse.julialang.org/t/bounds-error-while-iterating-over-for-loop/87245)

<div class="topic-metadata">

**Author:** [@m\_shah2](https://discourse.julialang.org/u/m_shah2)\
**Replies:** 3\
**Last updated:** [September 14, 2022, 11:37am UTC](https://discourse.julialang.org/t/bounds-error-while-iterating-over-for-loop/87245 "2022-09-14T11:37:43Z")

</div>

I am trying to run a for loop by iterating over aij where aij is of type Vector{CartesianIndex{2}} (alias for Array{CartesianIndex{2}, 1}). The code is: for (x, y) in zip(aij) xout = find(U\[x, :\]) yout = find(U\[y, :\]…

---

## [Cannot evaluate a vector for some ProductDistribution](https://discourse.julialang.org/t/cannot-evaluate-a-vector-for-some-productdistribution/87224)

<div class="topic-metadata">

**Author:** [@Luis\_Calderon](https://discourse.julialang.org/u/Luis_Calderon)\
**Replies:** 1\
**Last updated:** [September 14, 2022, 10:34am UTC](https://discourse.julialang.org/t/cannot-evaluate-a-vector-for-some-productdistribution/87224 "2022-09-14T10:34:38Z")

</div>

Dear all, I wish to specify a scaled inverse Wishart as formulated in this pdf, bottom of page 3. I understand how to implement it and have the following code so far (focused on the distributions). I’m focused on the ca…

---

## [\[ANN\] ArtifactUtils.jl – Artifacts for the People!](https://discourse.julialang.org/t/ann-artifactutils-jl-artifacts-for-the-people/48524)

<div class="topic-metadata">

**Author:** [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 8:44am UTC](https://discourse.julialang.org/t/ann-artifactutils-jl-artifacts-for-the-people/48524 "2022-09-14T08:44:24Z")

</div>

Many may not know this, but the Artifacts system is actually really useful outside of BinaryBuilder.jl as well, for shipping tarballs in Julia projects in a straightforward way. The only hurdle currently, is that it’s qu…

---

## [Ticks detached when using colsize!(fig.layout, Relative(...)) in Makie](https://discourse.julialang.org/t/ticks-detached-when-using-colsize-fig-layout-relative-in-makie/87250)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 7:07am UTC](https://discourse.julialang.org/t/ticks-detached-when-using-colsize-fig-layout-relative-in-makie/87250 "2022-09-14T07:07:33Z")

</div>

With the following code CairoMakie.activate!() set\_theme!() set\_theme!( Axis = ( xtickalign = 1, ytickalign = 1, xminortickalign = 1, yminortickalign = 1, xscale = log10, …

---

## [Real time data in Pluto notebooks?](https://discourse.julialang.org/t/real-time-data-in-pluto-notebooks/87240)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [September 14, 2022, 1:04am UTC](https://discourse.julialang.org/t/real-time-data-in-pluto-notebooks/87240 "2022-09-14T01:04:12Z")

</div>

Hi all a noob here. I have a ZMQ data stream of IPM’s which update a dataframe. Has anyone used Pluto to house a LIVE ( constantly) updated dataframe in a Pluto cell? the intent is to have a live data environment tha…

---

## [How to omit arithmetic error of MIP solver in JuMP?](https://discourse.julialang.org/t/how-to-omit-arithmetic-error-of-mip-solver-in-jump/87242)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 2\
**Last updated:** [September 13, 2022, 11:28pm UTC](https://discourse.julialang.org/t/how-to-omit-arithmetic-error-of-mip-solver-in-jump/87242 "2022-09-13T23:28:47Z")

</div>

Hi all, I am working on a nonlinear type MIP optimization problem solved through JuMP. My solution is based on Juniper and HiGHS: using Juniper using HiGHS using JuMP using Ipopt R10, R20 = 0.18, 0.195 L11, L21 = 2.4…

---

## [Slow \`reduce(vcat, itr)\`](https://discourse.julialang.org/t/slow-reduce-vcat-itr/87115)

<div class="topic-metadata">

**Author:** [@DNF](https://discourse.julialang.org/u/DNF)\
**Replies:** 26\
**Last updated:** [September 13, 2022, 11:03pm UTC](https://discourse.julialang.org/t/slow-reduce-vcat-itr/87115 "2022-09-13T23:03:50Z")

</div>

reduce(vcat, itr) and reduce(hcat, itr) have special implementations that are supposed to make them faster than vcat(itr...) and hcat(itr...), at least for long iterators. But I am seeing the opposite: It starts out ok: …

---

## [MArray performance](https://discourse.julialang.org/t/marray-performance/87182)

<div class="topic-metadata">

**Author:** [@james3](https://discourse.julialang.org/u/james3)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 10:28pm UTC](https://discourse.julialang.org/t/marray-performance/87182 "2022-09-13T22:28:26Z")

</div>

For small mutable arrays, my (perhaps incorrect) understanding was that MArrays from StaticArrays.jl would provide better performance than regular arrays. However, in the example I am working on (where I use an MArray fo…

---

## [.csv number of rows](https://discourse.julialang.org/t/csv-number-of-rows/27475)

<div class="topic-metadata">

**Author:** [@austinbean](https://discourse.julialang.org/u/austinbean)\
**Replies:** 6\
**Last updated:** [September 13, 2022, 9:41pm UTC](https://discourse.julialang.org/t/csv-number-of-rows/27475 "2022-09-13T21:41:16Z")

</div>

Is there a clever way to determine the number of rows in large .csv or .tsv file without reading a whole column? I’m currently doing: CSV.File("big\_file.csv") |\> Tables.select(:first\_column\_name) |\> DataFrame which te…

---

## [Using @everywhere include() from Distributed.jl?](https://discourse.julialang.org/t/using-everywhere-include-from-distributed-jl/87237)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 9:28pm UTC](https://discourse.julialang.org/t/using-everywhere-include-from-distributed-jl/87237 "2022-09-13T21:28:51Z")

</div>

I’ve got a Weave document (.jmd) and I’m using @everywhere include("./utilities.jl") There’s an error that says the remote machine is trying to load a file not in the current directory, but the same directory as on my …

---

## [LIBSVM vs sklearn](https://discourse.julialang.org/t/libsvm-vs-sklearn/87235)

<div class="topic-metadata">

**Author:** [@Maxim\_Lubov](https://discourse.julialang.org/u/Maxim_Lubov)\
**Replies:** 0\
**Last updated:** [September 13, 2022, 8:54pm UTC](https://discourse.julialang.org/t/libsvm-vs-sklearn/87235 "2022-09-13T20:54:38Z")

</div>

I’m trying to port the SVC-based modelling from python/sklearn to Julia using the LIBSVM.jl package. However, I noticed one strange thing. Sklearn SVC outperforms LIBSVM.jl, although both are based on the same libsvm lib…

---

## [Accessing T-Net in PointNet in Flux3D.jl](https://discourse.julialang.org/t/accessing-t-net-in-pointnet-in-flux3d-jl/87233)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 0\
**Last updated:** [September 13, 2022, 8:46pm UTC](https://discourse.julialang.org/t/accessing-t-net-in-pointnet-in-flux3d-jl/87233 "2022-09-13T20:46:08Z")

</div>

I have a question about PointNet in Flux3D.jl. In the original PointNet paper, the author trained the “T-net” to make PointNet invariant w.r.t. rigid transformations of input point clouds (red dashed box below): Is …

---

## [Add local package at specific version](https://discourse.julialang.org/t/add-local-package-at-specific-version/87153)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 8:30pm UTC](https://discourse.julialang.org/t/add-local-package-at-specific-version/87153 "2022-09-13T20:30:04Z")

</div>

Hi, To install a local package I usually use \] add or \] dev + the path to the package folder. Is there a way yo install a package at a specific version? Something like : \] add c:/MyPackage@0.0.2 If I want to install a…

---

## [Error finding shared libraries when running executable](https://discourse.julialang.org/t/error-finding-shared-libraries-when-running-executable/87230)

<div class="topic-metadata">

**Author:** [@anon22248738](https://discourse.julialang.org/u/anon22248738)\
**Replies:** 2\
**Last updated:** [September 13, 2022, 7:52pm UTC](https://discourse.julialang.org/t/error-finding-shared-libraries-when-running-executable/87230 "2022-09-13T19:52:10Z")

</div>

I’m trying to call a executable from Julia using the run() command but am having some issues.I have a command that calls a Fortran executable with a number of arguments exe --flag arg --flag2 arg and I can successfully r…

---

## [Creating a function to produce stratum indicators efficiently](https://discourse.julialang.org/t/creating-a-function-to-produce-stratum-indicators-efficiently/87229)

<div class="topic-metadata">

**Author:** [@erickawaguchi](https://discourse.julialang.org/u/erickawaguchi)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 7:42pm UTC](https://discourse.julialang.org/t/creating-a-function-to-produce-stratum-indicators-efficiently/87229 "2022-09-13T19:42:31Z")

</div>

Hi all, I am trying to create a function that takes as inputs df, key, and S, where df: Data frame key: Variable to group on (namely subject ID) S: Number of strata and creates a column in df named stratum s…

---

## [Surprising behaviour of @enum conversion from Integer types](https://discourse.julialang.org/t/surprising-behaviour-of-enum-conversion-from-integer-types/23556)

<div class="topic-metadata">

**Author:** [@speps](https://discourse.julialang.org/u/speps)\
**Replies:** 0\
**Last updated:** [April 26, 2019, 1:30pm UTC](https://discourse.julialang.org/t/surprising-behaviour-of-enum-conversion-from-integer-types/23556 "2019-04-26T13:30:45Z")

</div>

I have this code : @enum EnumTest::UInt32 begin ONE = 1 TWO = 2 end @show EnumTest(2) # this works convert(EnumTest, 2) # this fails The output is EnumTest(2) = TWO::EnumTest = 0x00000002 ERROR: LoadError: MethodEr…

---

## [Plots.jl: removing a single axis](https://discourse.julialang.org/t/plots-jl-removing-a-single-axis/9897)

<div class="topic-metadata">

**Author:** [@yha](https://discourse.julialang.org/u/yha)\
**Replies:** 9\
**Last updated:** [September 13, 2022, 6:31pm UTC](https://discourse.julialang.org/t/plots-jl-removing-a-single-axis/9897 "2022-09-13T18:31:36Z")

</div>

I’m trying to remove the x axis (i.e., bottom border, x ticks and x labels) from a plot. For the sake of helping the documentation effort, here’s what I tried so far. My first guess was: plot(x,y,xaxis=nothing) but th…

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

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