# Latest

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

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

**Page:** 860

---

## [Why is there a massive difference between collect and \[range...\]?](https://discourse.julialang.org/t/why-is-there-a-massive-difference-between-collect-and-range/90497)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 7\
**Last updated:** [November 19, 2022, 11:35pm UTC](https://discourse.julialang.org/t/why-is-there-a-massive-difference-between-collect-and-range/90497 "2022-11-19T23:35:38Z")

</div>

julia\> @time k = collect(1:10^7) 0.294210 seconds (2 allocations: 76.294 MiB, 90.43% gc time) 10000000-element Vector{Int64}: 1 2 ⋮ 9999999 10000000 julia\> @time k = \[(1:10^7)...\] 1.663185…

---

## [Recommendations for learning basic probabilistic simulation](https://discourse.julialang.org/t/recommendations-for-learning-basic-probabilistic-simulation/90508)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 3\
**Last updated:** [November 19, 2022, 11:16pm UTC](https://discourse.julialang.org/t/recommendations-for-learning-basic-probabilistic-simulation/90508 "2022-11-19T23:16:59Z")

</div>

I’m looking to learn how to do probabilistic simulations: both the math and the programming. Is there a good online course or tutorial for this in Julia (if not, just a good one for the math)? Background: I have a rudi…

---

## [DynamicalSystems.jl: how to change the value of a parameter after a certain period](https://discourse.julialang.org/t/dynamicalsystems-jl-how-to-change-the-value-of-a-parameter-after-a-certain-period/88248)

<div class="topic-metadata">

**Author:** [@josec](https://discourse.julialang.org/u/josec)\
**Replies:** 9\
**Last updated:** [November 19, 2022, 9:56pm UTC](https://discourse.julialang.org/t/dynamicalsystems-jl-how-to-change-the-value-of-a-parameter-after-a-certain-period/88248 "2022-11-19T21:56:26Z")

</div>

Hi. I hope this question is placed in the proper category. I have studied the DynamicalSystems.jl guidelines also followed in a very useful video by Datseris (https://www.youtube.com/watch?v=13hqE\_1a158). Suppose I ha…

---

## [Passing in a matrix as initial conditions versus ensemble parallel simulation in DifferentialEquations](https://discourse.julialang.org/t/passing-in-a-matrix-as-initial-conditions-versus-ensemble-parallel-simulation-in-differentialequations/90484)

<div class="topic-metadata">

**Author:** [@kcqpo](https://discourse.julialang.org/u/kcqpo)\
**Replies:** 1\
**Last updated:** [November 19, 2022, 7:15pm UTC](https://discourse.julialang.org/t/passing-in-a-matrix-as-initial-conditions-versus-ensemble-parallel-simulation-in-differentialequations/90484 "2022-11-19T19:15:09Z")

</div>

What’s the difference between passing in a matrix of NxM (N is the number of states, and M is the number of conditions) initial conditions and using the ensemble method?

---

## [Rational Type support for DifferentialEquations](https://discourse.julialang.org/t/rational-type-support-for-differentialequations/90445)

<div class="topic-metadata">

**Author:** [@svretina](https://discourse.julialang.org/u/svretina)\
**Replies:** 5\
**Last updated:** [November 19, 2022, 7:14pm UTC](https://discourse.julialang.org/t/rational-type-support-for-differentialequations/90445 "2022-11-19T19:14:20Z")

</div>

Hello, I am trying to use the DifferentialEquations functions with Rational{BigInt} as data type. for simpler cases it works as it’s shown in https://tutorials.sciml.ai/html/type\_handling/01-number\_types.html Even tho…

---

## [What is the difference between \`:\` and \`!\` indexing in DataFrames with Unitful?](https://discourse.julialang.org/t/what-is-the-difference-between-and-indexing-in-dataframes-with-unitful/90498)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 5\
**Last updated:** [November 19, 2022, 6:37pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-and-indexing-in-dataframes-with-unitful/90498 "2022-11-19T18:37:50Z")

</div>

Hi all! I wanted to decorate some data I have in a DataFrame with a unit of measure from Unitful. See: julia\> df\_results\_master = DataFrame(CSV.File(f)) 468×3 DataFrame Row │ Instruction Base power mean (W) Ba…

---

## [Unable to use Types from Graphs.jl and GridGraphs.jl in Jupyter Notebook](https://discourse.julialang.org/t/unable-to-use-types-from-graphs-jl-and-gridgraphs-jl-in-jupyter-notebook/88913)

<div class="topic-metadata">

**Author:** [@MarawanEmara](https://discourse.julialang.org/u/MarawanEmara)\
**Replies:** 12\
**Last updated:** [November 19, 2022, 5:47pm UTC](https://discourse.julialang.org/t/unable-to-use-types-from-graphs-jl-and-gridgraphs-jl-in-jupyter-notebook/88913 "2022-11-19T17:47:03Z")

</div>

Hello. I am pretty new to Julia and attempting to replicate a tutorial for InferOpt.jl (Tutorial in question is linked here: Tutorial · InferOpt.jl). I have already installed the appropriate packages for using Julia in…

---

## [How to delete all packages at once?](https://discourse.julialang.org/t/how-to-delete-all-packages-at-once/50393)

<div class="topic-metadata">

**Author:** [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Replies:** 3\
**Last updated:** [November 19, 2022, 5:09pm UTC](https://discourse.julialang.org/t/how-to-delete-all-packages-at-once/50393 "2022-11-19T17:09:38Z")

</div>

Hello guys, i want to delete all packages added. Can it be done by one command? Also i want to ask if it can be done with some lines in script(i am using atom to study julia)?

---

## [Problem about installing Jieba package](https://discourse.julialang.org/t/problem-about-installing-jieba-package/90501)

<div class="topic-metadata">

**Author:** [@chanyu020816](https://discourse.julialang.org/u/chanyu020816)\
**Replies:** 2\
**Last updated:** [November 19, 2022, 5:04pm UTC](https://discourse.julialang.org/t/problem-about-installing-jieba-package/90501 "2022-11-19T17:04:17Z")

</div>

I want to install the Jieba package, I’ve tried installing by Pkg package, or cloning the package from GitHub (“GitHub - seekasia/Jieba.jl: Chinese text segmentation with Julia . Julia 中文分词”) and generating a package, co…

---

## [Plot Cosecant with Custom x axis (in pi)](https://discourse.julialang.org/t/plot-cosecant-with-custom-x-axis-in-pi/90491)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [November 19, 2022, 2:01pm UTC](https://discourse.julialang.org/t/plot-cosecant-with-custom-x-axis-in-pi/90491 "2022-11-19T14:01:30Z")

</div>

Hi all I want to plot Cosecant function with the x axis in pi. But the function can’t be plot correctly: using Plots, LaTeXStrings gr() function pitick(start, stop, denom; mode=:text) a = Int(cld(start, π/denom)) …

---

## [How to trigger non-blocking long calculations in Makie?](https://discourse.julialang.org/t/how-to-trigger-non-blocking-long-calculations-in-makie/90496)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 2\
**Last updated:** [November 19, 2022, 1:48pm UTC](https://discourse.julialang.org/t/how-to-trigger-non-blocking-long-calculations-in-makie/90496 "2022-11-19T13:48:16Z")

</div>

I want to do the following in Makie: press a button which triggers long computation that interactively updates the plot. I can’t seem to figure it out. Here is a MWE: This example uses the bool observable running to tra…

---

## [Saving/exporting objects on hard drive](https://discourse.julialang.org/t/saving-exporting-objects-on-hard-drive/90492)

<div class="topic-metadata">

**Author:** [@CeterisPartybus](https://discourse.julialang.org/u/CeterisPartybus)\
**Replies:** 6\
**Last updated:** [November 19, 2022, 1:33pm UTC](https://discourse.julialang.org/t/saving-exporting-objects-on-hard-drive/90492 "2022-11-19T13:33:39Z")

</div>

I am trying to save/export objects in memory to my hard drive. I have found two packages that should allow me to do that: JLD and JLD2. However, both only return errors. Has anyone an idea on how to do that/where my err…

---

## [Eachoverlap's question in GenomicFeatures .jl](https://discourse.julialang.org/t/eachoverlaps-question-in-genomicfeatures-jl/90481)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 0\
**Last updated:** [November 19, 2022, 2:17am UTC](https://discourse.julialang.org/t/eachoverlaps-question-in-genomicfeatures-jl/90481 "2022-11-19T02:17:20Z")

</div>

using GenomicFeatures using DataFrames col = \[ Interval("chr1", 10628, 10683, '?', "abc") Interval("chr1", 10643, 10779, '?', "abc") Interval("chr1", 10645, 10748, '?', "abc") Interval("chr1", 10648, 10786, '?', "a…

---

## [Problem using SBML package](https://discourse.julialang.org/t/problem-using-sbml-package/90382)

<div class="topic-metadata">

**Author:** [@FH96](https://discourse.julialang.org/u/FH96)\
**Replies:** 5\
**Last updated:** [November 19, 2022, 12:59pm UTC](https://discourse.julialang.org/t/problem-using-sbml-package/90382 "2022-11-19T12:59:41Z")

</div>

Hi everyone! I am trying to use SBML package. I read a xml model by readSBML. According to the docs, getS and getUBs should give the stoichiometric matrix and upper boundary of the reactions, respectively. However when…

---

## [Do nothing in the use of ternary operator](https://discourse.julialang.org/t/do-nothing-in-the-use-of-ternary-operator/90486)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 5\
**Last updated:** [November 19, 2022, 4:16am UTC](https://discourse.julialang.org/t/do-nothing-in-the-use-of-ternary-operator/90486 "2022-11-19T04:16:23Z")

</div>

Hi, I am thinking about a simple question. Suppose I have three numbers a, b and c. And I want to check if the sum of them is zero or not. And I have an object n=0. If the sum is not zero, then I want to set another obj…

---

## [Help with YAML](https://discourse.julialang.org/t/help-with-yaml/90493)

<div class="topic-metadata">

**Author:** [@roh\_codeur](https://discourse.julialang.org/u/roh_codeur)\
**Replies:** 0\
**Last updated:** [November 19, 2022, 12:33pm UTC](https://discourse.julialang.org/t/help-with-yaml/90493 "2022-11-19T12:33:31Z")

</div>

Hi is there a way to include a YAML in another YAML please? #bar.yaml a: 1 b: 2 z: &z1 baseProp: 123 #foo.yaml !include bar.yaml a: 100 y: \[1, 2, 3\] z2: \*z1 resulting yml: a:100 b: 2 z2: baseProp: 123 I define …

---

## [Why is Flux's data input format different?](https://discourse.julialang.org/t/why-is-fluxs-data-input-format-different/90490)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 1\
**Last updated:** [November 19, 2022, 11:31am UTC](https://discourse.julialang.org/t/why-is-fluxs-data-input-format-different/90490 "2022-11-19T11:31:02Z")

</div>

Hi, In Flux models (created using Chain), we give data array of the format D x N (D - data dimension, N - number of samples). This is is different from other ML libraries such as Tensorflow/PyTorch where we use N x D fo…

---

## [Creating an empty list and adding elements to it](https://discourse.julialang.org/t/creating-an-empty-list-and-adding-elements-to-it/90479)

<div class="topic-metadata">

**Author:** [@FH96](https://discourse.julialang.org/u/FH96)\
**Replies:** 3\
**Last updated:** [November 19, 2022, 10:49am UTC](https://discourse.julialang.org/t/creating-an-empty-list-and-adding-elements-to-it/90479 "2022-11-19T10:49:56Z")

</div>

Hi! I want to make an empty list or vector or dataframe and add elements which are of tyep String31 to it. But trying the dataframe option and push! I face this error: " ArgumentError: it is not allowed to insert colle…

---

## [Distributed.jl Processes not Shutting Down until Walltime on PBS](https://discourse.julialang.org/t/distributed-jl-processes-not-shutting-down-until-walltime-on-pbs/90388)

<div class="topic-metadata">

**Author:** [@vijeycreative](https://discourse.julialang.org/u/vijeycreative)\
**Replies:** 7\
**Last updated:** [November 19, 2022, 10:44am UTC](https://discourse.julialang.org/t/distributed-jl-processes-not-shutting-down-until-walltime-on-pbs/90388 "2022-11-19T10:44:09Z")

</div>

Hi All, This is my first time posting here, and I am posting after having read through a number of similar posts on Julia Discourse. My problem in a nutshell is that when I run a script on PBS, where the script does som…

---

## [Read Alembic .abc data](https://discourse.julialang.org/t/read-alembic-abc-data/90488)

<div class="topic-metadata">

**Author:** [@davide445](https://discourse.julialang.org/u/davide445)\
**Replies:** 0\
**Last updated:** [November 19, 2022, 7:29am UTC](https://discourse.julialang.org/t/read-alembic-abc-data/90488 "2022-11-19T07:29:45Z")

</div>

As output of a sim tool for soft body simulation I will get an Alembic file, containing in an open source optimized format all the data regarding the evolution of the simulated mesh. Want to ask if there is any package …

---

## [PyPlot stopped working when upgrading to Fedora 37](https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 4\
**Last updated:** [November 19, 2022, 4:10am UTC](https://discourse.julialang.org/t/pyplot-stopped-working-when-upgrading-to-fedora-37/90485 "2022-11-19T04:10:13Z")

</div>

Hello everyone! I upgraded my system from Fedora 35 to Fedora 37 and the PyPlot package stopped working. There are many error messages when I run using PyPlot, suggesting that the matplotlib library may not be installed…

---

## [Automatic direct labels for Makie with Voronoi tessellation](https://discourse.julialang.org/t/automatic-direct-labels-for-makie-with-voronoi-tessellation/90247)

<div class="topic-metadata">

**Author:** [@dgleich](https://discourse.julialang.org/u/dgleich)\
**Replies:** 8\
**Last updated:** [November 19, 2022, 3:20am UTC](https://discourse.julialang.org/t/automatic-direct-labels-for-makie-with-voronoi-tessellation/90247 "2022-11-19T03:20:23Z")

</div>

Best practice for making plots is to directly label lines and avoid indirect legends. (See discussions by Edward Tufte on this: https://twitter.com/EdwardTufte/status/1274213603151880192/photo/1) I’ve been trying to ad…

---

## [How to use ParetoSmooth.jl](https://discourse.julialang.org/t/how-to-use-paretosmooth-jl/79493)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 12\
**Last updated:** [November 19, 2022, 1:34am UTC](https://discourse.julialang.org/t/how-to-use-paretosmooth-jl/79493 "2022-11-19T01:34:35Z")

</div>

It looks like ParetoSmooth.jl is fairly new so the documentation is lacking examples right now. I’m wondering if someone with experience using the package can assist. Here’s a simple MWE: using ParetoSmooth using StatsB…

---

## [Using ROS.jl, and running rosrun to run a .jl file, the JLD load function says file not found](https://discourse.julialang.org/t/using-ros-jl-and-running-rosrun-to-run-a-jl-file-the-jld-load-function-says-file-not-found/90440)

<div class="topic-metadata">

**Author:** [@Nishant\_Mohanty](https://discourse.julialang.org/u/Nishant_Mohanty)\
**Replies:** 1\
**Last updated:** [November 19, 2022, 1:00am UTC](https://discourse.julialang.org/t/using-ros-jl-and-running-rosrun-to-run-a-jl-file-the-jld-load-function-says-file-not-found/90440 "2022-11-19T01:00:11Z")

</div>

Hello all, I am try to generate a precomputed matrix. And then use it within a online controller on the robots. I am using ROS.jl for the same. However when I am importing the saved matrix as: vars = load("data2.jld") …

---

## [Parametric Markdown comments?](https://discourse.julialang.org/t/parametric-markdown-comments/89952)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 6\
**Last updated:** [November 18, 2022, 11:45pm UTC](https://discourse.julialang.org/t/parametric-markdown-comments/89952 "2022-11-18T23:45:54Z")

</div>

Hi! Following the recommendations given in Documentation · The Julia Language, I’d like to also automatically include information on the computer brand, type and model the operating system version the Julia version c…

---

## [Experiments in speeding up runtime dispatch for integer value specialization](https://discourse.julialang.org/t/experiments-in-speeding-up-runtime-dispatch-for-integer-value-specialization/90355)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 28\
**Last updated:** [November 18, 2022, 10:45pm UTC](https://discourse.julialang.org/t/experiments-in-speeding-up-runtime-dispatch-for-integer-value-specialization/90355 "2022-11-18T22:45:22Z")

</div>

I am trying to develop a package that needs to operate on small matrices, the size of which isn’t known at runtime. Nevertheless, there is a lot of performance to be gained by specializing/parameterizing particular funct…

---

## [Real time plotting with Gadfly (Vehicle Trajectory Plotting)](https://discourse.julialang.org/t/real-time-plotting-with-gadfly-vehicle-trajectory-plotting/72333)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 6\
**Last updated:** [November 18, 2022, 9:36pm UTC](https://discourse.julialang.org/t/real-time-plotting-with-gadfly-vehicle-trajectory-plotting/72333 "2022-11-18T21:36:11Z")

</div>

Hello, I would like to plot vehicle trajectory on a cartesian coordinate system in near-real time from the data that is coming from a datastream. Is it possible to do this in Gadfly. My requirement is to push latest o…

---

## [Function calculating in BigFloat/Float64](https://discourse.julialang.org/t/function-calculating-in-bigfloat-float64/90454)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 4\
**Last updated:** [November 18, 2022, 9:11pm UTC](https://discourse.julialang.org/t/function-calculating-in-bigfloat-float64/90454 "2022-11-18T21:11:26Z")

</div>

Hi all What would be the Julian approach to writing a function that, depending on an Integer parameter (the precision) would calculate using either Float64 or BigFloat and return the result in Float64 or BigFloat accord…

---

## [Distributed Computing without passing large Data Structure](https://discourse.julialang.org/t/distributed-computing-without-passing-large-data-structure/90469)

<div class="topic-metadata">

**Author:** [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Replies:** 2\
**Last updated:** [November 18, 2022, 9:03pm UTC](https://discourse.julialang.org/t/distributed-computing-without-passing-large-data-structure/90469 "2022-11-18T21:03:54Z")

</div>

I’m trying to use distributed computing without having to pass a large Vector to each worker. Each worker only needs a single item from the Vector. I should also clarify that I cannot use SharedArrays (at least to my kno…

---

## [How to properly implement lazy compilation of submodules? Problem with invokelatest for kwarg functions](https://discourse.julialang.org/t/how-to-properly-implement-lazy-compilation-of-submodules-problem-with-invokelatest-for-kwarg-functions/90459)

<div class="topic-metadata">

**Author:** [@vpetukhov](https://discourse.julialang.org/u/vpetukhov)\
**Replies:** 0\
**Last updated:** [November 18, 2022, 3:44pm UTC](https://discourse.julialang.org/t/how-to-properly-implement-lazy-compilation-of-submodules-problem-with-invokelatest-for-kwarg-functions/90459 "2022-11-18T15:44:54Z")

</div>

Inspired by LazyModules I’m trying to make delayed loading of some of submodules from my package. However, it implies that at some point I need to update a module definition on the fly. It works well with normal function…

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

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