# Latest

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

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

**Page:** 1267

---

## [Allocation with StaticArrays](https://discourse.julialang.org/t/allocation-with-staticarrays/68176)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 19\
**Last updated:** [September 15, 2021, 10:29am UTC](https://discourse.julialang.org/t/allocation-with-staticarrays/68176 "2021-09-15T10:29:16Z")

</div>

Hi, I thought I got better at this, but there’s a function that’s creating allocations and I can’t figure out why. I’ve spent a few hours troubleshooting this with no success. Here’s the function: using StaticArrays fu…

---

## [Coding up basic power flow equation](https://discourse.julialang.org/t/coding-up-basic-power-flow-equation/67896)

<div class="topic-metadata">

**Author:** [@mbah](https://discourse.julialang.org/u/mbah)\
**Replies:** 6\
**Last updated:** [September 15, 2021, 9:55am UTC](https://discourse.julialang.org/t/coding-up-basic-power-flow-equation/67896 "2021-09-15T09:55:58Z")

</div>

Hello, I am relatively new to Julia and power systems optimization. At the moment, I am trying to understand power flows from scratch and this involves coding up/defining branch power flows for a simple three bus netwo…

---

## [LoadError: UndefVarError: subset not defined](https://discourse.julialang.org/t/loaderror-undefvarerror-subset-not-defined/68199)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 1\
**Last updated:** [September 15, 2021, 8:44am UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-subset-not-defined/68199 "2021-09-15T08:44:25Z")

</div>

So I installed and loaded the package Lathe.jl and it seemed to have a conflict with DataFrameMeta.jl. Now it seems my DataFrameMeta is corrupted with subset not working: rawdf = @subset(rawdf, :has\_iata .== "Yes", :iat…

---

## [How to fit functions with same parameters?](https://discourse.julialang.org/t/how-to-fit-functions-with-same-parameters/68192)

<div class="topic-metadata">

**Author:** [@y-iizawa](https://discourse.julialang.org/u/y-iizawa)\
**Replies:** 2\
**Last updated:** [September 15, 2021, 7:35am UTC](https://discourse.julialang.org/t/how-to-fit-functions-with-same-parameters/68192 "2021-09-15T07:35:22Z")

</div>

Hello. I have some functions with the same parameters and want to fit these parameters with each data. Example: p is parameters set. Now I consider two parameters p\[1\] and p\[2\] as examples. example\_1(x) = p\[1\] + p\[2\]…

---

## [Emacs-jupyter code-blocks and unicode completion](https://discourse.julialang.org/t/emacs-jupyter-code-blocks-and-unicode-completion/68188)

<div class="topic-metadata">

**Author:** [@ChauhanT](https://discourse.julialang.org/u/ChauhanT)\
**Replies:** 0\
**Last updated:** [September 15, 2021, 1:55am UTC](https://discourse.julialang.org/t/emacs-jupyter-code-blocks-and-unicode-completion/68188 "2021-09-15T01:55:44Z")

</div>

Hi, I’m trying to set up unicode completion in julia for emacs-jupyter and have almost got it working. However, I have a really weird issue. The unicode suggestions show up as expected, but when I select them (by tappin…

---

## [Extracting features from a boxplot in Gadfly](https://discourse.julialang.org/t/extracting-features-from-a-boxplot-in-gadfly/68167)

<div class="topic-metadata">

**Author:** [@varun7rs](https://discourse.julialang.org/u/varun7rs)\
**Replies:** 1\
**Last updated:** [September 15, 2021, 1:54am UTC](https://discourse.julialang.org/t/extracting-features-from-a-boxplot-in-gadfly/68167 "2021-09-15T01:54:28Z")

</div>

I am using Gadfly package to make boxplots. Is it possible to print out the boxplot features i.e., notches, whiskers and quartiles on the terminal?

---

## [Easy call to Julia functions from C++ using C++14](https://discourse.julialang.org/t/easy-call-to-julia-functions-from-c-using-c-14/20751)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 0\
**Last updated:** [February 13, 2019, 3:51pm UTC](https://discourse.julialang.org/t/easy-call-to-julia-functions-from-c-using-c-14/20751 "2019-02-13T15:51:13Z")

</div>

Hi guys! I just want to share a very simple code I created in C++ (using standard C++14) to make calls to Julia functions easier. My use case is that I need to call a lot of functions from my package SatelliteToolbox.jl …

---

## [Embedding Julia code in parallel C++](https://discourse.julialang.org/t/embedding-julia-code-in-parallel-c/68163)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 2\
**Last updated:** [September 14, 2021, 10:53pm UTC](https://discourse.julialang.org/t/embedding-julia-code-in-parallel-c/68163 "2021-09-14T22:53:48Z")

</div>

Hey all- I’m working on a rather large machine learning project that entails using a C++ main to call functions written in Julia. In addition the regular pain of who manages what variables and how to translate between bi…

---

## [Solving a Convex Quadratic Program Using Gurobi & Mosek](https://discourse.julialang.org/t/solving-a-convex-quadratic-program-using-gurobi-mosek/67214)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 12\
**Last updated:** [September 14, 2021, 10:18pm UTC](https://discourse.julialang.org/t/solving-a-convex-quadratic-program-using-gurobi-mosek/67214 "2021-09-14T22:18:25Z")

</div>

I would like to solve the following Quadratic Program / Quadratic Programming: \\begin{aligned} \\arg \\min\_{x} \\quad & \\frac{1}{2} {x}^{T} P x + {x}^{T} q \\\\ \\text{subject to} \\quad & l \\leq A x \\leq u \\end{aligned} The…

---

## [Calling Julia from C++ -- Compatibility with AddressSanitizer](https://discourse.julialang.org/t/calling-julia-from-c-compatibility-with-addresssanitizer/6517)

<div class="topic-metadata">

**Author:** [@jinliangwei](https://discourse.julialang.org/u/jinliangwei)\
**Replies:** 0\
**Last updated:** [October 18, 2017, 4:08am UTC](https://discourse.julialang.org/t/calling-julia-from-c-compatibility-with-addresssanitizer/6517 "2017-10-18T04:08:55Z")

</div>

I have a C++ program that calls Julia functions. In some cases, those Julia functions are dynamically generated and JIT-compiled. I tried to use AddressSanitizer (libasan) to check for memory errors in my program, but it…

---

## [Calling Julia Functions using 'cfunction'](https://discourse.julialang.org/t/calling-julia-functions-using-cfunction/9032)

<div class="topic-metadata">

**Author:** [@pemryan](https://discourse.julialang.org/u/pemryan)\
**Replies:** 0\
**Last updated:** [February 13, 2018, 12:06pm UTC](https://discourse.julialang.org/t/calling-julia-functions-using-cfunction/9032 "2018-02-13T12:06:16Z")

</div>

Hello, Besides the examples given in doc (https://docs.julialang.org/en/stable/manual/embedding/), I figured out two more methods to call Julia functions in C, using the built-in ‘cfunction’: 1) use julia cfunction …

---

## [How to free resources used within the JuliaCall environment?](https://discourse.julialang.org/t/how-to-free-resources-used-within-the-juliacall-environment/66565)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 0\
**Last updated:** [August 17, 2021, 7:09pm UTC](https://discourse.julialang.org/t/how-to-free-resources-used-within-the-juliacall-environment/66565 "2021-08-17T19:09:16Z")

</div>

What is the best way to do this? Is there a variable within the R session that I can rm() to free memory from the julia variables that were created?

---

## [How to write a custom distribution using pdf from a Kernel Density Estimator?](https://discourse.julialang.org/t/how-to-write-a-custom-distribution-using-pdf-from-a-kernel-density-estimator/68175)

<div class="topic-metadata">

**Author:** [@vkv](https://discourse.julialang.org/u/vkv)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 9:50pm UTC](https://discourse.julialang.org/t/how-to-write-a-custom-distribution-using-pdf-from-a-kernel-density-estimator/68175 "2021-09-14T21:50:12Z")

</div>

Let x = rand(100); #some data PDF of x can be estimated using KDE: using KernelDensity KDE\_x = kde(x) ik = InterpKDE(KDE\_x) KDE\_pdf(x) = pdf(ik, x) How can the KDE\_pdf function be used in to construct a custom distri…

---

## [How to make fast JuliaCall?](https://discourse.julialang.org/t/how-to-make-fast-juliacall/51602)

<div class="topic-metadata">

**Author:** [@Ravinder\_Ram](https://discourse.julialang.org/u/Ravinder_Ram)\
**Replies:** 0\
**Last updated:** [December 10, 2020, 11:38am UTC](https://discourse.julialang.org/t/how-to-make-fast-juliacall/51602 "2020-12-10T11:38:45Z")

</div>

I made the package using JuliaCall so that I can use in R studio. But it is slower than R is my code not running on JIT julia compiler. how to make fast juliacall?

---

## [Repeated section of code](https://discourse.julialang.org/t/repeated-section-of-code/68157)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 5\
**Last updated:** [September 14, 2021, 9:17pm UTC](https://discourse.julialang.org/t/repeated-section-of-code/68157 "2021-09-14T21:17:20Z")

</div>

Hello, I have certain parts of my code that show up in a lot of functions. They are simple blocks of math like: a=x+2 b=a+3 ... And a and b are later used in different ways. One way of doing this is like this: functi…

---

## [How to prevent this warning](https://discourse.julialang.org/t/how-to-prevent-this-warning/68159)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 2\
**Last updated:** [September 14, 2021, 8:49pm UTC](https://discourse.julialang.org/t/how-to-prevent-this-warning/68159 "2021-09-14T20:49:17Z")

</div>

objc\[5352\]: Class RunLoopModeTracker is implemented in both /opt/miniconda3/lib/libQt5Core.5.9.7.dylib (0x168cffa80) and /Users/lewis/.julia/artifacts/d594d9e68b9d104aaf1a41d933728d2dad54c869/lib/QtCore.framework/Version…

---

## [WGLMakie.jl in Pluto running on remote machine](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 3\
**Last updated:** [September 14, 2021, 8:47pm UTC](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169 "2021-09-14T20:47:14Z")

</div>

I am used to WGLMakie.jl visualizations in Pluto locally, following the instructions in the docs: using JSServe Page() # create page in one cell and then using WGLMakie scatter(rand(100), rand(100)) Everything works…

---

## [Slow lower triangular solves when compared to full Cholesky](https://discourse.julialang.org/t/slow-lower-triangular-solves-when-compared-to-full-cholesky/68122)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 6\
**Last updated:** [September 14, 2021, 8:12pm UTC](https://discourse.julialang.org/t/slow-lower-triangular-solves-when-compared-to-full-cholesky/68122 "2021-09-14T20:12:25Z")

</div>

Can somebody here help me understand why in this code solving with the L in A = LL^T is an order of magnitude slower than just solving using A? Here is a MWE: using BenchmarkTools if !(@isdefined x) # because I lazily …

---

## [Submodules and variable scopes](https://discourse.julialang.org/t/submodules-and-variable-scopes/68161)

<div class="topic-metadata">

**Author:** [@charperflow](https://discourse.julialang.org/u/charperflow)\
**Replies:** 9\
**Last updated:** [September 14, 2021, 7:31pm UTC](https://discourse.julialang.org/t/submodules-and-variable-scopes/68161 "2021-09-14T19:31:04Z")

</div>

I have a quick question about sub modules and scope. I have tried to search for similar questions but have not found an answer, so sorry if this has been asked before: I have created a project directory with the follow…

---

## [Long training time using sciml\_train on universal DAE](https://discourse.julialang.org/t/long-training-time-using-sciml-train-on-universal-dae/46352)

<div class="topic-metadata">

**Author:** [@mbossart](https://discourse.julialang.org/u/mbossart)\
**Replies:** 18\
**Last updated:** [September 14, 2021, 5:49pm UTC](https://discourse.julialang.org/t/long-training-time-using-sciml-train-on-universal-dae/46352 "2021-09-14T17:49:30Z")

</div>

I’m hoping to gather some advice on how to speed up the following example, which attempts to train a NN to learn part of the dynamics of a DAE system. The first part below simply solves the true DAE in order to generate…

---

## [Multithreaded synchronization using events allocates a lot](https://discourse.julialang.org/t/multithreaded-synchronization-using-events-allocates-a-lot/68158)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 0\
**Last updated:** [September 14, 2021, 5:44pm UTC](https://discourse.julialang.org/t/multithreaded-synchronization-using-events-allocates-a-lot/68158 "2021-09-14T17:44:22Z")

</div>

Context I’d like to use threads to parallelise a physics simulation code. The amount of work each thread has to do in a single loop might be quite small, so I want to keep all the threads running all the time as a lightw…

---

## [How to avoid clipping points at plot boundaries?](https://discourse.julialang.org/t/how-to-avoid-clipping-points-at-plot-boundaries/68150)

<div class="topic-metadata">

**Author:** [@gedankenexperiment](https://discourse.julialang.org/u/gedankenexperiment)\
**Replies:** 6\
**Last updated:** [September 14, 2021, 5:25pm UTC](https://discourse.julialang.org/t/how-to-avoid-clipping-points-at-plot-boundaries/68150 "2021-09-14T17:25:08Z")

</div>

Hi there, I have defined axis limits such that I have ticks at the boundaries of my plot. But data points whose values correspond to the limits are clipped at the plot boundaries. In R, one can prevent this by using coo…

---

## [Display mutiple plots (without subplots) through Julia's console](https://discourse.julialang.org/t/display-mutiple-plots-without-subplots-through-julias-console/10536)

<div class="topic-metadata">

**Author:** [@Sin](https://discourse.julialang.org/u/Sin)\
**Replies:** 2\
**Last updated:** [September 14, 2021, 5:02pm UTC](https://discourse.julialang.org/t/display-mutiple-plots-without-subplots-through-julias-console/10536 "2021-09-14T17:02:00Z")

</div>

Hello ! I have to display 3 different plots (without using subplot) trought the console but it only shows the last one. What can I do in order to display all the plots ? This code isn’t working, it’s only to illustrat…

---

## [Precompile error with DataFrames](https://discourse.julialang.org/t/precompile-error-with-dataframes/68154)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 6\
**Last updated:** [September 14, 2021, 4:52pm UTC](https://discourse.julialang.org/t/precompile-error-with-dataframes/68154 "2021-09-14T16:52:45Z")

</div>

I started this post because of an issue with CSV, but now I have a precompile error with DataFrames. It installs ok, but when I try using it, I get \\u250c Info: Precompiling DataFrames \[a93c6f00-e57d-5684-b7b6-d8193f3…

---

## [Finding plotting function attributes, e.g. alpha, for Makie plotting functions](https://discourse.julialang.org/t/finding-plotting-function-attributes-e-g-alpha-for-makie-plotting-functions/68153)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 4:22pm UTC](https://discourse.julialang.org/t/finding-plotting-function-attributes-e-g-alpha-for-makie-plotting-functions/68153 "2021-09-14T16:22:20Z")

</div>

Is there a programmatic way (or better documentation available) to find the available attributes for each plotting function. For example, the arrows function has a nice attribute list in help and at https://makie.juliap…

---

## [Given a PostgresSQL.jl connection string, what's the easiest way to create a table in the database by copying a dataframe into it?](https://discourse.julialang.org/t/given-a-postgressql-jl-connection-string-whats-the-easiest-way-to-create-a-table-in-the-database-by-copying-a-dataframe-into-it/68131)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 6\
**Last updated:** [September 14, 2021, 3:43pm UTC](https://discourse.julialang.org/t/given-a-postgressql-jl-connection-string-whats-the-easiest-way-to-create-a-table-in-the-database-by-copying-a-dataframe-into-it/68131 "2021-09-14T15:43:56Z")

</div>

I have tried using ODBC conn = ODBC.Connection("Driver={PostgreSQL Unicode(x64)};Server=db.bit.io;Port=5432;Database=bitdotio;Uid=xxx;Pwd=xxx;") tbl = DataFrame(a=1:3) ODBC.load(tbl, conn, "tbl1"; append=false) But i…

---

## [Reading in with WAV yields different result from data exported through Audacity](https://discourse.julialang.org/t/reading-in-with-wav-yields-different-result-from-data-exported-through-audacity/68102)

<div class="topic-metadata">

**Author:** [@Nenndul](https://discourse.julialang.org/u/Nenndul)\
**Replies:** 7\
**Last updated:** [September 14, 2021, 3:41pm UTC](https://discourse.julialang.org/t/reading-in-with-wav-yields-different-result-from-data-exported-through-audacity/68102 "2021-09-14T15:41:46Z")

</div>

I have a simple program that I want to run on a wav file. To test the algorithm I have used audacity’s export function to generate a CSV file, and everything works exactly as expected. But when I use WAV: data, fs = wa…

---

## [Eigenvalues and extended precision](https://discourse.julialang.org/t/eigenvalues-and-extended-precision/68119)

<div class="topic-metadata">

**Author:** [@zmoitier](https://discourse.julialang.org/u/zmoitier)\
**Replies:** 10\
**Last updated:** [September 14, 2021, 1:31pm UTC](https://discourse.julialang.org/t/eigenvalues-and-extended-precision/68119 "2021-09-14T13:31:15Z")

</div>

I am interested in computing a small proportion (between 3 and 10% of the matrix size) of the eigenvalues of a matrix with extended precision. As a toy example, let’s take the matrix A define by: T = Complex{Float128} N…

---

## [Using the solver SDPT3 with PowerModels.jl](https://discourse.julialang.org/t/using-the-solver-sdpt3-with-powermodels-jl/68070)

<div class="topic-metadata">

**Author:** [@aaldik](https://discourse.julialang.org/u/aaldik)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 2:52pm UTC](https://discourse.julialang.org/t/using-the-solver-sdpt3-with-powermodels-jl/68070 "2021-09-14T14:52:46Z")

</div>

Hello I’m trying to use the solver SDPT3 for solving a SDP problem using the library PowerModels.jl that utilizes JuMP, the error that I get is julia\> test=run\_opf(“case3\_SDP.m”,SDPWRMPowerModel,solver4) ┌ Warning: Ma…

---

## [Postdoc in Computational Biology / Microbiome research](https://discourse.julialang.org/t/postdoc-in-computational-biology-microbiome-research/68151)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 0\
**Last updated:** [September 14, 2021, 2:47pm UTC](https://discourse.julialang.org/t/postdoc-in-computational-biology-microbiome-research/68151 "2021-09-14T14:47:19Z")

</div>

The team I work with is looking for a postdoc in computational biology / microbiome research. We’re studying the relationships between the microbiome in infants with neurocognitive development, especially executive funct…

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

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