# General Usage

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

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

**Page:** 424

---

## [How to Install all Packages in a Project into the General Julia Manifest](https://discourse.julialang.org/t/how-to-install-all-packages-in-a-project-into-the-general-julia-manifest/84143)

<div class="topic-metadata">

**Author:** [@tawheeler](https://discourse.julialang.org/u/tawheeler)\
**Replies:** 3\
**Last updated:** [July 13, 2022, 3:17am UTC](https://discourse.julialang.org/t/how-to-install-all-packages-in-a-project-into-the-general-julia-manifest/84143 "2022-07-13T03:17:11Z")

</div>

I have a bunch of packages that I would like my general julia environment to have. To achieve this I have created Manifest and Project files with the necessary packages and dependencies. How would I go about installing …

---

## [How to diagnose a terminal crash?](https://discourse.julialang.org/t/how-to-diagnose-a-terminal-crash/78128)

<div class="topic-metadata">

**Author:** [@SortofDamocles](https://discourse.julialang.org/u/SortofDamocles)\
**Replies:** 21\
**Last updated:** [July 13, 2022, 2:50am UTC](https://discourse.julialang.org/t/how-to-diagnose-a-terminal-crash/78128 "2022-07-13T02:50:08Z")

</div>

I am getting unpredictable and non-reproducible terminal crashes in Julia 1.7, both within VSCode and also from the command line using PowerShell on Windows 11, and I don’t know how to diagnose the root issue. I’m sorry …

---

## [PlotlyJS interactive image of 3D plot](https://discourse.julialang.org/t/plotlyjs-interactive-image-of-3d-plot/84117)

<div class="topic-metadata">

**Author:** [@Adam\_Davis](https://discourse.julialang.org/u/Adam_Davis)\
**Replies:** 6\
**Last updated:** [July 13, 2022, 12:05am UTC](https://discourse.julialang.org/t/plotlyjs-interactive-image-of-3d-plot/84117 "2022-07-13T00:05:23Z")

</div>

I have a 3D plot made using PlotlyJS.jl. This is done using Jupyter notebooks. When the plot is saved to a png it is only saved as a snapshot of the position of the plot at the time of saving. What is the best way to …

---

## [How to implement adaptive parameters for ODE solvers](https://discourse.julialang.org/t/how-to-implement-adaptive-parameters-for-ode-solvers/84129)

<div class="topic-metadata">

**Author:** [@timb](https://discourse.julialang.org/u/timb)\
**Replies:** 2\
**Last updated:** [July 12, 2022, 11:32pm UTC](https://discourse.julialang.org/t/how-to-implement-adaptive-parameters-for-ode-solvers/84129 "2022-07-12T23:32:54Z")

</div>

I would like to create parameters that change with time t. In the classic SIR model below for example, I would like to have a beta that changes: say there are two betas and a dummy variable that indicates when to use wh…

---

## [Unwanted allocations when updating type field](https://discourse.julialang.org/t/unwanted-allocations-when-updating-type-field/84122)

<div class="topic-metadata">

**Author:** [@WDM-Computation](https://discourse.julialang.org/u/WDM-Computation)\
**Replies:** 5\
**Last updated:** [July 12, 2022, 8:55pm UTC](https://discourse.julialang.org/t/unwanted-allocations-when-updating-type-field/84122 "2022-07-12T20:55:30Z")

</div>

Hello! Physics PhD student here using Julia for a research project. I have a question regarding what seems to be unnecessary extra memory allocations in my program. I am using a custom type along the lines of abstract…

---

## [Find last section header with Gumbo.jl](https://discourse.julialang.org/t/find-last-section-header-with-gumbo-jl/84120)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 0\
**Last updated:** [July 12, 2022, 6:44pm UTC](https://discourse.julialang.org/t/find-last-section-header-with-gumbo-jl/84120 "2022-07-12T18:44:01Z")

</div>

I’m working on wrapping a specific REST API with a Julia package. I am downloading and parsing the HTML of the API’s documentation page to generate the in-Julia API. Specifically, I’m looking at each of the tables on the…

---

## [Change x axis from integer-scale to pi-scale](https://discourse.julialang.org/t/change-x-axis-from-integer-scale-to-pi-scale/84106)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [July 12, 2022, 6:00pm UTC](https://discourse.julialang.org/t/change-x-axis-from-integer-scale-to-pi-scale/84106 "2022-07-12T18:00:49Z")

</div>

I want to know what is the general (can be used for backend Plotly,GR,Makie,PlotlyJS) / easiest way to change the scale from standard integer: -5,-4,…,0,1,2,… to pi-scale: -π/2. -π/4, 0,…,π/4,π/2,π,3π/2,2π this is my …

---

## [Nondimensionalization of population dynamics ODE models but not pharmacokinetics ODE models](https://discourse.julialang.org/t/nondimensionalization-of-population-dynamics-ode-models-but-not-pharmacokinetics-ode-models/83722)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 2\
**Last updated:** [July 12, 2022, 3:31pm UTC](https://discourse.julialang.org/t/nondimensionalization-of-population-dynamics-ode-models-but-not-pharmacokinetics-ode-models/83722 "2022-07-12T15:31:17Z")

</div>

Hey folks, just a question based on curiosity. Although I am still relatively new to differential equations modelling, I do notice some of the variations in the methods and discourse in different fields. One such apparen…

---

## [Question regarding how replace! works:](https://discourse.julialang.org/t/question-regarding-how-replace-works/84109)

<div class="topic-metadata">

**Author:** [@Juan\_Mac\_Donagh](https://discourse.julialang.org/u/Juan_Mac_Donagh)\
**Replies:** 3\
**Last updated:** [July 12, 2022, 3:25pm UTC](https://discourse.julialang.org/t/question-regarding-how-replace-works/84109 "2022-07-12T15:25:17Z")

</div>

Hi all, I am having some issues using replace! in my DataFrame. I get the following error when trying to change some strings in a column, so when I create a boxplot they are better labeled: ArgumentError: string too lar…

---

## [Complete package removal](https://discourse.julialang.org/t/complete-package-removal/84100)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 2\
**Last updated:** [July 12, 2022, 2:15pm UTC](https://discourse.julialang.org/t/complete-package-removal/84100 "2022-07-12T14:15:48Z")

</div>

Hello how to remove the package with its artifacts on Ubuntu - I have a package using Conda.jl and after removing and reinstalling I have still old python dependencies - so some artifacts need to be still present - How t…

---

## [Extending STDLIB’s Markdown](https://discourse.julialang.org/t/extending-stdlib-s-markdown/84079)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [July 12, 2022, 10:24am UTC](https://discourse.julialang.org/t/extending-stdlib-s-markdown/84079 "2022-07-12T10:24:19Z")

</div>

I understand that Markdown.jl has been moved into stdlib: What is the standard Markdown implementation for Julia? I’d like to extend this Markdown syntax with MyST Markdown functionality. The Julia documentation states …

---

## [VideoIO.jl can’t seem to open a .mkv video](https://discourse.julialang.org/t/videoio-jl-can-t-seem-to-open-a-mkv-video/83875)

<div class="topic-metadata">

**Author:** [@Hareruya](https://discourse.julialang.org/u/Hareruya)\
**Replies:** 13\
**Last updated:** [July 12, 2022, 6:53am UTC](https://discourse.julialang.org/t/videoio-jl-can-t-seem-to-open-a-mkv-video/83875 "2022-07-12T06:53:53Z")

</div>

Greetings. I do image signal processing as a hobby, especially playing around with images taken from video. I used to take screenshots using MPV, but I started to wonder if it would not be better to take shots from with…

---

## [PlotlyJS 3D Annotations](https://discourse.julialang.org/t/plotlyjs-3d-annotations/84048)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [July 12, 2022, 7:37am UTC](https://discourse.julialang.org/t/plotlyjs-3d-annotations/84048 "2022-07-12T07:37:10Z")

</div>

Hi all, I am playing around with this PlotlyJS, I want to know: how to change the marker color so each can have different color. how to change the label of x,y,z ? x is for years, y is for pandemics, and z is for Deat…

---

## [Make Documenter.jl understand where to search local markdown links](https://discourse.julialang.org/t/make-documenter-jl-understand-where-to-search-local-markdown-links/84012)

<div class="topic-metadata">

**Author:** [@Lecrapouille](https://discourse.julialang.org/u/Lecrapouille)\
**Replies:** 5\
**Last updated:** [July 12, 2022, 6:33am UTC](https://discourse.julialang.org/t/make-documenter-jl-understand-where-to-search-local-markdown-links/84012 "2022-07-12T06:33:43Z")

</div>

Hi ! I’m working on my git branch dev for my MyProject.jl project. The README.md is placed at the root of my like any GitHub project it and is referring to a local folder ./tutorial. For example: See my \[tutorial\](tutor…

---

## [Add varargs... to generic function](https://discourse.julialang.org/t/add-varargs-to-generic-function/84046)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 3\
**Last updated:** [July 12, 2022, 5:59am UTC](https://discourse.julialang.org/t/add-varargs-to-generic-function/84046 "2022-07-12T05:59:35Z")

</div>

Is there a function that can take any kwargs function and return the same function with a varargs… parameter? That is convert f(; a ) = 1 to f(; a, X... ) = 1 and f(; a,b,c ) = a+b+c to f(; a,b,c, X... ) = a+b+…

---

## [Convert dataframe to array of tuples](https://discourse.julialang.org/t/convert-dataframe-to-array-of-tuples/84085)

<div class="topic-metadata">

**Author:** [@chenr86](https://discourse.julialang.org/u/chenr86)\
**Replies:** 1\
**Last updated:** [July 12, 2022, 5:47am UTC](https://discourse.julialang.org/t/convert-dataframe-to-array-of-tuples/84085 "2022-07-12T05:47:03Z")

</div>

Hello, I have a dataframe of 2 columns reading from csv file, how can I convert each line of dataframe into a tuple, and combine all the tuples to form like Array{Tuple{Float64, Float64}} or Vector{Tuple{Float64, Float6…

---

## [When Zygote.jl meets Quadgk.jl: Mutating arrays is not supported -- called setindex!(::Vector{QuadGK.Segment})](https://discourse.julialang.org/t/when-zygote-jl-meets-quadgk-jl-mutating-arrays-is-not-supported-called-setindex-vector-quadgk-segment/84042)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 6\
**Last updated:** [July 12, 2022, 5:14am UTC](https://discourse.julialang.org/t/when-zygote-jl-meets-quadgk-jl-mutating-arrays-is-not-supported-called-setindex-vector-quadgk-segment/84042 "2022-07-12T05:14:15Z")

</div>

I have a problem calculating the derivative of a function that involves an integral operation. Examples are as follows: using QuadGK using Zygote function test() f(t)=quadgk(x-\>sin(x)\*exp(t\*cos(x)) , 0, pi, atol=1…

---

## [Finding Derivative of 2 arrays of numbers Using Zygote](https://discourse.julialang.org/t/finding-derivative-of-2-arrays-of-numbers-using-zygote/83822)

<div class="topic-metadata">

**Author:** [@alegeaa](https://discourse.julialang.org/u/alegeaa)\
**Replies:** 15\
**Last updated:** [July 12, 2022, 4:36am UTC](https://discourse.julialang.org/t/finding-derivative-of-2-arrays-of-numbers-using-zygote/83822 "2022-07-12T04:36:49Z")

</div>

Hello, Please I am working on a physical system, and after running simulations I have 2 arrays of variables like this: D = \[0.01, 0.02, …, 0.05\] m = \[1, 2, …, 5\] Please how do I find the derivative (∂D/∂m) using Zygo…

---

## [Type instability in Folds.map](https://discourse.julialang.org/t/type-instability-in-folds-map/84080)

<div class="topic-metadata">

**Author:** [@MattSainsbury-Dale](https://discourse.julialang.org/u/MattSainsbury-Dale)\
**Replies:** 0\
**Last updated:** [July 12, 2022, 3:54am UTC](https://discourse.julialang.org/t/type-instability-in-folds-map/84080 "2022-07-12T03:54:28Z")

</div>

Hello, I’ve noticed that the Folds version of map() seems to introduce type instability: using Folds f1(K::Integer) = map(identity, 1:K) f2(K::Integer) = Folds.map(identity, 1:K) @code\_warntype f1(5) @code\_warntype f…

---

## [Annotations using Package Gaston](https://discourse.julialang.org/t/annotations-using-package-gaston/84076)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 0\
**Last updated:** [July 11, 2022, 11:46pm UTC](https://discourse.julialang.org/t/annotations-using-package-gaston/84076 "2022-07-11T23:46:41Z")

</div>

Dear all, I have the code to plot a graph using Gaston using Gaston L=\[1 2;3 4\] scatter(L\[1:1,1\], L\[1:1,2\],linewidth="3", pointtype="fsquare", plotstyle="linespoints",Axes(key = :off)) How can I do a annotation at rig…

---

## [Dispatching on type alias](https://discourse.julialang.org/t/dispatching-on-type-alias/84035)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 2\
**Last updated:** [July 12, 2022, 1:46am UTC](https://discourse.julialang.org/t/dispatching-on-type-alias/84035 "2022-07-12T01:46:55Z")

</div>

I want to create a type alias for the standard array type, i.e.: const MyArray = Array and I want to be able to dispatch on this type in a way that is unique for MyArray, e.g.: function test(::MyArray) println("It…

---

## [Joining forwards- and backwards-in-time ODE solutions](https://discourse.julialang.org/t/joining-forwards-and-backwards-in-time-ode-solutions/82071)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 5\
**Last updated:** [July 12, 2022, 1:28am UTC](https://discourse.julialang.org/t/joining-forwards-and-backwards-in-time-ode-solutions/82071 "2022-07-12T01:28:56Z")

</div>

As in this question, I’m hoping to combine two ODE solutions, but I really need some of the nice features of the solutions — mostly dense output. And maybe in some ways my problem is easier because I really have the sam…

---

## [Struggling to Run Distributed I/O Operations on SLURM Cluster](https://discourse.julialang.org/t/struggling-to-run-distributed-i-o-operations-on-slurm-cluster/84075)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [July 12, 2022, 12:40am UTC](https://discourse.julialang.org/t/struggling-to-run-distributed-i-o-operations-on-slurm-cluster/84075 "2022-07-12T00:40:18Z")

</div>

Hi all, Problem Background I have been struggling a couple days to understand parallel and distributed computing on a remote cluster that runs SLURM. I have 100s of huge files that I need to extract information from an…

---

## [Matrix Column/Row Labelling](https://discourse.julialang.org/t/matrix-column-row-labelling/84064)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 3\
**Last updated:** [July 11, 2022, 10:17pm UTC](https://discourse.julialang.org/t/matrix-column-row-labelling/84064 "2022-07-11T22:17:31Z")

</div>

Hi, Is there a simple way of assigning labels to matrix columns such that if operations are performed to that matrix you still can see where that specific column has ended up for example reduced row echelon or if I perf…

---

## [@benchmark takes extra long time](https://discourse.julialang.org/t/benchmark-takes-extra-long-time/84056)

<div class="topic-metadata">

**Author:** [@Daniel\_Scheinerman](https://discourse.julialang.org/u/Daniel_Scheinerman)\
**Replies:** 2\
**Last updated:** [July 11, 2022, 7:51pm UTC](https://discourse.julialang.org/t/benchmark-takes-extra-long-time/84056 "2022-07-11T19:51:01Z")

</div>

I have found that @benchmark takes an exceptionally long (additional) time to run when the computation it is timing is more than a second or so. Here is an example: julia\> using Combinatorics function sum\_subsets(A) …

---

## [Changing field with a function in a mutable struct](https://discourse.julialang.org/t/changing-field-with-a-function-in-a-mutable-struct/84006)

<div class="topic-metadata">

**Author:** [@RicardoFR](https://discourse.julialang.org/u/RicardoFR)\
**Replies:** 9\
**Last updated:** [July 11, 2022, 7:25pm UTC](https://discourse.julialang.org/t/changing-field-with-a-function-in-a-mutable-struct/84006 "2022-07-11T19:25:16Z")

</div>

Hello all! I have a mutable struct that must carry a function in one of its fields. Once I assign it to a variable, however, I cannot change the function. Here’s an example: mutable struct Foo{T\<:Real,F\<:Function} …

---

## [Simple vector algebra with Symbolics/SymbolicUtils](https://discourse.julialang.org/t/simple-vector-algebra-with-symbolics-symbolicutils/79054)

<div class="topic-metadata">

**Author:** [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Replies:** 6\
**Last updated:** [July 11, 2022, 6:21pm UTC](https://discourse.julialang.org/t/simple-vector-algebra-with-symbolics-symbolicutils/79054 "2022-07-11T18:21:38Z")

</div>

I am trying to define a simple symbolic vector type to use with the Symbolics and/or SymbolicUtils packages. I have looked through the documentation of these packages, but I am still at a loss. I am aware that Symbolic…

---

## [Julia shell and Windows shell (cmd) giving different result](https://discourse.julialang.org/t/julia-shell-and-windows-shell-cmd-giving-different-result/84053)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 4\
**Last updated:** [July 11, 2022, 5:47pm UTC](https://discourse.julialang.org/t/julia-shell-and-windows-shell-cmd-giving-different-result/84053 "2022-07-11T17:47:49Z")

</div>

I am attempting to call xelatex from Julia’s run() function. For some reason I am getting a missing fonts error when running this from Julia. When running the same command (from the same location) in Windows cmd, the d…

---

## [What is the standard Markdown implementation for Julia?](https://discourse.julialang.org/t/what-is-the-standard-markdown-implementation-for-julia/84059)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [July 11, 2022, 4:28pm UTC](https://discourse.julialang.org/t/what-is-the-standard-markdown-implementation-for-julia/84059 "2022-07-11T16:28:05Z")

</div>

I had remembered that Markdown.jl is the standard implementation of Markdown in Julia. I am working on a MyST-markdown wrapper in Julia, and I’m trying to see what the other implementations are. I see Markdown.jl is par…

---

## [Why XLSX.readxlsx not working?](https://discourse.julialang.org/t/why-xlsx-readxlsx-not-working/84052)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 4\
**Last updated:** [July 11, 2022, 3:35pm UTC](https://discourse.julialang.org/t/why-xlsx-readxlsx-not-working/84052 "2022-07-11T15:35:39Z")

</div>

I’m trying to read a first column of an excel file (from sheet2 column d2). This is my try: using XLSX, , DataFrames xf = XLSX.readxlsx("C:/Data/sample.xlsx") sh = xf\["sheet2"\] sh\["d2"\] ; sh\[3\]; # or any other simila…

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

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