# General Usage

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

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

**Page:** 179

---

## [Julia documentation is improving!](https://discourse.julialang.org/t/julia-documentation-is-improving/113070)

<div class="topic-metadata">

**Author:** [@dgleich](https://discourse.julialang.org/u/dgleich)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 2:01pm UTC](https://discourse.julialang.org/t/julia-documentation-is-improving/113070 "2024-04-17T14:01:14Z")

</div>

Just wanted to pass along a note that my experience recently with Julia documentation (core language docs) has been improved compared to the past. It isn’t that the past was bad, but just wanted to convey a message that …

---

## [Interactive maps in Julia (folium equivalent)](https://discourse.julialang.org/t/interactive-maps-in-julia-folium-equivalent/71424)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 5\
**Last updated:** [April 17, 2024, 1:20pm UTC](https://discourse.julialang.org/t/interactive-maps-in-julia-folium-equivalent/71424 "2024-04-17T13:20:53Z")

</div>

What’s the closest thing we have that’s equivalent to folium in Python, i.e. a package that lets me take a set of lat/lon coordinates and plot them on an interactive map, including ideally the ability to have custom html…

---

## [Makie: cannot plot with symlog colorscale](https://discourse.julialang.org/t/makie-cannot-plot-with-symlog-colorscale/113043)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 5\
**Last updated:** [April 17, 2024, 12:46pm UTC](https://discourse.julialang.org/t/makie-cannot-plot-with-symlog-colorscale/113043 "2024-04-17T12:46:24Z")

</div>

I’m trying to plot a 2d array with both positive an negative values, using a “symlog” colorscale in Makie. This is what I get, looks weird – I cannot make any sense out of colorbar labels: And this is what I expecte…

---

## [Convert XML Paths to DataFrame Columns](https://discourse.julialang.org/t/convert-xml-paths-to-dataframe-columns/113042)

<div class="topic-metadata">

**Author:** [@jjAtNxtPt](https://discourse.julialang.org/u/jjAtNxtPt)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 12:00am UTC](https://discourse.julialang.org/t/convert-xml-paths-to-dataframe-columns/113042 "2024-04-17T00:00:57Z")

</div>

I pull data from a database into a data frame with just two columns, ID and XMLData. I need to parse out a list of 125 (for now) up to 240+ xpaths into new columns of the dataframe. I broadcast the parse function over …

---

## [PackageCompiler.jl: Best practices to create cross-platform relocatable app?](https://discourse.julialang.org/t/packagecompiler-jl-best-practices-to-create-cross-platform-relocatable-app/105408)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 4\
**Last updated:** [April 16, 2024, 11:08pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-best-practices-to-create-cross-platform-relocatable-app/105408 "2024-04-16T23:08:52Z")

</div>

Hi community, I was experimenting with PackageCompiler.jl, and I created a relocatable app, which seems to be portable to other machines running the same operating system. But how can I compile binaries for every opera…

---

## [Efficiently loading a batch of .mat files](https://discourse.julialang.org/t/efficiently-loading-a-batch-of-mat-files/113036)

<div class="topic-metadata">

**Author:** [@vict\_riag](https://discourse.julialang.org/u/vict_riag)\
**Replies:** 2\
**Last updated:** [April 16, 2024, 8:46pm UTC](https://discourse.julialang.org/t/efficiently-loading-a-batch-of-mat-files/113036 "2024-04-16T20:46:13Z")

</div>

Hello, I am new at optimizing julia code. Currently I am working on a project translating a model in MATLAB to Julia. There is a large amount of starting data for this model written in .mat files. Right now, I am develo…

---

## [API reference for Julia Embedding in C](https://discourse.julialang.org/t/api-reference-for-julia-embedding-in-c/3963)

<div class="topic-metadata">

**Author:** [@tastelessjolt](https://discourse.julialang.org/u/tastelessjolt)\
**Replies:** 13\
**Last updated:** [April 16, 2024, 8:05pm UTC](https://discourse.julialang.org/t/api-reference-for-julia-embedding-in-c/3963 "2024-04-16T20:05:21Z")

</div>

Is there any official API reference for Julia Embedding in C, or should we be understanding by going through the code or asking here? And specifically, How to create and access the data in the tuple? How to convert a …

---

## [How to check what other packages an installed package uses?](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 4\
**Last updated:** [April 16, 2024, 7:58pm UTC](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950 "2024-04-16T19:58:24Z")

</div>

I have installed package X in my Julia environment. How can I check what other packages package X is using and what their versions are? I believe that, in previous versions of Julia, I could use something like e.g. Pkg.…

---

## [Large amount of RAM for double for loop for dictionaries](https://discourse.julialang.org/t/large-amount-of-ram-for-double-for-loop-for-dictionaries/113029)

<div class="topic-metadata">

**Author:** [@christmas\_jones](https://discourse.julialang.org/u/christmas_jones)\
**Replies:** 10\
**Last updated:** [April 16, 2024, 7:20pm UTC](https://discourse.julialang.org/t/large-amount-of-ram-for-double-for-loop-for-dictionaries/113029 "2024-04-16T19:20:38Z")

</div>

I have a function that computes a float value from two dictionaries (basically by ‘multiplying’ the dictionaries, with a constraint that the keys (tuples) summed pairwise are in another set), but it uses a huge amount of…

---

## [Help me understand multi-threaded scaling for matrix multiplication](https://discourse.julialang.org/t/help-me-understand-multi-threaded-scaling-for-matrix-multiplication/112926)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 22\
**Last updated:** [April 16, 2024, 6:29pm UTC](https://discourse.julialang.org/t/help-me-understand-multi-threaded-scaling-for-matrix-multiplication/112926 "2024-04-16T18:29:13Z")

</div>

Hello, I would like to begin by clarifying that I have very little knowledge of multithreading. I was experimenting with the following code, using the MKL library to perform matrix multiplications with a different numbe…

---

## [Ambiguity in change of variable behaviour in a struct?](https://discourse.julialang.org/t/ambiguity-in-change-of-variable-behaviour-in-a-struct/113012)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 13\
**Last updated:** [April 16, 2024, 5:13pm UTC](https://discourse.julialang.org/t/ambiguity-in-change-of-variable-behaviour-in-a-struct/113012 "2024-04-16T17:13:52Z")

</div>

I was recently writing some code and noticed a peculiar behaviour of structs Notice how earlier, I define a variable a with value 1. I push this into a list. Change the value of the list variable but that doesn’t cha…

---

## [Inv not working in mac?](https://discourse.julialang.org/t/inv-not-working-in-mac/113014)

<div class="topic-metadata">

**Author:** [@ivanricardo](https://discourse.julialang.org/u/ivanricardo)\
**Replies:** 9\
**Last updated:** [April 16, 2024, 4:21pm UTC](https://discourse.julialang.org/t/inv-not-working-in-mac/113014 "2024-04-16T16:21:46Z")

</div>

Hello, So I have just installed julia 1.10.2 on a mac (M1) and I try running A = \[1 2 3;4 5 6;7 8 9\] inv(A) and I expect a singular error. However, I actually get a matrix as an output. What is weirder is that if I d…

---

## [Are there any tools in julia that can test the peak memory consumption of the functions I wrote?](https://discourse.julialang.org/t/are-there-any-tools-in-julia-that-can-test-the-peak-memory-consumption-of-the-functions-i-wrote/113011)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 1:00pm UTC](https://discourse.julialang.org/t/are-there-any-tools-in-julia-that-can-test-the-peak-memory-consumption-of-the-functions-i-wrote/113011 "2024-04-16T13:00:03Z")

</div>

Let’s look at this example first: julia\> using BenchmarkTools julia\> julia\> function f(x::Matrix{Float64}) y = x \* x return nothing end f (generic function with 1 method) julia\> julia\> …

---

## [Optimising iterative solution of small system](https://discourse.julialang.org/t/optimising-iterative-solution-of-small-system/112885)

<div class="topic-metadata">

**Author:** [@alemelis](https://discourse.julialang.org/u/alemelis)\
**Replies:** 12\
**Last updated:** [April 16, 2024, 7:46am UTC](https://discourse.julialang.org/t/optimising-iterative-solution-of-small-system/112885 "2024-04-16T07:46:29Z")

</div>

Hello again, I’m solving iteratively this system of 6 equations as part of a larger simulation Toy datausing StaticArrays using LinearAlgebra mutable struct V{T} u::T A::T A0::T γ::T β::T end st…

---

## [How to print similar tabular process output?](https://discourse.julialang.org/t/how-to-print-similar-tabular-process-output/112928)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 6\
**Last updated:** [April 16, 2024, 7:33am UTC](https://discourse.julialang.org/t/how-to-print-similar-tabular-process-output/112928 "2024-04-16T07:33:03Z")

</div>

How can I print a similar tabular process output in my code? (make them aligned) Nodes | B&B Tree | Objective Bounds | Dynamic Constraints | Work Proc. InQue…

---

## [Segfault when using PythonCall.jl with Plots.jl](https://discourse.julialang.org/t/segfault-when-using-pythoncall-jl-with-plots-jl/112944)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 2:42am UTC](https://discourse.julialang.org/t/segfault-when-using-pythoncall-jl-with-plots-jl/112944 "2024-04-16T02:42:47Z")

</div>

I have a package that uses PythonCall.jl to import and use the python library TTS. Importing Plots.jl seems to be causing a segmentation fault. Below is a minimum working example. If I import Pytest and then call f(), it…

---

## [Will return allocate memory?](https://discourse.julialang.org/t/will-return-allocate-memory/112987)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 3\
**Last updated:** [April 16, 2024, 1:19am UTC](https://discourse.julialang.org/t/will-return-allocate-memory/112987 "2024-04-16T01:19:00Z")

</div>

Hi guys, looking at the following two versions of codes. I found more allocations in version 2 perhaps because b is returned in version 2. However, b = \[a\] is also operated in both versions. Why is there a big difference…

---

## [Is Julia slow at closing files on Windows?](https://discourse.julialang.org/t/is-julia-slow-at-closing-files-on-windows/112983)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 12:38am UTC](https://discourse.julialang.org/t/is-julia-slow-at-closing-files-on-windows/112983 "2024-04-16T00:38:21Z")

</div>

Hello! It is hard to provide a MWE, since this is a pattern I observe when running a simulation in Julia. I time the different operation and I see that closing a file through HDF5.jl takes up more time than I think it s…

---

## [\`in(x, y)\` and \`y in x\` behave differently?](https://discourse.julialang.org/t/in-x-y-and-y-in-x-behave-differently/112965)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 8\
**Last updated:** [April 15, 2024, 11:53pm UTC](https://discourse.julialang.org/t/in-x-y-and-y-in-x-behave-differently/112965 "2024-04-15T23:53:39Z")

</div>

I made a dummy range struct MyRange starting::Int ending::Int end for which I only care to check whether integers are contained there. Consequently I implemented the Base.in function Base.in(r::MyRange, i::In…

---

## [Displaying docstrings in Notebook in VSCode (errors)](https://discourse.julialang.org/t/displaying-docstrings-in-notebook-in-vscode-errors/107627)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 5\
**Last updated:** [April 15, 2024, 8:53pm UTC](https://discourse.julialang.org/t/displaying-docstrings-in-notebook-in-vscode-errors/107627 "2024-04-15T20:53:42Z")

</div>

I found this SO post that makes think it should work on VSC but when I try it (in notebook cell) @doc sin ParseError: KaTeX parse error: No such environment: verbatim at position 7: \\begin{̲v̲e̲r̲b̲a̲t̲i̲m̲}̲ sin(x) \\e…

---

## [Julia random segmentation failure](https://discourse.julialang.org/t/julia-random-segmentation-failure/112934)

<div class="topic-metadata">

**Author:** [@ttx002000](https://discourse.julialang.org/u/ttx002000)\
**Replies:** 11\
**Last updated:** [April 15, 2024, 6:49pm UTC](https://discourse.julialang.org/t/julia-random-segmentation-failure/112934 "2024-04-15T18:49:03Z")

</div>

I am running my codes on my university server. Typically I run a few random initial conditions on the same set of parameters. However, some of these scripts run through, while some of them run for a while and failed su…

---

## [StackOverflowError for large set of Jumps in JumpProcesses.jl with high-dimensional set of ODEs](https://discourse.julialang.org/t/stackoverflowerror-for-large-set-of-jumps-in-jumpprocesses-jl-with-high-dimensional-set-of-odes/112969)

<div class="topic-metadata">

**Author:** [@flmuk](https://discourse.julialang.org/u/flmuk)\
**Replies:** 1\
**Last updated:** [April 15, 2024, 4:16pm UTC](https://discourse.julialang.org/t/stackoverflowerror-for-large-set-of-jumps-in-jumpprocesses-jl-with-high-dimensional-set-of-odes/112969 "2024-04-15T16:16:41Z")

</div>

Hello, I have to simulate a large (n=1000) set of simple ODEs, and each ODE gets an independent realisation of Poisson input. When trying to set up the JumpProblem as in the documentation. However, when the number of …

---

## [Oracle.jl with oracle wallet](https://discourse.julialang.org/t/oracle-jl-with-oracle-wallet/112956)

<div class="topic-metadata">

**Author:** [@usoh](https://discourse.julialang.org/u/usoh)\
**Replies:** 0\
**Last updated:** [April 15, 2024, 10:03am UTC](https://discourse.julialang.org/t/oracle-jl-with-oracle-wallet/112956 "2024-04-15T10:03:07Z")

</div>

How to connect to an oracle database without password using an oracle wallet ? here my lines with user and password: import Oracle username=“test” password=“test” svc = “MYDATABASE” conn = Oracle.Connection(usernam…

---

## [Does the normalize\_string() function still exist?](https://discourse.julialang.org/t/does-the-normalize-string-function-still-exist/112952)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 2\
**Last updated:** [April 15, 2024, 9:14am UTC](https://discourse.julialang.org/t/does-the-normalize-string-function-still-exist/112952 "2024-04-15T09:14:33Z")

</div>

This function is referred to, for example, here. But julia\> normalize\_string("Hello World!", decompose=true, compat=true, casefold=true, stripmark=true, stripignore=true) ERROR: UndefVarError: \`normalize\_string\` not de…

---

## [How to \`add\` and \`using\` use the latest commit of a package that hasn't been released yet?](https://discourse.julialang.org/t/how-to-add-and-using-use-the-latest-commit-of-a-package-that-hasnt-been-released-yet/112947)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 7\
**Last updated:** [April 15, 2024, 9:02am UTC](https://discourse.julialang.org/t/how-to-add-and-using-use-the-latest-commit-of-a-package-that-hasnt-been-released-yet/112947 "2024-04-15T09:02:02Z")

</div>

For example, I am developing a new package named PkgB that has a registered package PkgA as one of its dependencies. PkgA has a new commit but it hasn’t been released yet. Now I want to add and using the latest committed…

---

## [How to save a lambdifyed (by SymEngine) expression to a file and load it in a new Session?](https://discourse.julialang.org/t/how-to-save-a-lambdifyed-by-symengine-expression-to-a-file-and-load-it-in-a-new-session/111165)

<div class="topic-metadata">

**Author:** [@Zaph](https://discourse.julialang.org/u/Zaph)\
**Replies:** 2\
**Last updated:** [April 15, 2024, 7:50am UTC](https://discourse.julialang.org/t/how-to-save-a-lambdifyed-by-symengine-expression-to-a-file-and-load-it-in-a-new-session/111165 "2024-04-15T07:50:26Z")

</div>

Hello, I posted this on Stackoverflow (https://stackoverflow.com/q/78087392/23508386) a few days ago but got ignored :c. So I decided to try my luck by copying it (inlcuding the Updates to the post I made on stack overfl…

---

## [Using multiple in-place krylov solver from Krylov.jl](https://discourse.julialang.org/t/using-multiple-in-place-krylov-solver-from-krylov-jl/111028)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 5\
**Last updated:** [April 15, 2024, 6:56am UTC](https://discourse.julialang.org/t/using-multiple-in-place-krylov-solver-from-krylov-jl/111028 "2024-04-15T06:56:22Z")

</div>

I’m trying to solve several linear equations that each change with each step of time. For example, I have a 100x300 grid that I need to solve for every time step. I’m trying to use the in-place solvers from Krylov.jl. …

---

## [To confirm: All dependencies of a Julia package should be \`add\`-ed before \`using\`, right?](https://discourse.julialang.org/t/to-confirm-all-dependencies-of-a-julia-package-should-be-add-ed-before-using-right/112945)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [April 15, 2024, 4:53am UTC](https://discourse.julialang.org/t/to-confirm-all-dependencies-of-a-julia-package-should-be-add-ed-before-using-right/112945 "2024-04-15T04:53:37Z")

</div>

During the development of a Julia package, all its dependencies need to be add-ed before using it in the package module, even if it is part of the Julia standard library, right? Thanks in advance!

---

## [How to reduce a (reshaped) sparse matrix to a max or sum with acceptable speed?](https://discourse.julialang.org/t/how-to-reduce-a-reshaped-sparse-matrix-to-a-max-or-sum-with-acceptable-speed/112888)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 14\
**Last updated:** [April 15, 2024, 1:21am UTC](https://discourse.julialang.org/t/how-to-reduce-a-reshaped-sparse-matrix-to-a-max-or-sum-with-acceptable-speed/112888 "2024-04-15T01:21:40Z")

</div>

I generated a 3240000×1460 SparseMatrixCSC{UInt8, Int64} with 518339 stored entries, hereafter called activitygrid. It holds a spatial 3D grid (dims: 300,300,36) every 30 seconds of a 12 hour period. It was very fast to …

---

## [Why Julia compilation times are so long in case of functions created using Symbolics?](https://discourse.julialang.org/t/why-julia-compilation-times-are-so-long-in-case-of-functions-created-using-symbolics/112860)

<div class="topic-metadata">

**Author:** [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Replies:** 16\
**Last updated:** [April 14, 2024, 8:17pm UTC](https://discourse.julialang.org/t/why-julia-compilation-times-are-so-long-in-case-of-functions-created-using-symbolics/112860 "2024-04-14T20:17:05Z")

</div>

I am relatively new in Julia, so maybe I am missing something trivial. I created a file containing a function, using the Symbolics package \_, f = build\_function(F, x) write("function.jl", string(f)) myf = include("func…

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

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