# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=331

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

**Page:** 332

---

## [Github action recompiling everything everytime](https://discourse.julialang.org/t/github-action-recompiling-everything-everytime/94348)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 0\
**Last updated:** [February 9, 2023, 2:37pm UTC](https://discourse.julialang.org/t/github-action-recompiling-everything-everytime/94348 "2023-02-09T14:37:34Z")

</div>

Hey, i’m trying to run some Julia code on github action. I have a Project.toml and a Manifest.toml in the repo, and my main.jl file starts as: using Pkg Pkg.activate(".") Pkg.instantiate(verbose = true) using AllNeeded…

---

## [Improving performance for matrix assembly](https://discourse.julialang.org/t/improving-performance-for-matrix-assembly/94252)

<div class="topic-metadata">

**Author:** [@udax](https://discourse.julialang.org/u/udax)\
**Replies:** 20\
**Last updated:** [February 9, 2023, 12:29pm UTC](https://discourse.julialang.org/t/improving-performance-for-matrix-assembly/94252 "2023-02-09T12:29:34Z")

</div>

I have a working code for a large project in scientific computation. Compared to similar existing codes in C, the julia code is around 10 times slower, which is mostly likely due to me being new to Julia. I’ve tried prof…

---

## [Statistical unit tests](https://discourse.julialang.org/t/statistical-unit-tests/94210)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 7\
**Last updated:** [February 9, 2023, 9:14am UTC](https://discourse.julialang.org/t/statistical-unit-tests/94210 "2023-02-09T09:14:40Z")

</div>

Are there macros for statistical unit tests for randomized algorithms? E.g., if I’d like to test the mean value of an algorithm over 100 runs, e.g… So a macro similar to @btime that would run the method many times and su…

---

## [Kill a (distributed) child process](https://discourse.julialang.org/t/kill-a-distributed-child-process/94322)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 5:13am UTC](https://discourse.julialang.org/t/kill-a-distributed-child-process/94322 "2023-02-09T05:13:02Z")

</div>

Let’s say I’ve spawned a distributed process, and this process has made a particular ccall that, for whatever reason, refuses to die from a standard call to interrupt(). e.g. the following fails: using Distributed addp…

---

## [How to Pkg.launder("my dirty registry") for Automerge?](https://discourse.julialang.org/t/how-to-pkg-launder-my-dirty-registry-for-automerge/94299)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [February 8, 2023, 8:05pm UTC](https://discourse.julialang.org/t/how-to-pkg-launder-my-dirty-registry-for-automerge/94299 "2023-02-08T20:05:39Z")

</div>

AFAIK, I addressed all the suggestions previously provided by the bot, but now it says the registry is dirty but doesn’t suggest a fix.

---

## [Matrix Multiplication of a Large Number of Small Matrices](https://discourse.julialang.org/t/matrix-multiplication-of-a-large-number-of-small-matrices/93531)

<div class="topic-metadata">

**Author:** [@andrewkhardy](https://discourse.julialang.org/u/andrewkhardy)\
**Replies:** 12\
**Last updated:** [February 8, 2023, 7:47pm UTC](https://discourse.julialang.org/t/matrix-multiplication-of-a-large-number-of-small-matrices/93531 "2023-02-08T19:47:04Z")

</div>

Im interested in computing the matrix multiplication of 2x2 matrices, but these are sampled at a very large number of points. Here is my current benchmark using Tullio,TensorCast, LinearAlgebra, StaticArrays function M…

---

## [Save main scene (with axis ticks and spines) to file without closing current window](https://discourse.julialang.org/t/save-main-scene-with-axis-ticks-and-spines-to-file-without-closing-current-window/64684)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 3\
**Last updated:** [February 8, 2023, 5:39pm UTC](https://discourse.julialang.org/t/save-main-scene-with-axis-ticks-and-spines-to-file-without-closing-current-window/64684 "2023-02-08T17:39:17Z")

</div>

The following works more or less. But, it will be better to actually save the scene with all the spines and ticks values, plus the window is closing when I hit the button save. Any suggestions? using GLMakie with\_theme(…

---

## [Unitful divide error (but not multiply)](https://discourse.julialang.org/t/unitful-divide-error-but-not-multiply/94249)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 2\
**Last updated:** [February 8, 2023, 2:08pm UTC](https://discourse.julialang.org/t/unitful-divide-error-but-not-multiply/94249 "2023-02-08T14:08:56Z")

</div>

I am getting an error when dividing with Unitful but not when I multiply by the inverse of the divisor. For example: julia\> using Unitful julia\> a = 1250u"mm" 1250 mm julia\> b = (0.865:0.01:2.0)u"m"; julia\> (a .+ b)…

---

## [Pandas equivalent library](https://discourse.julialang.org/t/pandas-equivalent-library/26501)

<div class="topic-metadata">

**Author:** [@Prithviraj\_Dutta](https://discourse.julialang.org/u/Prithviraj_Dutta)\
**Replies:** 26\
**Last updated:** [February 8, 2023, 1:44pm UTC](https://discourse.julialang.org/t/pandas-equivalent-library/26501 "2023-02-08T13:44:29Z")

</div>

Hi …I am a new comer to Julia. Is there a library which does function similar to pandas. I have been struggling to read from excel spreadsheets. Thanks

---

## [Bug in BenchmarkTools?](https://discourse.julialang.org/t/bug-in-benchmarktools/94273)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 2\
**Last updated:** [February 8, 2023, 1:17pm UTC](https://discourse.julialang.org/t/bug-in-benchmarktools/94273 "2023-02-08T13:17:47Z")

</div>

Is this a bug, or am I missing something? julia\> using StaticArrays julia\> m = rand(SMatrix{3,3,Float64}); julia\> f(m::SMatrix{N,N,T}) where {N,T} = SMatrix{N,N,T,N\*N}(m\[c\] for c in CartesianIndices(m)) f (generic fun…

---

## [What is the diffence between abstract type and singleton type](https://discourse.julialang.org/t/what-is-the-diffence-between-abstract-type-and-singleton-type/94258)

<div class="topic-metadata">

**Author:** [@zhangwfjh](https://discourse.julialang.org/u/zhangwfjh)\
**Replies:** 4\
**Last updated:** [February 8, 2023, 12:04pm UTC](https://discourse.julialang.org/t/what-is-the-diffence-between-abstract-type-and-singleton-type/94258 "2023-02-08T12:04:15Z")

</div>

I think both abstract type and singleton type are used for multiple dispatching. So what are their differences and how do I choose? I know that abstract type cannot be instantialized.

---

## [Symbolically solve a linear system of equations](https://discourse.julialang.org/t/symbolically-solve-a-linear-system-of-equations/93989)

<div class="topic-metadata">

**Author:** [@Damiano](https://discourse.julialang.org/u/Damiano)\
**Replies:** 1\
**Last updated:** [February 7, 2023, 10:01pm UTC](https://discourse.julialang.org/t/symbolically-solve-a-linear-system-of-equations/93989 "2023-02-07T22:01:39Z")

</div>

Dear all, I am trying to symbolically solve a system of equation with Julia. I have spent some time in the LinearAlgebra.jl documentation and in the Symbolics.jl documentation. I have also searched (quite) a bit in the …

---

## [How to create a graphic simulator?](https://discourse.julialang.org/t/how-to-create-a-graphic-simulator/94256)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 4\
**Last updated:** [February 8, 2023, 9:59am UTC](https://discourse.julialang.org/t/how-to-create-a-graphic-simulator/94256 "2023-02-08T09:59:04Z")

</div>

Julia has MANY packages to create static vector graphics. But I want to create a simulation. A RealTime simulation. I don’t want to create GIFs or MP4s or anything. Realtime simulations that render in a window. And I am …

---

## [Repeated precompilation on a cluster makes life difficult](https://discourse.julialang.org/t/repeated-precompilation-on-a-cluster-makes-life-difficult/94194)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 12\
**Last updated:** [February 8, 2023, 2:57am UTC](https://discourse.julialang.org/t/repeated-precompilation-on-a-cluster-makes-life-difficult/94194 "2023-02-08T02:57:27Z")

</div>

I’m using julia v1.9.0-beta3 on a SLURM cluster. On a login node with versioninfo julia\> versioninfo() Julia Version 1.9.0-beta3 Commit 24204a73447 (2023-01-18 07:20 UTC) Platform Info: OS: Linux (x86\_64-linux-gnu) …

---

## [Error while installing a Julia Package behind a Proxy](https://discourse.julialang.org/t/error-while-installing-a-julia-package-behind-a-proxy/79674)

<div class="topic-metadata">

**Author:** [@\_SACHIN](https://discourse.julialang.org/u/_SACHIN)\
**Replies:** 5\
**Last updated:** [February 8, 2023, 2:23am UTC](https://discourse.julialang.org/t/error-while-installing-a-julia-package-behind-a-proxy/79674 "2023-02-08T02:23:46Z")

</div>

I am trying to install a package iTensor in Julia as (@v1.7) pkg\> add ITensors but I am getting the following error. Pl note that my OS Ubuntu is behind the proxy Network. Updating registry at ~/.julia/registries/Gener…

---

## [Producing a rasterized 3D surface with in a vectorized figure using Plots](https://discourse.julialang.org/t/producing-a-rasterized-3d-surface-with-in-a-vectorized-figure-using-plots/94246)

<div class="topic-metadata">

**Author:** [@danielbalzer](https://discourse.julialang.org/u/danielbalzer)\
**Replies:** 0\
**Last updated:** [February 8, 2023, 12:53am UTC](https://discourse.julialang.org/t/producing-a-rasterized-3d-surface-with-in-a-vectorized-figure-using-plots/94246 "2023-02-08T00:53:23Z")

</div>

I am looking to rasterize a 3D surface plot using Plots, while keeping the rest of the figure (such as axes labels and lines vectorized). I am hoping to do this to reduce the file size of some very large images. I know t…

---

## [Makie live animation not working](https://discourse.julialang.org/t/makie-live-animation-not-working/63353)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 12\
**Last updated:** [February 7, 2023, 10:08pm UTC](https://discourse.julialang.org/t/makie-live-animation-not-working/63353 "2023-02-07T22:08:38Z")

</div>

Hi, I am trying to visualize a simulation live in makie. However my plot is not updated in VSCode when the observable it depends on is changed. The following is my code: function getStickPositions(c::Config) unitV…

---

## [FinancialToolbox unsupported keyword argument "FlagIsCall"](https://discourse.julialang.org/t/financialtoolbox-unsupported-keyword-argument-flagiscall/94151)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 2\
**Last updated:** [February 7, 2023, 9:40pm UTC](https://discourse.julialang.org/t/financialtoolbox-unsupported-keyword-argument-flagiscall/94151 "2023-02-07T21:40:38Z")

</div>

Trying to get the FinancialToolbox working as per documentation. If I try to compute a Put Option value as follows I get an error: blsprice(10,10-2.04,.01,1,.1,FlagIsCall=false) results in errors the most relevant her…

---

## [How to input types for functions in a more compact way?](https://discourse.julialang.org/t/how-to-input-types-for-functions-in-a-more-compact-way/94221)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 4\
**Last updated:** [February 7, 2023, 8:26pm UTC](https://discourse.julialang.org/t/how-to-input-types-for-functions-in-a-more-compact-way/94221 "2023-02-07T20:26:17Z")

</div>

Hi, I am trying to improve the way that I define the input types for my functions in Julia. I have a function that can take as input array values of type Dates.Date, Dates.DateTime or StepRange{Dates.Date, Dates.Day}. S…

---

## [Shapefiles to GEE](https://discourse.julialang.org/t/shapefiles-to-gee/94208)

<div class="topic-metadata">

**Author:** [@marianaeavila](https://discourse.julialang.org/u/marianaeavila)\
**Replies:** 3\
**Last updated:** [February 7, 2023, 7:19pm UTC](https://discourse.julialang.org/t/shapefiles-to-gee/94208 "2023-02-07T19:19:15Z")

</div>

How can I import and display a local shapefile (.shp) into Google Earth Engine using EarthEngine.jl, is there a function for that?

---

## [Add missing points in a 2D line](https://discourse.julialang.org/t/add-missing-points-in-a-2d-line/94211)

<div class="topic-metadata">

**Author:** [@Benjamin\_Steinvorth](https://discourse.julialang.org/u/Benjamin_Steinvorth)\
**Replies:** 5\
**Last updated:** [February 7, 2023, 3:18pm UTC](https://discourse.julialang.org/t/add-missing-points-in-a-2d-line/94211 "2023-02-07T15:18:33Z")

</div>

have some 2D data in Julia representing a circular feature with some “holes” in it. I like to interpolate these holes by finding points fitting on a curve representing the shape of the feature. Using Julia’s PlotlyJS li…

---

## [Dispatch surprise with vectors](https://discourse.julialang.org/t/dispatch-surprise-with-vectors/94214)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 2\
**Last updated:** [February 7, 2023, 2:58pm UTC](https://discourse.julialang.org/t/dispatch-surprise-with-vectors/94214 "2023-02-07T14:58:09Z")

</div>

I’ve been trying to implement some functions taking advantage of some default values as well as multiple dispatch and I stumbled upon the following behavior. It is surprising to me but maybe it is just the way things wor…

---

## [How to Derivative of piecewise functions using SymPy](https://discourse.julialang.org/t/how-to-derivative-of-piecewise-functions-using-sympy/94200)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 1\
**Last updated:** [February 7, 2023, 2:23pm UTC](https://discourse.julialang.org/t/how-to-derivative-of-piecewise-functions-using-sympy/94200 "2023-02-07T14:23:03Z")

</div>

As an example, I have the following piecewise function using SymPy @syms x f(x) = (0 \<= x \<=10 ? 2\*x : 3\*x^2) I tried to differentiate f(x) with respect to x df = sympy.diff(f(x),x) It results to non piecewise functi…

---

## [To use or not to use promote\_op](https://discourse.julialang.org/t/to-use-or-not-to-use-promote-op/94170)

<div class="topic-metadata">

**Author:** [@00shiv](https://discourse.julialang.org/u/00shiv)\
**Replies:** 10\
**Last updated:** [February 7, 2023, 2:08pm UTC](https://discourse.julialang.org/t/to-use-or-not-to-use-promote-op/94170 "2023-02-07T14:08:36Z")

</div>

According to Output type in the manual I should use promote\_op to decide container types. But according to the output of help?\> Base.promote\_op I should avoid promote\_op as it is “fragile”. And if I did use promote\_op is…

---

## [Interrupting a ccall, is it possible?](https://discourse.julialang.org/t/interrupting-a-ccall-is-it-possible/94196)

<div class="topic-metadata">

**Author:** [@cjproud](https://discourse.julialang.org/u/cjproud)\
**Replies:** 0\
**Last updated:** [February 7, 2023, 11:46am UTC](https://discourse.julialang.org/t/interrupting-a-ccall-is-it-possible/94196 "2023-02-07T11:46:08Z")

</div>

I’m attempting to interrupt a ccall which is executed via remote\_call: task = remotecall(call\_solver, wid) where call\_solver is a ccall and wid is 2, the current worker id being 1. I then try to interrupt it via interr…

---

## [Can I Create Bootstrap Table with Julia Package?](https://discourse.julialang.org/t/can-i-create-bootstrap-table-with-julia-package/94206)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [February 7, 2023, 1:28pm UTC](https://discourse.julialang.org/t/can-i-create-bootstrap-table-with-julia-package/94206 "2023-02-07T13:28:08Z")

</div>

Hi all, I want to create a bootstrap table like this that can be sorted alphabetically or numerically: Can Julia create a single html webpage from running the code? Like plotting showing GUI box.

---

## [Understanding specialized methods for field access](https://discourse.julialang.org/t/understanding-specialized-methods-for-field-access/94136)

<div class="topic-metadata">

**Author:** [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Replies:** 7\
**Last updated:** [February 7, 2023, 12:00pm UTC](https://discourse.julialang.org/t/understanding-specialized-methods-for-field-access/94136 "2023-02-07T12:00:31Z")

</div>

Hi! Since this is my first post, let me say that I have worked with Julia for some work and hobby projects until now, and that I really like the language and its possibilities – and its amazing community, sharing their …

---

## [Grouped Data Frames](https://discourse.julialang.org/t/grouped-data-frames/94116)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 8\
**Last updated:** [February 7, 2023, 8:59am UTC](https://discourse.julialang.org/t/grouped-data-frames/94116 "2023-02-07T08:59:01Z")

</div>

I find querying a JuliaDB IndexedTable is 20% faster than a DataFrame. But selecting a group from a GroupedDataFrame (GDF) is 200 times faster. So I’d like to work more with GDFs. I notice New columns in the und…

---

## [ImplicitEquations Plot Return Empty Plot](https://discourse.julialang.org/t/implicitequations-plot-return-empty-plot/94117)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 8\
**Last updated:** [February 7, 2023, 4:38am UTC](https://discourse.julialang.org/t/implicitequations-plot-return-empty-plot/94117 "2023-02-07T04:38:23Z")

</div>

Hi all, there is a problem with plotting using ImplicitEquations: using Plots, ImplicitEquations, LaTeXStrings gr() f(x,y) = y^2 - 3y - 4 - x g(x,y) = x+y plot(f == 0,-5,5, xtick=-7:1:5, xlims=(-7,5), ylims=(-5,5), …

---

## [Vim Bindings on the horizon?](https://discourse.julialang.org/t/vim-bindings-on-the-horizon/86801)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 10\
**Last updated:** [February 7, 2023, 2:57am UTC](https://discourse.julialang.org/t/vim-bindings-on-the-horizon/86801 "2023-02-07T02:57:33Z")

</div>

I use either Emacs in Evil mode or the neovim plugin in VSCode, and my shell also uses VIM mode. So the only command line that does not follow that paradigm is Julia. I found a few discussions on github re VIM bindings…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=330)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=332)
