# Latest

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

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

**Page:** 621

---

## [Announcing Glass Notebook - Publish Interactive Pluto Notebooks from GitHub](https://discourse.julialang.org/t/announcing-glass-notebook-publish-interactive-pluto-notebooks-from-github/99395)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 9\
**Last updated:** [August 15, 2023, 12:08am UTC](https://discourse.julialang.org/t/announcing-glass-notebook-publish-interactive-pluto-notebooks-from-github/99395 "2023-08-15T00:08:42Z")

</div>

@ctrekker and I are excited to announce our new service, Glass Notebook, which we have been working on for the past two years. Glass Notebook is a service that allows users to link any GitHub repository to our site and g…

---

## [Google search console verification in Franklin.jl generated site](https://discourse.julialang.org/t/google-search-console-verification-in-franklin-jl-generated-site/72760)

<div class="topic-metadata">

**Author:** [@JaydevSR](https://discourse.julialang.org/u/JaydevSR)\
**Replies:** 3\
**Last updated:** [August 14, 2023, 11:20pm UTC](https://discourse.julialang.org/t/google-search-console-verification-in-franklin-jl-generated-site/72760 "2023-08-14T23:20:08Z")

</div>

I have been trying to verify my personal website made using Franklin.jl on the google search console platform but for some reason both of the two feasible methods don’t work: Meta tag in the head part of the site is no…

---

## [PlotlyJS.jl: grouped + stacked bar charts](https://discourse.julialang.org/t/plotlyjs-jl-grouped-stacked-bar-charts/102657)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 8\
**Last updated:** [August 14, 2023, 10:35pm UTC](https://discourse.julialang.org/t/plotlyjs-jl-grouped-stacked-bar-charts/102657 "2023-08-14T22:35:38Z")

</div>

Hi, I need to create a plot like the one below using PlotlyJS.jl. I have done my best and extensively searched this forum and others online. Still, there seems to be very little information about stacked + grouped bar c…

---

## [How to plot only the upper (or lower) triangle matrix in a heatmap?](https://discourse.julialang.org/t/how-to-plot-only-the-upper-or-lower-triangle-matrix-in-a-heatmap/102796)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 8\
**Last updated:** [August 14, 2023, 10:26pm UTC](https://discourse.julialang.org/t/how-to-plot-only-the-upper-or-lower-triangle-matrix-in-a-heatmap/102796 "2023-08-14T22:26:53Z")

</div>

Hello, folks I’m using a combination of functions plot() and heatmap() to visualize a correlation matrix. Correlation matrices, by definition, are symmetric, i.e., a\_{i,j} = a\_{j,i} for all i \\neq j. The diagonal, where…

---

## [Order issue in groupedboxplot (StatsPlot.jl)](https://discourse.julialang.org/t/order-issue-in-groupedboxplot-statsplot-jl/102789)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [August 14, 2023, 9:36pm UTC](https://discourse.julialang.org/t/order-issue-in-groupedboxplot-statsplot-jl/102789 "2023-08-14T21:36:05Z")

</div>

I’m using groupedboxplot to plot boxplot for my data but while doing so I see that order in legend and in plot itself is not correct. It should be P\_9, P\_10, P\_11 P\_12, P\_13 while I get. How can I change this ? an…

---

## [Why does Plots require firewall access? (gksqt)](https://discourse.julialang.org/t/why-does-plots-require-firewall-access-gksqt/59803)

<div class="topic-metadata">

**Author:** [@danilo-bc](https://discourse.julialang.org/u/danilo-bc)\
**Replies:** 23\
**Last updated:** [August 14, 2023, 6:03pm UTC](https://discourse.julialang.org/t/why-does-plots-require-firewall-access-gksqt/59803 "2023-08-14T18:03:56Z")

</div>

I recently installed Julia on my Windows 10 machine using the given installer, opened cmd, then julia, added Plots package then did the following: using Plots gr() plot(1:10) A firewall permission message appeared aski…

---

## [Creating a PSDCone Constraint in COSMO](https://discourse.julialang.org/t/creating-a-psdcone-constraint-in-cosmo/102749)

<div class="topic-metadata">

**Author:** [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Replies:** 7\
**Last updated:** [August 14, 2023, 8:29pm UTC](https://discourse.julialang.org/t/creating-a-psdcone-constraint-in-cosmo/102749 "2023-08-14T20:29:28Z")

</div>

Due to memory limitation issues, I am unable to use JuMP to create variables and the model I would like to use. As such, I am trying to use COSMO directly. I am trying to create a PSDCone constraint of the form (A - dia…

---

## [Sqrt of QuadExpr](https://discourse.julialang.org/t/sqrt-of-quadexpr/102797)

<div class="topic-metadata">

**Author:** [@i9e1](https://discourse.julialang.org/u/i9e1)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 7:45pm UTC](https://discourse.julialang.org/t/sqrt-of-quadexpr/102797 "2023-08-14T19:45:21Z")

</div>

Hi there, Do you think sqrt of special cases of QuadExpr is useful or dangerous? Currrently the user gets a warning when using the unsupported nonlinear operator sqrt and has to do manual reformulation (where possible)…

---

## [Why is all profiling wrapped around an evaluation?](https://discourse.julialang.org/t/why-is-all-profiling-wrapped-around-an-evaluation/102759)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 4\
**Last updated:** [August 14, 2023, 6:41pm UTC](https://discourse.julialang.org/t/why-is-all-profiling-wrapped-around-an-evaluation/102759 "2023-08-14T18:41:25Z")

</div>

As far as I can tell, all the basic performance measurement tools operate by giving a macro an expression to evaluate. This seems odd to me, and I think I’m missing an understanding of why this is so. This question is …

---

## [Convert Vector{String} to Ptr{Ptr{UInt8}}?](https://discourse.julialang.org/t/convert-vector-string-to-ptr-ptr-uint8/102793)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 5\
**Last updated:** [August 14, 2023, 6:09pm UTC](https://discourse.julialang.org/t/convert-vector-string-to-ptr-ptr-uint8/102793 "2023-08-14T18:09:29Z")

</div>

I’m aware that Julia strings are unicode things, but if I make sure that the strings are ASCII clean, I can figure out how to convert Vector{String} → Vector{Vector{UInt8}}, but not to Ptr{Ptr{UInt8}} … In \[1\]: a = \["hi…

---

## [Numerical simulation changes with different tspan](https://discourse.julialang.org/t/numerical-simulation-changes-with-different-tspan/102726)

<div class="topic-metadata">

**Author:** [@Yoni\_Maltsman](https://discourse.julialang.org/u/Yoni_Maltsman)\
**Replies:** 4\
**Last updated:** [August 14, 2023, 5:54pm UTC](https://discourse.julialang.org/t/numerical-simulation-changes-with-different-tspan/102726 "2023-08-14T17:54:37Z")

</div>

I am attempting to simulate a network of four neurons, where the ith neuron’s dynamics are described by the following differential equations: \\dot{V}\_m = I\_{syn} - (V\_m - \\alpha\_f^-\\tanh(V\_m - \\delta\_f^-) + \\alpha\_s^+…

---

## [Finding root numerically for a function defined in a finite range](https://discourse.julialang.org/t/finding-root-numerically-for-a-function-defined-in-a-finite-range/102729)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 16\
**Last updated:** [August 14, 2023, 5:28pm UTC](https://discourse.julialang.org/t/finding-root-numerically-for-a-function-defined-in-a-finite-range/102729 "2023-08-14T17:28:23Z")

</div>

I have a function f(x) defined in range (-a, \\infty). f(x) is actually a piecewise function f\_1(x) for (-a,0), and f\_2(x) for (0, \\infty). For these two functions f\_1, f\_2 the 2nd derivative diverges at the boundary x=0.…

---

## [DataFrame sort Performance using Query.jl vs SAS PROC SORT](https://discourse.julialang.org/t/dataframe-sort-performance-using-query-jl-vs-sas-proc-sort/41225)

<div class="topic-metadata">

**Author:** [@Dominic\_Pazzula](https://discourse.julialang.org/u/Dominic_Pazzula)\
**Replies:** 19\
**Last updated:** [August 11, 2023, 9:14pm UTC](https://discourse.julialang.org/t/dataframe-sort-performance-using-query-jl-vs-sas-proc-sort/41225 "2023-08-11T21:14:38Z")

</div>

I’m still learning Julia and am converting some SAS code. I have a large DataFrame (3.3M rows, 6 columns) that I am trying to sort. The performance compared to SAS is abysmal. function sort1(simstates) simstates2…

---

## [HTTP communication between RPI and computer via an Ethernet cable](https://discourse.julialang.org/t/http-communication-between-rpi-and-computer-via-an-ethernet-cable/102683)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 6\
**Last updated:** [August 14, 2023, 4:10pm UTC](https://discourse.julialang.org/t/http-communication-between-rpi-and-computer-via-an-ethernet-cable/102683 "2023-08-14T16:10:45Z")

</div>

I want to have a Raspberry Pi and a PC that are connected with an Ethernet cable to communicate with each other via a server-client-HTTP.jl setup. I don’t know however what IP address I should use, or any additional step…

---

## [How to initialize and manipulate Dicts of Dicts?](https://discourse.julialang.org/t/how-to-initialize-and-manipulate-dicts-of-dicts/102788)

<div class="topic-metadata">

**Author:** [@trg818](https://discourse.julialang.org/u/trg818)\
**Replies:** 6\
**Last updated:** [August 14, 2023, 3:47pm UTC](https://discourse.julialang.org/t/how-to-initialize-and-manipulate-dicts-of-dicts/102788 "2023-08-14T15:47:30Z")

</div>

I am trying to initialize and manipulate Dicts of Dicts, starting with this one: using Dates clcdates=Date(2022,7):Month(1):Date(2023,12) dacc=Dict("MatA"=\>Dict(Date(2022,7)=\>751.19,Date(2023,1)=\>7.98), "Mat…

---

## [How to make a gantt plot with Plots.jl](https://discourse.julialang.org/t/how-to-make-a-gantt-plot-with-plots-jl/95165)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 11\
**Last updated:** [August 14, 2023, 3:45pm UTC](https://discourse.julialang.org/t/how-to-make-a-gantt-plot-with-plots-jl/95165 "2023-08-14T15:45:25Z")

</div>

Hi, I would like to make a gantt plot in Plots.jl. I came across a few old posts concerning gantt plots, but no solution. Here is what I have so far: using StatsPlots using DataFrames df = DataFrame(label=\["A","B"\], …

---

## [How to get a zero-overhead view?](https://discourse.julialang.org/t/how-to-get-a-zero-overhead-view/102744)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 16\
**Last updated:** [August 14, 2023, 3:42pm UTC](https://discourse.julialang.org/t/how-to-get-a-zero-overhead-view/102744 "2023-08-14T15:42:40Z")

</div>

In C, I pass around pointers and lengths, constructing views with pointer arithmetic. This is annoying to debug, but quite performant. Is it possible to get equivalent performance with Julia views? I am okay with segfaul…

---

## [Precompile Package Error: " IOError: could not spawn setenv"](https://discourse.julialang.org/t/precompile-package-error-ioerror-could-not-spawn-setenv/101743)

<div class="topic-metadata">

**Author:** [@AidanRS](https://discourse.julialang.org/u/AidanRS)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 2:00pm UTC](https://discourse.julialang.org/t/precompile-package-error-ioerror-could-not-spawn-setenv/101743 "2023-08-14T14:00:47Z")

</div>

I have been using Julia for about 6 months now very heavily on two devices a Mac and Linux (Pop!\_OS 22.04) and suddenly one day the package manager with Julia on my Linux machine broke. All the packages that I had been u…

---

## [@which not working on .+](https://discourse.julialang.org/t/which-not-working-on/32673)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 5\
**Last updated:** [December 26, 2019, 10:32am UTC](https://discourse.julialang.org/t/which-not-working-on/32673 "2019-12-26T10:32:35Z")

</div>

Why is this failing? julia\> @which \[2 3\] .+ \[1 2\] ERROR: UndefVarError: .+ not defined

---

## [Could double summation be implemented without JuMP?](https://discourse.julialang.org/t/could-double-summation-be-implemented-without-jump/102785)

<div class="topic-metadata">

**Author:** [@MKY](https://discourse.julialang.org/u/MKY)\
**Replies:** 1\
**Last updated:** [August 14, 2023, 1:52pm UTC](https://discourse.julialang.org/t/could-double-summation-be-implemented-without-jump/102785 "2023-08-14T13:52:23Z")

</div>

Hello, I encounter a problem when trying to convert these(Python) to Julia: delta\_TRC = \[sum((i - TRC)\*\*2) for i in TRC\] return sum(delta\_TRC) I found that the syntax of sum function provided by JuMP is very si…

---

## [Julia kernel & Jupyter notebook in VSCode](https://discourse.julialang.org/t/julia-kernel-jupyter-notebook-in-vscode/102709)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 12\
**Last updated:** [August 14, 2023, 1:46pm UTC](https://discourse.julialang.org/t/julia-kernel-jupyter-notebook-in-vscode/102709 "2023-08-14T13:46:14Z")

</div>

I try to run a Jupyter notebook in VSCode (v.1.81.1) with Julia 1.9.2 installed. Problems: Julia 1.9.2 is not available when I try to choose kernel for the Jupyter notebook \[there is a Julia release channel, though – …

---

## [How do I define a new type of metadata for Symbolic parameters?](https://discourse.julialang.org/t/how-do-i-define-a-new-type-of-metadata-for-symbolic-parameters/102736)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 1:41pm UTC](https://discourse.julialang.org/t/how-do-i-define-a-new-type-of-metadata-for-symbolic-parameters/102736 "2023-08-14T13:41:31Z")

</div>

I want to define a new type of metadata to note that a parameter is a diffusion parameter (governs a diffusion rate. How do I actually do this? I have tried to go through and copy what we do in Catalyst docs, but this g…

---

## [Save information in TimerOutput (TimerOutputs.jl) as a DataFrame](https://discourse.julialang.org/t/save-information-in-timeroutput-timeroutputs-jl-as-a-dataframe/102774)

<div class="topic-metadata">

**Author:** [@Martin](https://discourse.julialang.org/u/Martin)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 1:25pm UTC](https://discourse.julialang.org/t/save-information-in-timeroutput-timeroutputs-jl-as-a-dataframe/102774 "2023-08-14T13:25:43Z")

</div>

Hi! At the moment I am comparing different (in this case machine learning) algorithms in a project, and I am interested in the running time and memory allocations. So I have been using the great package TimerOutputs.jl …

---

## [Speeding up a function](https://discourse.julialang.org/t/speeding-up-a-function/102703)

<div class="topic-metadata">

**Author:** [@ditfurth](https://discourse.julialang.org/u/ditfurth)\
**Replies:** 43\
**Last updated:** [August 14, 2023, 1:18pm UTC](https://discourse.julialang.org/t/speeding-up-a-function/102703 "2023-08-14T13:18:06Z")

</div>

Hi all, I have a function that needs some speeding up. I tried many things, here is the current state and a minimum working example # using BenchmarkTools, Random, Distributions, Base.Threads Random.seed!(123) market…

---

## [Conversion of nothing to void pointer](https://discourse.julialang.org/t/conversion-of-nothing-to-void-pointer/102766)

<div class="topic-metadata">

**Author:** [@projekter](https://discourse.julialang.org/u/projekter)\
**Replies:** 11\
**Last updated:** [August 14, 2023, 1:10pm UTC](https://discourse.julialang.org/t/conversion-of-nothing-to-void-pointer/102766 "2023-08-14T13:10:37Z")

</div>

It is quite common in C interfaces to have functions that accept pointers to something, but they can also be given NULL instead, which means that for example the part that is related with this parameter is not of interes…

---

## [Ipynb Files - Makie Result displayed in separate Window](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770)

<div class="topic-metadata">

**Author:** [@Ralf\_Dietrich](https://discourse.julialang.org/u/Ralf_Dietrich)\
**Replies:** 7\
**Last updated:** [August 14, 2023, 10:57am UTC](https://discourse.julialang.org/t/ipynb-files-makie-result-displayed-in-separate-window/102770 "2023-08-14T10:57:05Z")

</div>

Under Windows in VSCode I have an ipynb file In this is a small demo code for Makie. using GLMakie x = 1:40:360 fig = lines(x, x.^7; label = "Parabola", axis = (; xlabel = "x", ylabel = "y", title ="Title"), li…

---

## [lme4::lmList equivalent in Julia](https://discourse.julialang.org/t/lme4-lmlist-equivalent-in-julia/102670)

<div class="topic-metadata">

**Author:** [@lindemann09](https://discourse.julialang.org/u/lindemann09)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 10:23am UTC](https://discourse.julialang.org/t/lme4-lmlist-equivalent-in-julia/102670 "2023-08-14T10:23:43Z")

</div>

The lme4 package in R has the function lmList, which I use heavily to examine shrinkage in mixed-models. MixedModels.jl does not seem to have the function. MixedModelsMakie.jl is great to visualize shrinkage, but it doe…

---

## [Error in using GR in jupyter notebook](https://discourse.julialang.org/t/error-in-using-gr-in-jupyter-notebook/102767)

<div class="topic-metadata">

**Author:** [@Kritika\_Verma](https://discourse.julialang.org/u/Kritika_Verma)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 9:26am UTC](https://discourse.julialang.org/t/error-in-using-gr-in-jupyter-notebook/102767 "2023-08-14T09:26:20Z")

</div>

I tried using GR to plot but I am getting the error. UndefVarError: plot not defined Stacktrace: \[1\] top-level scope @ In\[14\]:1 I am new to julia and was following a tutorial to use various packages. julia\> versioninf…

---

## [InlineDispatch.jl – A simple module to perform dispatch on the value of an expression](https://discourse.julialang.org/t/inlinedispatch-jl-a-simple-module-to-perform-dispatch-on-the-value-of-an-expression/102780)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 0\
**Last updated:** [August 14, 2023, 6:41am UTC](https://discourse.julialang.org/t/inlinedispatch-jl-a-simple-module-to-perform-dispatch-on-the-value-of-an-expression/102780 "2023-08-14T06:41:08Z")

</div>

Based on a discussion here on Discourse, I’m happy to announce a new package called InlineDispatch.jl for dispatching on values using anonymous functions. The following expression: @dispatch expr begin v::T…

---

## [Transfer module definition to worker](https://discourse.julialang.org/t/transfer-module-definition-to-worker/102779)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 0\
**Last updated:** [August 14, 2023, 5:47am UTC](https://discourse.julialang.org/t/transfer-module-definition-to-worker/102779 "2023-08-14T05:47:38Z")

</div>

Is there a way to transfer a module definition to a worker without it being defined in a file or inside an @everywhere expression. For example: # Assume this happens in a context where it would be impractical to inser…

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

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