# Latest

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

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

**Page:** 850

---

## [Working with multiple columns in DataFramesMeta, programmatically](https://discourse.julialang.org/t/working-with-multiple-columns-in-dataframesmeta-programmatically/91056)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 10\
**Last updated:** [November 30, 2022, 7:27pm UTC](https://discourse.julialang.org/t/working-with-multiple-columns-in-dataframesmeta-programmatically/91056 "2022-11-30T19:27:11Z")

</div>

Suppose I have the following DataFrame: test = DataFrame( w = \[10, 13, 5\], a1 = \[12, 9, 6\], a2 = \[9, 10, 8\], a3 = \[14, 10, 12\] ) 3×4 DataFrame Row │ w a1 a2 a3 │ Int64 Int64 Int…

---

## [Jupyter markdown images not showing](https://discourse.julialang.org/t/jupyter-markdown-images-not-showing/91052)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 6\
**Last updated:** [November 30, 2022, 6:07pm UTC](https://discourse.julialang.org/t/jupyter-markdown-images-not-showing/91052 "2022-11-30T18:07:21Z")

</div>

I have tried to follow all the possible ways of inserting images into Markdown cell in Jupyter Notebooks, but I can’t get anything to render. The documentation I have found was for Markdown in Python Notebooks, so maybe…

---

## [How to read a table from url](https://discourse.julialang.org/t/how-to-read-a-table-from-url/90985)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 8\
**Last updated:** [November 30, 2022, 5:44pm UTC](https://discourse.julialang.org/t/how-to-read-a-table-from-url/90985 "2022-11-30T17:44:08Z")

</div>

With pandas I can read a table into a dataframe, as follows: import pandas as pd dfs = pd.read\_html('http://stats.ioinformatics.org/countries/')#returns a list of tables df=dfs\[0\] df.head()#inspect header I searched fo…

---

## [The built-in complex division is unreasonably slow](https://discourse.julialang.org/t/the-built-in-complex-division-is-unreasonably-slow/91026)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 3\
**Last updated:** [November 30, 2022, 5:13pm UTC](https://discourse.julialang.org/t/the-built-in-complex-division-is-unreasonably-slow/91026 "2022-11-30T17:13:29Z")

</div>

@btime x/y setup=(x=rand(ComplexF64);y=rand(ComplexF64)); gives 9.853 ns (0 allocations: 0 bytes) while function frac(x::ComplexF64, y::ComplexF64) y2=y.re^2+y.im^2 return Complex((x.re\*y.re+x.im\*y.im)/y2, (x…

---

## [Linux raw socket](https://discourse.julialang.org/t/linux-raw-socket/91044)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 5\
**Last updated:** [November 30, 2022, 4:45pm UTC](https://discourse.julialang.org/t/linux-raw-socket/91044 "2022-11-30T16:45:15Z")

</div>

Is there a way to open a raw linux socket through Julia? From the documentation, it seems that the answer to my question is no, but I wanted to double check.

---

## [Dividing array by float: is multiplying with precalculated inverse worth it](https://discourse.julialang.org/t/dividing-array-by-float-is-multiplying-with-precalculated-inverse-worth-it/90943)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 12\
**Last updated:** [November 30, 2022, 4:11pm UTC](https://discourse.julialang.org/t/dividing-array-by-float-is-multiplying-with-precalculated-inverse-worth-it/90943 "2022-11-30T16:11:17Z")

</div>

What is best, bigvec ./ some\_float() or bigvec .\* (1 / some\_float()) ? I looked at @code\_native to see if the first gets compiled to the second, but — from the little I understand of the output — it doesn’t seem so? …

---

## [Is Julia a modular programming language?](https://discourse.julialang.org/t/is-julia-a-modular-programming-language/91053)

<div class="topic-metadata">

**Author:** [@uje](https://discourse.julialang.org/u/uje)\
**Replies:** 2\
**Last updated:** [November 30, 2022, 3:52pm UTC](https://discourse.julialang.org/t/is-julia-a-modular-programming-language/91053 "2022-11-30T15:52:15Z")

</div>

From this article on modular programming from Wikipedia, under the Language support session, a list of languages were given that formally supports the module concepts. I was surprised to not see Julia included in that li…

---

## [How to share same legend for different plots?](https://discourse.julialang.org/t/how-to-share-same-legend-for-different-plots/91012)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 5\
**Last updated:** [November 30, 2022, 2:52pm UTC](https://discourse.julialang.org/t/how-to-share-same-legend-for-different-plots/91012 "2022-11-30T14:52:45Z")

</div>

I have multiple plot!() statements used in a loop. I would like multiple plots to share the same legend, given a label, but Plots generate separate, identical legends for each plot command. For instance, as a minimal ex…

---

## [Makie LScene grid always on background](https://discourse.julialang.org/t/makie-lscene-grid-always-on-background/90995)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 8\
**Last updated:** [November 30, 2022, 2:13pm UTC](https://discourse.julialang.org/t/makie-lscene-grid-always-on-background/90995 "2022-11-30T14:13:26Z")

</div>

In Makie, is it possible to configure an LScene so that its grids behave like the ones of an Axis3 and remain in the background of the plot. I largely prefer the looks of the LScene grids for most of my plots (involving…

---

## [Loading a package that is not part of the dependnecies](https://discourse.julialang.org/t/loading-a-package-that-is-not-part-of-the-dependnecies/91011)

<div class="topic-metadata">

**Author:** [@Bugzaren](https://discourse.julialang.org/u/Bugzaren)\
**Replies:** 2\
**Last updated:** [November 30, 2022, 1:20pm UTC](https://discourse.julialang.org/t/loading-a-package-that-is-not-part-of-the-dependnecies/91011 "2022-11-30T13:20:04Z")

</div>

Hi, I have a feeling I’m going about his the wrong way, so I’m happy to be told how to do it properly. I have package MajoranaReps wants to load MathLink if it is installed. However, since MathLink uses proprietary sof…

---

## [In-place computation of Q (from QR decomposition)](https://discourse.julialang.org/t/in-place-computation-of-q-from-qr-decomposition/90881)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 35\
**Last updated:** [November 30, 2022, 12:58pm UTC](https://discourse.julialang.org/t/in-place-computation-of-q-from-qr-decomposition/90881 "2022-11-30T12:58:11Z")

</div>

I could use a fast computation of an orthonormalized basis to represent columns of a tall and narrow dense matrix. Taking advantage of an idle hour, I came up with this modified Gram-Schmidt: using LinearAlgebra funct…

---

## [Julia @ IN2P3-FR Computing center (CCINP3)](https://discourse.julialang.org/t/julia-in2p3-fr-computing-center-ccinp3/90813)

<div class="topic-metadata">

**Author:** [@grasph](https://discourse.julialang.org/u/grasph)\
**Replies:** 13\
**Last updated:** [November 30, 2022, 12:38pm UTC](https://discourse.julialang.org/t/julia-in2p3-fr-computing-center-ccinp3/90813 "2022-11-30T12:38:40Z")

</div>

Hello, We are working on setting up a Julia environment at the French IN2P3 computing center. Note: These resources are available to HEP physicists from French institutes with an account at the center. What is availa…

---

## [Prompting for private key location when developing a private repo](https://discourse.julialang.org/t/prompting-for-private-key-location-when-developing-a-private-repo/91035)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 2\
**Last updated:** [November 30, 2022, 12:32pm UTC](https://discourse.julialang.org/t/prompting-for-private-key-location-when-developing-a-private-repo/91035 "2022-11-30T12:32:52Z")

</div>

I’m trying to develop a private repo without success. Here is what I tried: First generated a id\_ed25519 key. Typing dev “git@github.com:username/mypackage.jl.git” gives Private key location for 'git@github.com': F…

---

## [Makie plots with color cycles and color palettes](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 3\
**Last updated:** [November 30, 2022, 11:04am UTC](https://discourse.julialang.org/t/makie-plots-with-color-cycles-and-color-palettes/53745 "2022-11-30T11:04:47Z")

</div>

Makie seems really exciting, but when I tried it as part of my workflow, I found it lacks a rather basic feature. It seems that Makie does not have working color cycles (automatically picking up a new color for each new…

---

## [Atom package: julia-client seems to be broken](https://discourse.julialang.org/t/atom-package-julia-client-seems-to-be-broken/91037)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 4\
**Last updated:** [November 30, 2022, 10:12am UTC](https://discourse.julialang.org/t/atom-package-julia-client-seems-to-be-broken/91037 "2022-11-30T10:12:51Z")

</div>

I like the Atom-Editor as a second Julia editor, but the atom package julia-client seems to be brocken. After deinstallation I tried to re-install it via apm but it fails: C:\\bin\\Atom\\resources\\app\\apm\\bin\>apm install …

---

## [How to turn off Pluto notebook autosave](https://discourse.julialang.org/t/how-to-turn-off-pluto-notebook-autosave/90891)

<div class="topic-metadata">

**Author:** [@somranger](https://discourse.julialang.org/u/somranger)\
**Replies:** 3\
**Last updated:** [November 30, 2022, 9:23am UTC](https://discourse.julialang.org/t/how-to-turn-off-pluto-notebook-autosave/90891 "2022-11-30T09:23:09Z")

</div>

As the topic. Just I prefer to close autosave. How could I do this?

---

## [Documenter breaks vertical line (vertical bracket) in Latex mode](https://discourse.julialang.org/t/documenter-breaks-vertical-line-vertical-bracket-in-latex-mode/90777)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 3\
**Last updated:** [November 30, 2022, 9:12am UTC](https://discourse.julialang.org/t/documenter-breaks-vertical-line-vertical-bracket-in-latex-mode/90777 "2022-11-30T09:12:56Z")

</div>

Hi, I am revising my lecture on automatic differentiation and I have noticed that Documenter has started to break vertical line that I insert as \`\`J\_i = \\left.\\frac{f\_i}{\\partial y\_i}\\right|\_{y\_i^0} \`\` Does any has…

---

## [Sparse solve with sparse rhs](https://discourse.julialang.org/t/sparse-solve-with-sparse-rhs/81595)

<div class="topic-metadata">

**Author:** [@Andrea\_Vigliotti](https://discourse.julialang.org/u/Andrea_Vigliotti)\
**Replies:** 13\
**Last updated:** [November 29, 2022, 7:32am UTC](https://discourse.julialang.org/t/sparse-solve-with-sparse-rhs/81595 "2022-11-29T07:32:34Z")

</div>

is there any news on this? It appears it is still not possible solving problems with sparse rhs. This is a problem when dealing with very large, and very sparse, matrices, where it is not possible allocate memory for a f…

---

## [Smaller float types?](https://discourse.julialang.org/t/smaller-float-types/91029)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [November 30, 2022, 5:28am UTC](https://discourse.julialang.org/t/smaller-float-types/91029 "2022-11-30T05:28:33Z")

</div>

Where can I find small float types like 4-bit float? I don’t need high performance.

---

## [Get the name of the invoking module](https://discourse.julialang.org/t/get-the-name-of-the-invoking-module/22685)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 16\
**Last updated:** [November 30, 2022, 4:16am UTC](https://discourse.julialang.org/t/get-the-name-of-the-invoking-module/22685 "2022-11-30T04:16:02Z")

</div>

I have a user defined module which invokes a method defined in another module from a package. How can I get the name of the invoking user-defined module, so that my package can include/eval code back into the user’s modu…

---

## [How to convert \`x\[1\] = 1.0\` as $x\_1$ = 1.0 in Jupyter notebook?](https://discourse.julialang.org/t/how-to-convert-x-1-1-0-as-x-1-1-0-in-jupyter-notebook/91025)

<div class="topic-metadata">

**Author:** [@pppoe5](https://discourse.julialang.org/u/pppoe5)\
**Replies:** 2\
**Last updated:** [November 30, 2022, 3:07am UTC](https://discourse.julialang.org/t/how-to-convert-x-1-1-0-as-x-1-1-0-in-jupyter-notebook/91025 "2022-11-30T03:07:40Z")

</div>

MWE: using JuMP, GLPK model = Model(GLPK.Optimizer) @variable(model, x\[i=1:4\]\>= 0.5, Int) @objective(model, Min, sum(x)) optimize!(model) for x in all\_variables(model) println("$(name(x)) = $(value(x))") end As yo…

---

## [Running simple loop in parallel](https://discourse.julialang.org/t/running-simple-loop-in-parallel/11969)

<div class="topic-metadata">

**Author:** [@myroslav](https://discourse.julialang.org/u/myroslav)\
**Replies:** 21\
**Last updated:** [November 30, 2022, 2:55am UTC](https://discourse.julialang.org/t/running-simple-loop-in-parallel/11969 "2022-11-30T02:55:58Z")

</div>

Hi, I am trying to do some simple computations inside a single or double loop, and I would like to parallelize the computations inside the loops, and so far I couldn’t figure it out. Here is a simple example of what I w…

---

## [How to force an error when can't parse value as date in CSV.jl?](https://discourse.julialang.org/t/how-to-force-an-error-when-cant-parse-value-as-date-in-csv-jl/91009)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 4\
**Last updated:** [November 30, 2022, 12:40am UTC](https://discourse.julialang.org/t/how-to-force-an-error-when-cant-parse-value-as-date-in-csv-jl/91009 "2022-11-30T00:40:40Z")

</div>

I’m trying to parse a column in my CSV file as dates, so I try to use CSV.File(..., dateformat=...) like this: df = CSV.File( IOBuffer("Date,Time\\n01/01/20, 10:10:10\\n01/01/20, 11:11:11\\ninvalid, 12:12:12"), dateforma…

---

## [Slow deletion loop on huge DataFrame](https://discourse.julialang.org/t/slow-deletion-loop-on-huge-dataframe/90970)

<div class="topic-metadata">

**Author:** [@Kryppi](https://discourse.julialang.org/u/Kryppi)\
**Replies:** 2\
**Last updated:** [November 29, 2022, 9:49pm UTC](https://discourse.julialang.org/t/slow-deletion-loop-on-huge-dataframe/90970 "2022-11-29T21:49:59Z")

</div>

I want to delete certain elements in an ordered DataFrame dim=(1.5 million,14). If the conditions for deletion are met, the code to check if the next element is also up for deletion (if the string in \[x,1\] is identical) …

---

## [C embedding interface called from multiple threads](https://discourse.julialang.org/t/c-embedding-interface-called-from-multiple-threads/18609)

<div class="topic-metadata">

**Author:** [@atell\_soundtheory](https://discourse.julialang.org/u/atell_soundtheory)\
**Replies:** 10\
**Last updated:** [November 29, 2022, 8:05pm UTC](https://discourse.julialang.org/t/c-embedding-interface-called-from-multiple-threads/18609 "2022-11-29T20:05:21Z")

</div>

I’ve spent a few days playing with embedding Julia into C++ signal processing code. My aim is to be able to quickly write prototype code in Julia that is then executed in a real-time audio host. The problem that I have …

---

## [Get feasible solution from Couenne after time limit (JuMP)](https://discourse.julialang.org/t/get-feasible-solution-from-couenne-after-time-limit-jump/90999)

<div class="topic-metadata">

**Author:** [@Luca](https://discourse.julialang.org/u/Luca)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 7:48pm UTC](https://discourse.julialang.org/t/get-feasible-solution-from-couenne-after-time-limit-jump/90999 "2022-11-29T19:48:40Z")

</div>

Dear all, I am solving a non-convex MINLP model with couenne with a time limit, let’s say 20 seconds. After 20 seconds, I obtain the following output: Couenne 0.5.8 -- an Open-Source solver for Mixed Integer Nonlinear …

---

## [How to Calculate the Integral of Floor function / ⌊x⌋ using SymPy or CalculusWithJulia Correctly?](https://discourse.julialang.org/t/how-to-calculate-the-integral-of-floor-function-x-using-sympy-or-calculuswithjulia-correctly/90998)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 6:58pm UTC](https://discourse.julialang.org/t/how-to-calculate-the-integral-of-floor-function-x-using-sympy-or-calculuswithjulia-correctly/90998 "2022-11-29T18:58:45Z")

</div>

Hi all, I tried Sympy and the integral of a floor function can’t be calculated well. Here you go: The code to plot the floor function works well: using Plots,LaTeXStrings,Colors gr() f(x) = floor(x) x = -4:1:4 y = …

---

## [How to get average salary for each experience level for each job title?](https://discourse.julialang.org/t/how-to-get-average-salary-for-each-experience-level-for-each-job-title/91003)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 5:52pm UTC](https://discourse.julialang.org/t/how-to-get-average-salary-for-each-experience-level-for-each-job-title/91003 "2022-11-29T17:52:57Z")

</div>

Hi, I got the dataset like following: I would like to get average salary for each experience level in each job title, I have tried: second=combine(groupby(new,:experience\_level,),:salary\_in\_usd =\>IMD.mean) but the…

---

## [How to add multiple columns to a dataframe at once](https://discourse.julialang.org/t/how-to-add-multiple-columns-to-a-dataframe-at-once/91007)

<div class="topic-metadata">

**Author:** [@adz](https://discourse.julialang.org/u/adz)\
**Replies:** 2\
**Last updated:** [November 29, 2022, 5:37pm UTC](https://discourse.julialang.org/t/how-to-add-multiple-columns-to-a-dataframe-at-once/91007 "2022-11-29T17:37:44Z")

</div>

I have a matrix and a vector of names. I want to add the elements of t to my dataframe, df. However, when I try to set multiple columns at once, my code fails. See the example below: df = DataFrame(A=rand(4), B=rand(4))…

---

## [Clamped Cubic Spline](https://discourse.julialang.org/t/clamped-cubic-spline/90222)

<div class="topic-metadata">

**Author:** [@JHall](https://discourse.julialang.org/u/JHall)\
**Replies:** 4\
**Last updated:** [November 29, 2022, 4:43pm UTC](https://discourse.julialang.org/t/clamped-cubic-spline/90222 "2022-11-29T16:43:14Z")

</div>

Hi all, I am trying to use cubic spline interpolation where I specify the derivatives at the endpoint. The functions I am trying to interpolate with are value functions and thus often have poles at 0. As a consequence…

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

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