# Latest

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

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

**Page:** 1330

---

## [Can I make a Function Call Itself?](https://discourse.julialang.org/t/can-i-make-a-function-call-itself/64067)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 12\
**Last updated:** [July 16, 2021, 7:23am UTC](https://discourse.julialang.org/t/can-i-make-a-function-call-itself/64067 "2021-07-16T07:23:09Z")

</div>

Hi everyone. This might be a REALLY silly question, but I wonder if it is possible. I am making this function Set\_Up(). It is design to load all other functions in my code, force precompilation, load global variables, …

---

## [Weave.jl generating tables for the pdf doctype](https://discourse.julialang.org/t/weave-jl-generating-tables-for-the-pdf-doctype/64716)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 8:14pm UTC](https://discourse.julialang.org/t/weave-jl-generating-tables-for-the-pdf-doctype/64716 "2021-07-15T20:14:40Z")

</div>

I am having an hard time generating tables with Weave.jl using the pdf doctype. For the html doctype i can generate decent tables using PrettyTables.jl. While most options of PrettyTables do not work in Weave, i can at l…

---

## [Sql Server connection string in ODBC.jl](https://discourse.julialang.org/t/sql-server-connection-string-in-odbc-jl/50367)

<div class="topic-metadata">

**Author:** [@Cristian\_Suciava](https://discourse.julialang.org/u/Cristian_Suciava)\
**Replies:** 2\
**Last updated:** [July 16, 2021, 4:45am UTC](https://discourse.julialang.org/t/sql-server-connection-string-in-odbc-jl/50367 "2021-07-16T04:45:39Z")

</div>

I use this code to connect to a Sql Server database, with no credentials All good! ODBC.adddsn("SQL\_Server\_DSN", "SQL Server"; SERVER="x", DATABASE ="x", Trusted\_Connection="True") conn = DBInterface.connect(ODBC…

---

## [./atom: Exec format error](https://discourse.julialang.org/t/atom-exec-format-error/64669)

<div class="topic-metadata">

**Author:** [@shiba\_712](https://discourse.julialang.org/u/shiba_712)\
**Replies:** 2\
**Last updated:** [July 16, 2021, 4:22am UTC](https://discourse.julialang.org/t/atom-exec-format-error/64669 "2021-07-16T04:22:43Z")

</div>

I have recently installed JuliaPro on my computer but while launching using the command ./Launch\_JuliaPro in the installation directory, I get the following error:- ./Launch\_JuliaPro: 22: ./Launch\_JuliaPro: ./atom: Exec…

---

## [RGB conversion to and from an Array, broadcasting](https://discourse.julialang.org/t/rgb-conversion-to-and-from-an-array-broadcasting/64721)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 3\
**Last updated:** [July 16, 2021, 3:27am UTC](https://discourse.julialang.org/t/rgb-conversion-to-and-from-an-array-broadcasting/64721 "2021-07-16T03:27:55Z")

</div>

Hi, I’ve just had a couple of days with Julia - I’m very much enjoying the Pluto, Jupyter and repl environments. Python has been making me bilious. I have some very ‘early-learner’ questions related to idioms for unpac…

---

## [Julia v1.6.2 has been released](https://discourse.julialang.org/t/julia-v1-6-2-has-been-released/64662)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 1:59am UTC](https://discourse.julialang.org/t/julia-v1-6-2-has-been-released/64662 "2021-07-16T01:59:22Z")

</div>

Julia version 1.6.2, the second patch release in the 1.6 series of releases, is now available. You can get binaries for glibc Linux (i686, x86-64, AArch64, ARMv7), musl Linux (x86-64), FreeBSD (x86-64), macOS (x86-64), a…

---

## [Is Julia lazy?](https://discourse.julialang.org/t/is-julia-lazy/64192)

<div class="topic-metadata">

**Author:** [@Gilles\_Dubois](https://discourse.julialang.org/u/Gilles_Dubois)\
**Replies:** 102\
**Last updated:** [July 15, 2021, 11:33pm UTC](https://discourse.julialang.org/t/is-julia-lazy/64192 "2021-07-15T23:33:48Z")

</div>

Hi everybody Right now I use Julia for maths educational purpose. There’s a lot of subjects but I concentrate on linear algebra. Representation of real vector spaces by Floats of any kind isn’t convenient because some d…

---

## [BERT models from huggingface - Transformers.jl](https://discourse.julialang.org/t/bert-models-from-huggingface-transformers-jl/64453)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 1\
**Last updated:** [July 15, 2021, 10:50pm UTC](https://discourse.julialang.org/t/bert-models-from-huggingface-transformers-jl/64453 "2021-07-15T22:50:32Z")

</div>

Hi! @chengchingwen Am planning to use an already pre-trained BERT model for Greek published in huggingface. As we know for using this type of pre-trained models, one depends on python’s hugginface and pytorch. I know t…

---

## [Problem with fitting Beta distribution](https://discourse.julialang.org/t/problem-with-fitting-beta-distribution/64719)

<div class="topic-metadata">

**Author:** [@Taylor\_Dinkins](https://discourse.julialang.org/u/Taylor_Dinkins)\
**Replies:** 1\
**Last updated:** [July 15, 2021, 10:18pm UTC](https://discourse.julialang.org/t/problem-with-fitting-beta-distribution/64719 "2021-07-15T22:18:08Z")

</div>

Trying to do a simple distribution fitting with Distributions package throws me an error. I’ve been able to get it working with various other distributions, including Dirichlet and Binomial, but can’t for Beta. I’m doing…

---

## [Understanding Julia's type system](https://discourse.julialang.org/t/understanding-julias-type-system/64709)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [July 15, 2021, 8:36pm UTC](https://discourse.julialang.org/t/understanding-julias-type-system/64709 "2021-07-15T20:36:07Z")

</div>

I want to describe two kinds of state vectors: CartesianState and KeplerianState. For convenience, I’d like to have these state vectors to be mutable and have labels via LabelledArrays. Now, I’d like to be able to use m…

---

## [Julia could not load dynamic library error when called from Python](https://discourse.julialang.org/t/julia-could-not-load-dynamic-library-error-when-called-from-python/64714)

<div class="topic-metadata">

**Author:** [@Arrigo\_Benedetti](https://discourse.julialang.org/u/Arrigo_Benedetti)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 8:08pm UTC](https://discourse.julialang.org/t/julia-could-not-load-dynamic-library-error-when-called-from-python/64714 "2021-07-15T20:08:09Z")

</div>

I have some Python code calling a Julia function via PythonCall.jl. The Julia function is defined in a module that uses several Julia packages and Pango.jl is a dependency. The line import rasterio in the Python code t…

---

## [Running documenter locally no longer seems to populate the build directory](https://discourse.julialang.org/t/running-documenter-locally-no-longer-seems-to-populate-the-build-directory/64711)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 7:25pm UTC](https://discourse.julialang.org/t/running-documenter-locally-no-longer-seems-to-populate-the-build-directory/64711 "2021-07-15T19:25:07Z")

</div>

I just tried to build a local version of the docs for a package using a method that I believe has succeeded in the past. I start julia (v1.6.2) in the docs subdirectory, Pkd.add the parent directory, Pkg.update() then i…

---

## [Histogram counts in bin under mouse hover](https://discourse.julialang.org/t/histogram-counts-in-bin-under-mouse-hover/53743)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 0\
**Last updated:** [January 21, 2021, 8:01pm UTC](https://discourse.julialang.org/t/histogram-counts-in-bin-under-mouse-hover/53743 "2021-01-21T20:01:01Z")

</div>

I would like to make a histogram, under IJulia jupyter notebook, such that, when I hover the mouse over the bars, I get the number of ocurrences within the corresponding bins, as a tooltip. My MWE is: using PlotlyJS plo…

---

## [Should the repl show images?](https://discourse.julialang.org/t/should-the-repl-show-images/64672)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 16\
**Last updated:** [July 15, 2021, 7:14pm UTC](https://discourse.julialang.org/t/should-the-repl-show-images/64672 "2021-07-15T19:14:54Z")

</div>

When I create an image in the repl I get a huge RGB array, but in Jupyterlab I do get the image. I thought the repl also showed images. That is: using Images, TestImages img = testimage(“mandrill”) shows a mandrill in…

---

## [How use Dataframes columns as a z axis for 3d plot](https://discourse.julialang.org/t/how-use-dataframes-columns-as-a-z-axis-for-3d-plot/64536)

<div class="topic-metadata">

**Author:** [@rodolforbcoutinho](https://discourse.julialang.org/u/rodolforbcoutinho)\
**Replies:** 8\
**Last updated:** [July 15, 2021, 7:02pm UTC](https://discourse.julialang.org/t/how-use-dataframes-columns-as-a-z-axis-for-3d-plot/64536 "2021-07-15T19:02:00Z")

</div>

Hello, I have a TimeArray in which the first column is the timestamp and all other columns are related to energy cost for a load over time. I have about 100 other columns. I’m trying to plot the other columns as a z axi…

---

## [Distributed code loading inside modules](https://discourse.julialang.org/t/distributed-code-loading-inside-modules/62334)

<div class="topic-metadata">

**Author:** [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Replies:** 8\
**Last updated:** [July 15, 2021, 6:58pm UTC](https://discourse.julialang.org/t/distributed-code-loading-inside-modules/62334 "2021-07-15T18:58:10Z")

</div>

I want to move a function that’s defined in a script into my module. The function is something like function test(x) map(\[x\]) do info eval(macroexpand(Distributed, quote @everywhere using Distributions end)) @eve…

---

## [List generation (array of arrays)](https://discourse.julialang.org/t/list-generation-array-of-arrays/64693)

<div class="topic-metadata">

**Author:** [@Cyber](https://discourse.julialang.org/u/Cyber)\
**Replies:** 18\
**Last updated:** [July 15, 2021, 6:28pm UTC](https://discourse.julialang.org/t/list-generation-array-of-arrays/64693 "2021-07-15T18:28:08Z")

</div>

Hello there, I was wondering how could we bulid a list like this: I have a array x = \[1,2,3,4\] and y = \[5,6,7,8\] and now I would like to come up a new array like z = \[ \[1,5\], \[2,6\], \[3,7\], \[4,8\] \] to reflects t…

---

## [Vector in 3 space](https://discourse.julialang.org/t/vector-in-3-space/64701)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 6\
**Last updated:** [July 15, 2021, 5:24pm UTC](https://discourse.julialang.org/t/vector-in-3-space/64701 "2021-07-15T17:24:39Z")

</div>

I’m trying to define a vector in 3 dimensional space for a geometry application. I can define const Vec3 = Array{Number, 3} Vec3(x::Number, y::Number, z::Number) = Array{Number, 3}(x, y, z) in the REPL and call Vec3 …

---

## [How could we add elements in a new array? and how could we use "if" with mutiple conditions?](https://discourse.julialang.org/t/how-could-we-add-elements-in-a-new-array-and-how-could-we-use-if-with-mutiple-conditions/64700)

<div class="topic-metadata">

**Author:** [@Cyber](https://discourse.julialang.org/u/Cyber)\
**Replies:** 6\
**Last updated:** [July 15, 2021, 4:57pm UTC](https://discourse.julialang.org/t/how-could-we-add-elements-in-a-new-array-and-how-could-we-use-if-with-mutiple-conditions/64700 "2021-07-15T16:57:22Z")

</div>

Hello all, In matlab, we could use X = to define an empty array and then add elements in X like X\[1\] = 2 or X\[i\] = rand in a for loop and does not require us to know the size of X in advance. I was wondering how cou…

---

## [Makie - Incorrect isosurface rendering](https://discourse.julialang.org/t/makie-incorrect-isosurface-rendering/64688)

<div class="topic-metadata">

**Author:** [@tehl](https://discourse.julialang.org/u/tehl)\
**Replies:** 3\
**Last updated:** [July 15, 2021, 4:55pm UTC](https://discourse.julialang.org/t/makie-incorrect-isosurface-rendering/64688 "2021-07-15T16:55:43Z")

</div>

The isosurface example from the Makie docs doesn’t render correctly (see image below). Has anyone come across this problem? Potentially relevant glxinfo: Vendor: AMD (0x1002) Device: AMD Radeon (TM) RX 480 Graphics (PO…

---

## [Julia-1.6.2 cannot be compiled](https://discourse.julialang.org/t/julia-1-6-2-cannot-be-compiled/64685)

<div class="topic-metadata">

**Author:** [@DKad](https://discourse.julialang.org/u/DKad)\
**Replies:** 2\
**Last updated:** [July 15, 2021, 4:11pm UTC](https://discourse.julialang.org/t/julia-1-6-2-cannot-be-compiled/64685 "2021-07-15T16:11:10Z")

</div>

I just tried to compile julia-1.6.2 and got the following error: ERROR: Unable to load dependent library /giga/opt/julia-1.6.2/usr/bin/…/lib/libjulia-internal.so.1 Message:/giga/opt/julia-1.6.2/usr/bin/…/lib/libstdc++.…

---

## [Compat section in Project.toml: Do I need to include the compat of my dependencies?](https://discourse.julialang.org/t/compat-section-in-project-toml-do-i-need-to-include-the-compat-of-my-dependencies/64691)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 2\
**Last updated:** [July 15, 2021, 4:08pm UTC](https://discourse.julialang.org/t/compat-section-in-project-toml-do-i-need-to-include-the-compat-of-my-dependencies/64691 "2021-07-15T16:08:06Z")

</div>

say one of my dependencies only works with Julia 1.6, do I need to add also a entry julia = "1.6" to the compat section of my Project.toml?

---

## [Turing.jl: Warnings when running generated\_quantities](https://discourse.julialang.org/t/turing-jl-warnings-when-running-generated-quantities/64698)

<div class="topic-metadata">

**Author:** [@Hakan\_Kjellerstrand](https://discourse.julialang.org/u/Hakan_Kjellerstrand)\
**Replies:** 2\
**Last updated:** [July 15, 2021, 3:57pm UTC](https://discourse.julialang.org/t/turing-jl-warnings-when-running-generated-quantities/64698 "2021-07-15T15:57:52Z")

</div>

When calling generated\_quantities there is always a huge number of warnings with the following message Warning: the following keys were not found in \`vi\`, and thus \`kernel!\` was not applied to these: \["lp"\] └ @ DynamicP…

---

## [Print SUnitRange within tuple as is, not as a vector](https://discourse.julialang.org/t/print-sunitrange-within-tuple-as-is-not-as-a-vector/64678)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [July 15, 2021, 2:02pm UTC](https://discourse.julialang.org/t/print-sunitrange-within-tuple-as-is-not-as-a-vector/64678 "2021-07-15T14:02:46Z")

</div>

I am wondering how to coax show etc to print a StaticArrays.SUnitRange as is, not as a vector of indices. I tried the usual suspects for options in IOContext, didn’t work. I am not even sure if this is intended or a bug. …

---

## [New Julia interface in Wolfram Mathematica works great](https://discourse.julialang.org/t/new-julia-interface-in-wolfram-mathematica-works-great/64681)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 6\
**Last updated:** [July 15, 2021, 1:57pm UTC](https://discourse.julialang.org/t/new-julia-interface-in-wolfram-mathematica-works-great/64681 "2021-07-15T13:57:13Z")

</div>

Mathematica added a built-in Julia interface in version 12 last year. I had a try and found the interface quite convenient. Here’s a short example, using Julia to speed up calculation of Fibonacci numbers, using an ineff…

---

## [Sparse matrix product causes unnecessary casting to "Any" thereby causing issues?](https://discourse.julialang.org/t/sparse-matrix-product-causes-unnecessary-casting-to-any-thereby-causing-issues/64565)

<div class="topic-metadata">

**Author:** [@Annette\_F](https://discourse.julialang.org/u/Annette_F)\
**Replies:** 11\
**Last updated:** [July 15, 2021, 9:11am UTC](https://discourse.julialang.org/t/sparse-matrix-product-causes-unnecessary-casting-to-any-thereby-causing-issues/64565 "2021-07-15T09:11:34Z")

</div>

Hi all, I have a large sparse matrix A ( its size is (2823,2823 ) its type is SparceMatrixCSC{ Integer, Int64} ) with 0/1 values only. I want to get a sparse matrix B = A^2, and get the largest value in this matrix. …

---

## [Regarding \`getproperty\` and public vs. private APIs](https://discourse.julialang.org/t/regarding-getproperty-and-public-vs-private-apis/63059)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 26\
**Last updated:** [July 15, 2021, 8:14am UTC](https://discourse.julialang.org/t/regarding-getproperty-and-public-vs-private-apis/63059 "2021-07-15T08:14:48Z")

</div>

The syntax x.f calls getproperty which is very widely used. Don’t confuse it with getfield which is the default fallback of getproperty.

---

## [Finding specific methods in Julia documentation](https://discourse.julialang.org/t/finding-specific-methods-in-julia-documentation/34690)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 12\
**Last updated:** [July 15, 2021, 8:09am UTC](https://discourse.julialang.org/t/finding-specific-methods-in-julia-documentation/34690 "2021-07-15T08:09:29Z")

</div>

I’m trying to find the 1.X equivalent for flipdim. The intertubes told me that it had been replaced by reverse with a dims keyword https://github.com/JuliaLang/julia/pull/26369 Humorously i can’t figure out how it’s s…

---

## [PDE simulation with ETD2. For computing quasicrystal](https://discourse.julialang.org/t/pde-simulation-with-etd2-for-computing-quasicrystal/64648)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 8\
**Last updated:** [July 15, 2021, 7:47am UTC](https://discourse.julialang.org/t/pde-simulation-with-etd2-for-computing-quasicrystal/64648 "2021-07-15T07:47:49Z")

</div>

Dear all, I am trying to solve a pde using the time stepper ETD2 in Fourier space. My goal was to play with the results of the paper Subramanian, P., A. J. Archer, E. Knobloch, and A. M. Rucklidge. “Spatially Localize…

---

## [What is the simple way to extract julia code to pdf with exact colour and place?](https://discourse.julialang.org/t/what-is-the-simple-way-to-extract-julia-code-to-pdf-with-exact-colour-and-place/64558)

<div class="topic-metadata">

**Author:** [@adikaagas](https://discourse.julialang.org/u/adikaagas)\
**Replies:** 3\
**Last updated:** [July 15, 2021, 3:51am UTC](https://discourse.julialang.org/t/what-is-the-simple-way-to-extract-julia-code-to-pdf-with-exact-colour-and-place/64558 "2021-07-15T03:51:16Z")

</div>

I want to extract my julia code on atom notebook to pdf file, how to do it with the same colour and place?

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

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