# Latest

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

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

**Page:** 914

---

## [Vector of Matrices](https://discourse.julialang.org/t/vector-of-matrices/87833)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 7:28pm UTC](https://discourse.julialang.org/t/vector-of-matrices/87833 "2022-09-26T19:28:39Z")

</div>

I’m trying to index into an object that is a vector of 1d matrices: I want the third element from every row vector. I want this returned as a column vector. How do I do this?

---

## [Is there an easy way to precompile functions without running them?](https://discourse.julialang.org/t/is-there-an-easy-way-to-precompile-functions-without-running-them/87831)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 0\
**Last updated:** [September 26, 2022, 6:37pm UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-precompile-functions-without-running-them/87831 "2022-09-26T18:37:43Z")

</div>

Hi! I have a package that has an interface with a database. I want that all functions get precompiled, but I cannot use SnoopCompile, for example, since it requires to actually run the functions. It is not possible here…

---

## [Demo: Example of CUDA/OpenGL interop in Julia](https://discourse.julialang.org/t/demo-example-of-cuda-opengl-interop-in-julia/87830)

<div class="topic-metadata">

**Author:** [@erikedin](https://discourse.julialang.org/u/erikedin)\
**Replies:** 0\
**Last updated:** [September 26, 2022, 6:30pm UTC](https://discourse.julialang.org/t/demo-example-of-cuda-opengl-interop-in-julia/87830 "2022-09-26T18:30:44Z")

</div>

Hello! I’m working to learn a bit about graphics and CUDA programming in Julia. I made an effort to use GLFW and OpenGL to open create a window, and render graphics to that window from a CUDA kernel. I’ve seen that othe…

---

## [Difference between \`include\` and \`using\`](https://discourse.julialang.org/t/difference-between-include-and-using/87795)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 7\
**Last updated:** [September 26, 2022, 6:01pm UTC](https://discourse.julialang.org/t/difference-between-include-and-using/87795 "2022-09-26T18:01:52Z")

</div>

When using Oxygen.jl, I noticed an unexpected difference between using and include. I created a simple project using a slightly modified version of the example code in the readme. (@v1.8) pkg\> generate OxygenExample G…

---

## [Gnuplot error](https://discourse.julialang.org/t/gnuplot-error/83863)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 31\
**Last updated:** [September 26, 2022, 4:56pm UTC](https://discourse.julialang.org/t/gnuplot-error/83863 "2022-09-26T16:56:19Z")

</div>

I’m now getting these errors with Gnuplot.jl: Cound not start a gnuplot process with command "gnuplot". Enabling dry sessions... How does one debug something like this? I checked, and gnuplot can be started from …

---

## [How can I tell Julia what are the parameters in a linear model?](https://discourse.julialang.org/t/how-can-i-tell-julia-what-are-the-parameters-in-a-linear-model/87692)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 14\
**Last updated:** [September 26, 2022, 5:24pm UTC](https://discourse.julialang.org/t/how-can-i-tell-julia-what-are-the-parameters-in-a-linear-model/87692 "2022-09-26T17:24:11Z")

</div>

Hi all! So, I’m experimenting with the linear regression ecosystem (GLM, Plots, DataFrames, StatsPlots and CSV). I understood how to produce a simple linear regression model and a multivariate one. I know that OLS work…

---

## [CategoricalArrays forces OpenSpecFun\_jll recompilation](https://discourse.julialang.org/t/categoricalarrays-forces-openspecfun-jll-recompilation/87759)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 25\
**Last updated:** [September 26, 2022, 4:47pm UTC](https://discourse.julialang.org/t/categoricalarrays-forces-openspecfun-jll-recompilation/87759 "2022-09-26T16:47:58Z")

</div>

@tim.holy here’s a fresh invalidation issue. CategoricalArrays seems to invalidate OpenSpecFun\_jll compilation. \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_…

---

## [PackageCompiler + Sockets + Web app](https://discourse.julialang.org/t/packagecompiler-sockets-web-app/28793)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 11\
**Last updated:** [September 26, 2022, 3:57pm UTC](https://discourse.julialang.org/t/packagecompiler-sockets-web-app/28793 "2022-09-26T15:57:43Z")

</div>

I’m trying to build an image of a simple web project. The project is present as a package in the global list of packages and also is located my dev path. But getting stable error: ./build\_native.jl \[ Info: Copying syste…

---

## [Setting \`axis equal\`](https://discourse.julialang.org/t/setting-axis-equal/50387)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 3:19pm UTC](https://discourse.julialang.org/t/setting-axis-equal/50387 "2022-09-26T15:19:59Z")

</div>

Is there any way to set x, y, and z axis to equal scaling (like Matlab’s axis equal command)? Setting aspect\_ratio=1 or aspect\_ratio=:equal seems to set two out of three axis correctly (oddly enough, sometimes x and y a…

---

## [When should inline not to be used?](https://discourse.julialang.org/t/when-should-inline-not-to-be-used/87804)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 7\
**Last updated:** [September 26, 2022, 3:13pm UTC](https://discourse.julialang.org/t/when-should-inline-not-to-be-used/87804 "2022-09-26T15:13:02Z")

</div>

I found, using @inline in some situation can make 10 times more allocation than that without using it. I wonder why this happen?

---

## [Runestone iOS editor now has Julia syntax highlighting](https://discourse.julialang.org/t/runestone-ios-editor-now-has-julia-syntax-highlighting/87819)

<div class="topic-metadata">

**Author:** [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Replies:** 0\
**Last updated:** [September 26, 2022, 2:54pm UTC](https://discourse.julialang.org/t/runestone-ios-editor-now-has-julia-syntax-highlighting/87819 "2022-09-26T14:54:27Z")

</div>

No affiliation. I suggested that the Runestone text editor for iOS add Julia language support and he just released an update with Julia highlighting. Runestone: ‎Runestone Text Editor on the App Store Working Copy: ‎Wo…

---

## [Kernel fails when number of blocks exceeds number of SM's (?)](https://discourse.julialang.org/t/kernel-fails-when-number-of-blocks-exceeds-number-of-sms/87800)

<div class="topic-metadata">

**Author:** [@lodygaw](https://discourse.julialang.org/u/lodygaw)\
**Replies:** 3\
**Last updated:** [September 26, 2022, 2:11pm UTC](https://discourse.julialang.org/t/kernel-fails-when-number-of-blocks-exceeds-number-of-sms/87800 "2022-09-26T14:11:40Z")

</div>

Hi, I want to write a kernel that will filter values in input arrays of predefined length based on some condition. Also, I would like to have “good” values (which fulfill the condition) at the beginning of this arrays. …

---

## [How to make an immutable a possible type parameter for Val(...)](https://discourse.julialang.org/t/how-to-make-an-immutable-a-possible-type-parameter-for-val/87812)

<div class="topic-metadata">

**Author:** [@jt1](https://discourse.julialang.org/u/jt1)\
**Replies:** 0\
**Last updated:** [September 26, 2022, 1:36pm UTC](https://discourse.julialang.org/t/how-to-make-an-immutable-a-possible-type-parameter-for-val/87812 "2022-09-26T13:36:14Z")

</div>

struct Temp{A} a::A end Val((1,2)) #Works Val(Temp((1,2))) #Works Val((:a,:b)) #Works Val(Temp((:a,:b))) #Fails I don’t really get why the second and third work, but the 4th doesn’t? The third al…

---

## [LightOSM/Agents KeyError "way" not found](https://discourse.julialang.org/t/lightosm-agents-keyerror-way-not-found/87367)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 4\
**Last updated:** [September 26, 2022, 12:09pm UTC](https://discourse.julialang.org/t/lightosm-agents-keyerror-way-not-found/87367 "2022-09-26T12:09:35Z")

</div>

Hi, I have osm.pbf (from osm-geofabrics) file which I converted to an .osm file using osmosis osmosis \\ --read-pbf guadeloupe-latest.osm.pbf \\ --tf accept-ways highway=motorway \\ --used-node \\ …

---

## [JSON3 stack overflow with generics](https://discourse.julialang.org/t/json3-stack-overflow-with-generics/87648)

<div class="topic-metadata">

**Author:** [@lklein](https://discourse.julialang.org/u/lklein)\
**Replies:** 4\
**Last updated:** [September 26, 2022, 11:49am UTC](https://discourse.julialang.org/t/json3-stack-overflow-with-generics/87648 "2022-09-26T11:49:07Z")

</div>

When running the following code, I get a StackOverflow error. I do not understand why that error happens. It seems to have something to do with the compilers reasoning about generics. Any input on why that error happen…

---

## [Creating a new dataframe from another based on mapping between variables](https://discourse.julialang.org/t/creating-a-new-dataframe-from-another-based-on-mapping-between-variables/87805)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 11:33am UTC](https://discourse.julialang.org/t/creating-a-new-dataframe-from-another-based-on-mapping-between-variables/87805 "2022-09-26T11:33:24Z")

</div>

I have dataframe where one column contains information about student grades from 1 to 13. Let’s call that GradeA. Another column contains information about how many students got the particular GradeA. Now consider that …

---

## [References and implementation for safe/hybrid univariate Newton's method](https://discourse.julialang.org/t/references-and-implementation-for-safe-hybrid-univariate-newtons-method/87638)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 14\
**Last updated:** [September 26, 2022, 9:58am UTC](https://discourse.julialang.org/t/references-and-implementation-for-safe-hybrid-univariate-newtons-method/87638 "2022-09-26T09:58:34Z")

</div>

There exist variants of Newton’s method with safeguards against non-convergence (escape bracket, not converging “fast enough”, etc, in which case they switch to a bracketing method like Brent’s or bisection). Various imp…

---

## [What if I want to have two REPLs in VS Code?](https://discourse.julialang.org/t/what-if-i-want-to-have-two-repls-in-vs-code/61318)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 5\
**Last updated:** [September 26, 2022, 8:18am UTC](https://discourse.julialang.org/t/what-if-i-want-to-have-two-repls-in-vs-code/61318 "2022-09-26T08:18:24Z")

</div>

I want to be able to use two REPL in one window. Is the correct procedure to use “Julia: Run in new process”? (If it was actually working, which it isn’t: the execution occurs in the debugger.) What if I open a new termi…

---

## [Is There Any Way to Plot Secant Line and Tangent Line given a point in a function?](https://discourse.julialang.org/t/is-there-any-way-to-plot-secant-line-and-tangent-line-given-a-point-in-a-function/87773)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 7:43am UTC](https://discourse.julialang.org/t/is-there-any-way-to-plot-secant-line-and-tangent-line-given-a-point-in-a-function/87773 "2022-09-26T07:43:43Z")

</div>

Hi all, I wonder if there is any way to draw (automatically): a secant line a tangent line with known function and a point at that function, is it possible? I use pyplot backend, but I want to know other backend plo…

---

## [Webpage not rendering correctly on GitHub pages](https://discourse.julialang.org/t/webpage-not-rendering-correctly-on-github-pages/87769)

<div class="topic-metadata">

**Author:** [@leoflotor](https://discourse.julialang.org/u/leoflotor)\
**Replies:** 3\
**Last updated:** [September 26, 2022, 7:40am UTC](https://discourse.julialang.org/t/webpage-not-rendering-correctly-on-github-pages/87769 "2022-09-26T07:40:55Z")

</div>

Hi! I wanted to start my first personal website using Franklin but with no success on rendering my site as it should. I uploaded the default site that Franklin creates because I first wanted to check that all was runni…

---

## [Joint all layers in only one with Luxor](https://discourse.julialang.org/t/joint-all-layers-in-only-one-with-luxor/87798)

<div class="topic-metadata">

**Author:** [@jdavidc](https://discourse.julialang.org/u/jdavidc)\
**Replies:** 1\
**Last updated:** [September 26, 2022, 7:35am UTC](https://discourse.julialang.org/t/joint-all-layers-in-only-one-with-luxor/87798 "2022-09-26T07:35:58Z")

</div>

I am doing an image pixel by pixel using Luxor.rect(), but I need to collapse all my “squares” in only one layer. I want to export the image as a vector because I need to use it as a CAD file and having many layers is a …

---

## [Fixing GBQ.jl - Dict to DataFrames](https://discourse.julialang.org/t/fixing-gbq-jl-dict-to-dataframes/87685)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 5\
**Last updated:** [September 26, 2022, 6:50am UTC](https://discourse.julialang.org/t/fixing-gbq-jl-dict-to-dataframes/87685 "2022-09-26T06:50:26Z")

</div>

Hi All, I am trying to fix GBQ.jl (as it seems to be the only 100% easy way to access Google Big Query, correct me if I am wrong). When running it with DataFrames 0.27 it works fine, but using the latest version it no l…

---

## [\[Ann\] IntervalRootFinding.jl for finding all roots of a multivariate function](https://discourse.julialang.org/t/ann-intervalrootfinding-jl-for-finding-all-roots-of-a-multivariate-function/9515)

<div class="topic-metadata">

**Author:** [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Replies:** 52\
**Last updated:** [September 26, 2022, 5:12am UTC](https://discourse.julialang.org/t/ann-intervalrootfinding-jl-for-finding-all-roots-of-a-multivariate-function/9515 "2022-09-26T05:12:37Z")

</div>

We are excited to announce v0.2 of the IntervalRootFinding.jl package, which has been completely rewritten from scratch. This package exports a function roots that is guaranteed to find all roots of a given function \\ma…

---

## [CUDA.jl kernel is half as fast as c++ Kernel](https://discourse.julialang.org/t/cuda-jl-kernel-is-half-as-fast-as-c-kernel/87651)

<div class="topic-metadata">

**Author:** [@fft](https://discourse.julialang.org/u/fft)\
**Replies:** 11\
**Last updated:** [September 26, 2022, 2:19am UTC](https://discourse.julialang.org/t/cuda-jl-kernel-is-half-as-fast-as-c-kernel/87651 "2022-09-26T02:19:11Z")

</div>

I have a kernel I wrote using CUDA.jl. It gets the correct answer, but is half as fast as the equivalent c++/cuda kernel I coded up. I was hoping someone could look at it and see if there are any optimizations to be done…

---

## [Check if my Plot is Right for sin(|x|)](https://discourse.julialang.org/t/check-if-my-plot-is-right-for-sin-x/87216)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 5\
**Last updated:** [September 26, 2022, 2:17am UTC](https://discourse.julialang.org/t/check-if-my-plot-is-right-for-sin-x/87216 "2022-09-26T02:17:43Z")

</div>

Hi all, I want to know whether my plot for \\sin (|x|) is correct or not, this is the code: using Plots, LaTeXStrings gr() function pitick(start, stop, denom; mode=:text) a = Int(cld(start, π/denom)) b = Int(fl…

---

## [Objects of type SparseArrays.SparseMatrixCSC{Float64, Int64} are not callable](https://discourse.julialang.org/t/objects-of-type-sparsearrays-sparsematrixcsc-float64-int64-are-not-callable/87791)

<div class="topic-metadata">

**Author:** [@m\_shah2](https://discourse.julialang.org/u/m_shah2)\
**Replies:** 1\
**Last updated:** [September 25, 2022, 11:39pm UTC](https://discourse.julialang.org/t/objects-of-type-sparsearrays-sparsematrixcsc-float64-int64-are-not-callable/87791 "2022-09-25T23:39:01Z")

</div>

When I try to run T\_motif = spectral\_embedding(W, 3); T\_edge = spectral\_embedding(max.(A, A’), 3); I get an error: MethodError: objects of type SparseArrays.SparseMatrixCSC{Float64, Int64} are not callable Use squar…

---

## [RFC: Compressed (base-6) floating point, taking 1/8 the space (new plan 1/64 compression for neural networks)](https://discourse.julialang.org/t/rfc-compressed-base-6-floating-point-taking-1-8-the-space-new-plan-1-64-compression-for-neural-networks/87289)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 15\
**Last updated:** [September 25, 2022, 7:16pm UTC](https://discourse.julialang.org/t/rfc-compressed-base-6-floating-point-taking-1-8-the-space-new-plan-1-64-compression-for-neural-networks/87289 "2022-09-25T19:16:49Z")

</div>

I’ll likely be making a package later, but this may already be useful for someone. I though about posting under performance category, but so far decided against, since I’m not (yet) asking for tuning advice, but this wou…

---

## [How to highlight Julia's code on web using Highlight.js](https://discourse.julialang.org/t/how-to-highlight-julias-code-on-web-using-highlight-js/87786)

<div class="topic-metadata">

**Author:** [@Reza-Reza](https://discourse.julialang.org/u/Reza-Reza)\
**Replies:** 1\
**Last updated:** [September 25, 2022, 9:02pm UTC](https://discourse.julialang.org/t/how-to-highlight-julias-code-on-web-using-highlight-js/87786 "2022-09-25T21:02:03Z")

</div>

Highlight.js does not seem to support Julia. Does anybody know a workaround to add Julia support. I use blogspot service and a CDN service of highlight.js to stylize Python code, which does not work for Julia since it is…

---

## [Return value optimization and named return value optimization](https://discourse.julialang.org/t/return-value-optimization-and-named-return-value-optimization/87782)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 7\
**Last updated:** [September 25, 2022, 8:27pm UTC](https://discourse.julialang.org/t/return-value-optimization-and-named-return-value-optimization/87782 "2022-09-25T20:27:00Z")

</div>

Does Julia have these optimizations available like in C++? I.e., if I preallocate a value in the caller to store the return from the callee, will the callee write to that memory, or will it be allocated and then copied? …

---

## [Initialize array to concatenate in a for loop](https://discourse.julialang.org/t/initialize-array-to-concatenate-in-a-for-loop/87762)

<div class="topic-metadata">

**Author:** [@nbagg](https://discourse.julialang.org/u/nbagg)\
**Replies:** 9\
**Last updated:** [September 25, 2022, 7:47pm UTC](https://discourse.julialang.org/t/initialize-array-to-concatenate-in-a-for-loop/87762 "2022-09-25T19:47:31Z")

</div>

Hi there, I am trying to concatenate arrays in a for loop. However, I am unsure of how to initialize the array as I keep getting dimension errors. Please see my code below and the error I get. allArrays = Float64\[\] ##…

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

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