# Latest

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

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

**Page:** 1374

---

## [FloatingTableView.jl has been submitted for registration](https://discourse.julialang.org/t/floatingtableview-jl-has-been-submitted-for-registration/44941)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 10\
**Last updated:** [June 2, 2021, 5:43am UTC](https://discourse.julialang.org/t/floatingtableview-jl-has-been-submitted-for-registration/44941 "2021-06-02T05:43:01Z")

</div>

My first package, FloatingTableView.jl has been submitted for registration. This package is designed for users coming from Stata, which offers a super fast table viewing function that opens up a new window to see the da…

---

## [Switch off chunks of code](https://discourse.julialang.org/t/switch-off-chunks-of-code/62247)

<div class="topic-metadata">

**Author:** [@Adriel](https://discourse.julialang.org/u/Adriel)\
**Replies:** 3\
**Last updated:** [June 2, 2021, 5:02am UTC](https://discourse.julialang.org/t/switch-off-chunks-of-code/62247 "2021-06-02T05:02:33Z")

</div>

I’m wondering if there’s a way to completely remove sections of debug/analytics code via some switch, similar to #define in C. Currently I’m just doing this. function f(x, analyse=false) # compute output if anal…

---

## [Setting the value of an input](https://discourse.julialang.org/t/setting-the-value-of-an-input/62248)

<div class="topic-metadata">

**Author:** [@scotts](https://discourse.julialang.org/u/scotts)\
**Replies:** 0\
**Last updated:** [June 2, 2021, 4:43am UTC](https://discourse.julialang.org/t/setting-the-value-of-an-input/62248 "2021-06-02T04:43:21Z")

</div>

Ok, this seems like a really simple question but I’m stuck. How do I set the value of PlutoUI select input programmatically, based on the value of another select input So for example, I have inputs: begin Rots = \["WC"…

---

## [Adding to a Makie.meshscatter plot](https://discourse.julialang.org/t/adding-to-a-makie-meshscatter-plot/62154)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 4\
**Last updated:** [June 2, 2021, 3:45am UTC](https://discourse.julialang.org/t/adding-to-a-makie-meshscatter-plot/62154 "2021-06-02T03:45:51Z")

</div>

I’m not finding the right argument/function to add a new meshscatter to an existing “scene” (if that’s still the name). using Makie xs = cos.(1:0.5:20) ys = sin.(1:0.5:20) zs = LinRange(0, 3, length(xs)) meshscatter(x…

---

## [Unitful.jl - how to represent "particles per cubic centimeter"](https://discourse.julialang.org/t/unitful-jl-how-to-represent-particles-per-cubic-centimeter/62165)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://discourse.julialang.org/u/dcgrigsby)\
**Replies:** 6\
**Last updated:** [June 2, 2021, 3:24am UTC](https://discourse.julialang.org/t/unitful-jl-how-to-represent-particles-per-cubic-centimeter/62165 "2021-06-02T03:24:14Z")

</div>

Using this equation, I’d like to create a function to calculate the velocity of the Solar Wind. The equation has three inputs: mp (the mass of a photon), n (number of particles per cubic cm), and V (velocity in kilomet…

---

## [Method error with Pair including abstract type](https://discourse.julialang.org/t/method-error-with-pair-including-abstract-type/62232)

<div class="topic-metadata">

**Author:** [@robireton](https://discourse.julialang.org/u/robireton)\
**Replies:** 5\
**Last updated:** [June 2, 2021, 2:57am UTC](https://discourse.julialang.org/t/method-error-with-pair-including-abstract-type/62232 "2021-06-02T02:57:52Z")

</div>

My expectations seem to be wrong about how defining a method for a Pair that includes an abstract type works. I want to be able to pass a Pair that comprises a Symbol and a Number, but without being specific about Int, F…

---

## [Can I detect if code is being run from a generated function?](https://discourse.julialang.org/t/can-i-detect-if-code-is-being-run-from-a-generated-function/62241)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [June 2, 2021, 2:33am UTC](https://discourse.julialang.org/t/can-i-detect-if-code-is-being-run-from-a-generated-function/62241 "2021-06-02T02:33:48Z")

</div>

Is there any way to detect if some code is being run inside a generated function? Something like: function foo() if being\_called\_from\_a\_generated\_function() # do something else # do it slightly d…

---

## [Lines vs line](https://discourse.julialang.org/t/lines-vs-line/62235)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 2:12am UTC](https://discourse.julialang.org/t/lines-vs-line/62235 "2021-06-02T02:12:46Z")

</div>

Afaict, this function makes one curve, not multiple. Why is it named “lines” plural? I always forget how to use it and have to check the docs. I think it will be easier to remember if it uses the name line! curve!. http…

---

## [Debugging in VS Code suddenly stopped working](https://discourse.julialang.org/t/debugging-in-vs-code-suddenly-stopped-working/56625)

<div class="topic-metadata">

**Author:** [@lpratafe](https://discourse.julialang.org/u/lpratafe)\
**Replies:** 5\
**Last updated:** [June 2, 2021, 1:36am UTC](https://discourse.julialang.org/t/debugging-in-vs-code-suddenly-stopped-working/56625 "2021-06-02T01:36:56Z")

</div>

Hi everyone, I’m having some trouble debugging my julia code in VS Code and it’s getting me out of my mind. It possibly is because I don’t understand quite exactly how debugging works (I’ve searched for it but didn’t get…

---

## [How to update packages and create a system image](https://discourse.julialang.org/t/how-to-update-packages-and-create-a-system-image/62229)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 11:48pm UTC](https://discourse.julialang.org/t/how-to-update-packages-and-create-a-system-image/62229 "2021-06-01T23:48:12Z")

</div>

Hello, I am using a bash script to create a new system image when the source code, in particular the set of used packages of my project has changed (after git pull). The core are the following three lines: rm -f Manif…

---

## [Trouble running IJulia (could not open file .julia/packages/IJulia/IDNmS ...)](https://discourse.julialang.org/t/trouble-running-ijulia-could-not-open-file-julia-packages-ijulia-idnms/62234)

<div class="topic-metadata">

**Author:** [@srgree](https://discourse.julialang.org/u/srgree)\
**Replies:** 0\
**Last updated:** [June 1, 2021, 10:54pm UTC](https://discourse.julialang.org/t/trouble-running-ijulia-could-not-open-file-julia-packages-ijulia-idnms/62234 "2021-06-01T22:54:29Z")

</div>

Hello, I recently updated IJulia and am now having trouble starting the kernel from jupyter notebook. From the Terminal, I run jupyter notebook, which opens up jupyter in my browser. (base) ➜ Non-markovian-simulation-…

---

## [Multi layer Dict merge](https://discourse.julialang.org/t/multi-layer-dict-merge/27261)

<div class="topic-metadata">

**Author:** [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Replies:** 6\
**Last updated:** [June 1, 2021, 10:52pm UTC](https://discourse.julialang.org/t/multi-layer-dict-merge/27261 "2021-06-01T22:52:45Z")

</div>

I was trying to merge multi-layered Dict which is… x = \[ Dict("d1"=\>"A1") Dict("d1b"=\>Dict("d2a"=\>"B1")) Dict("d1b"=\>Dict("d2b"=\>"C1"))\] julia\>merge(x...) Dict{String,Any} with 2 entries: "d1" =\> "A1" "d1b" …

---

## [What is the difference between fontsize and textsize?](https://discourse.julialang.org/t/what-is-the-difference-between-fontsize-and-textsize/62228)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 9:19pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-fontsize-and-textsize/62228 "2021-06-01T21:19:53Z")

</div>

textsize is in Label, fontsize is in Theme. Why are there two? https://makie.juliaplots.org/stable/makielayout/label.html https://makie.juliaplots.org/stable/theming.html

---

## [Delete a module](https://discourse.julialang.org/t/delete-a-module/62226)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 8:47pm UTC](https://discourse.julialang.org/t/delete-a-module/62226 "2021-06-01T20:47:50Z")

</div>

Is it possible to delete a module so it can be GCed?

---

## [How to re-trigger pre-compilation](https://discourse.julialang.org/t/how-to-re-trigger-pre-compilation/62156)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [June 1, 2021, 8:39pm UTC](https://discourse.julialang.org/t/how-to-re-trigger-pre-compilation/62156 "2021-06-01T20:39:53Z")

</div>

Hello, I need to re-create the .ji files of my user modules each time I updated my custom sys image. I am using a script to create the custom sys image and I suggest the users of my software to run it again each tim…

---

## [Use a String For a Variable name and convert Dictionaries to DataFrames](https://discourse.julialang.org/t/use-a-string-for-a-variable-name-and-convert-dictionaries-to-dataframes/62107)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 31\
**Last updated:** [June 1, 2021, 8:39pm UTC](https://discourse.julialang.org/t/use-a-string-for-a-variable-name-and-convert-dictionaries-to-dataframes/62107 "2021-06-01T20:39:48Z")

</div>

I’m working on an accounting program, and I want to be able to have a function or macro that adds new account values to my dataframe, or another form that works as a CSV, XLSX or Database. Accounts = Dict( # A Dictiona…

---

## [Multithread on JuMP for Benders cut](https://discourse.julialang.org/t/multithread-on-jump-for-benders-cut/62189)

<div class="topic-metadata">

**Author:** [@Hilaire\_Foillard](https://discourse.julialang.org/u/Hilaire_Foillard)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 8:33pm UTC](https://discourse.julialang.org/t/multithread-on-jump-for-benders-cut/62189 "2021-06-01T20:33:52Z")

</div>

Hello, I’m looking for multithreading for my Benders cuts: indeed, the subproblem can be decomposed in several independent subproblems that can be executed in parallel (i use CPLEX solver). When I run my program, my note…

---

## [How to pass a SymPy expression supported by JuMP](https://discourse.julialang.org/t/how-to-pass-a-sympy-expression-supported-by-jump/62109)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 6\
**Last updated:** [June 1, 2021, 8:31pm UTC](https://discourse.julialang.org/t/how-to-pass-a-sympy-expression-supported-by-jump/62109 "2021-06-01T20:31:16Z")

</div>

I would like to convert a SymPy expression in order to use as an objetive function in JuMP. Suppose my variable involves two variables p \[1,1\] and p \[1,2\]. using SymPy using JuMP, Ipopt # expr is my SymPy expression…

---

## [No docstring found for module](https://discourse.julialang.org/t/no-docstring-found-for-module/62222)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 8:18pm UTC](https://discourse.julialang.org/t/no-docstring-found-for-module/62222 "2021-06-01T20:18:58Z")

</div>

Hi, Let’s suppose I create a local package called ABC. Once I have installed the package and loaded it with using, I do: help?\> ABC I get: No docstring found for module ABC How do I create a docstring? I have tri…

---

## [Numerical integration using hcubature\\](https://discourse.julialang.org/t/numerical-integration-using-hcubature/62221)

<div class="topic-metadata">

**Author:** [@danrib07](https://discourse.julialang.org/u/danrib07)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 8:11pm UTC](https://discourse.julialang.org/t/numerical-integration-using-hcubature/62221 "2021-06-01T20:11:10Z")

</div>

Hello everyone, I’m transitioning from python to Julia and I’m trying to compute some integrals using hcubature I’m trying to compute the following integral, for which the constant \\beta is equal to 1 As seen from …

---

## [Iteration in for loop](https://discourse.julialang.org/t/iteration-in-for-loop/62207)

<div class="topic-metadata">

**Author:** [@assia855](https://discourse.julialang.org/u/assia855)\
**Replies:** 3\
**Last updated:** [June 1, 2021, 5:55pm UTC](https://discourse.julialang.org/t/iteration-in-for-loop/62207 "2021-06-01T17:55:49Z")

</div>

Hello Folks, I got a folder full of files. I would like to iterate 5 times each file in the folder. I got this bellow code, but I don’t have idea how to iterate 5 times each file in the folder. DISK = glob("disk/\*") f…

---

## [What is the best practice when you want to modify the source code of an existing package?](https://discourse.julialang.org/t/what-is-the-best-practice-when-you-want-to-modify-the-source-code-of-an-existing-package/62209)

<div class="topic-metadata">

**Author:** [@instrnts](https://discourse.julialang.org/u/instrnts)\
**Replies:** 6\
**Last updated:** [June 1, 2021, 4:59pm UTC](https://discourse.julialang.org/t/what-is-the-best-practice-when-you-want-to-modify-the-source-code-of-an-existing-package/62209 "2021-06-01T16:59:19Z")

</div>

I’m starting to use the package SQLite, and it has a function load! which writes rows from a dataframe into a sqlite database. I want this function to replace rows instead of inserting them. My current solution is to es…

---

## [Unitful: convert to nearest power of ten prefix](https://discourse.julialang.org/t/unitful-convert-to-nearest-power-of-ten-prefix/62150)

<div class="topic-metadata">

**Author:** [@MeinAccount](https://discourse.julialang.org/u/MeinAccount)\
**Replies:** 3\
**Last updated:** [June 1, 2021, 4:28pm UTC](https://discourse.julialang.org/t/unitful-convert-to-nearest-power-of-ten-prefix/62150 "2021-06-01T16:28:16Z")

</div>

Is there a way to convert to the appropriate prefix? From 10\_000ms to 10s and (10^(-6))ms to 1ns

---

## [Plot 3D triangle mesh with different colours on front and back side](https://discourse.julialang.org/t/plot-3d-triangle-mesh-with-different-colours-on-front-and-back-side/61997)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 12\
**Last updated:** [June 1, 2021, 3:45pm UTC](https://discourse.julialang.org/t/plot-3d-triangle-mesh-with-different-colours-on-front-and-back-side/61997 "2021-06-01T15:45:57Z")

</div>

Hi, Guess this is so trivial no one bothered to ask… :wink: I need to check orientation of triangles in received geometry (triangle mesh). Seems the easiest way would be to set different colours for front and back sid…

---

## [Properly implement Base.hash() for custom type follow up](https://discourse.julialang.org/t/properly-implement-base-hash-for-custom-type-follow-up/62057)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 11\
**Last updated:** [June 1, 2021, 3:25pm UTC](https://discourse.julialang.org/t/properly-implement-base-hash-for-custom-type-follow-up/62057 "2021-06-01T15:25:59Z")

</div>

Before my previous post gets bigger and confusing, I decided to try and implement my own custom hash() method based on the documentation and what was suggested in my previous post. I’m aware of AutoHashEquals.jl, but I …

---

## [IterativeSolvers.jl and DistributedArrays.jl](https://discourse.julialang.org/t/iterativesolvers-jl-and-distributedarrays-jl/62175)

<div class="topic-metadata">

**Author:** [@vlc](https://discourse.julialang.org/u/vlc)\
**Replies:** 3\
**Last updated:** [June 1, 2021, 3:24pm UTC](https://discourse.julialang.org/t/iterativesolvers-jl-and-distributedarrays-jl/62175 "2021-06-01T15:24:41Z")

</div>

I would like to use the iterative solvers from IterativeSolvers.jl with DistributedArrays.jl, with no luck for now. Here is a MWE, where I try to invert a diagonal positive definite matrix using the CG algorithm : usin…

---

## [Mann Kendall Test - Sen's Slope](https://discourse.julialang.org/t/mann-kendall-test-sens-slope/59038)

<div class="topic-metadata">

**Author:** [@mixstam1453](https://discourse.julialang.org/u/mixstam1453)\
**Replies:** 5\
**Last updated:** [June 1, 2021, 3:24pm UTC](https://discourse.julialang.org/t/mann-kendall-test-sens-slope/59038 "2021-06-01T15:24:06Z")

</div>

Hello to everyone, Let’s suppose we have 3-hourly fluxes of solar radiation at surface, for a period 1980-2020. I want to apply Mann Kendall Test to this time-series and find the Sen’s slope, intercept, p\_value and tau…

---

## [\[ANN\] DataDrivenDiffEq.jl - Overhauled in 0.6.0](https://discourse.julialang.org/t/ann-datadrivendiffeq-jl-overhauled-in-0-6-0/62199)

<div class="topic-metadata">

**Author:** [@Julius\_Martensen](https://discourse.julialang.org/u/Julius_Martensen)\
**Replies:** 0\
**Last updated:** [June 1, 2021, 3:17pm UTC](https://discourse.julialang.org/t/ann-datadrivendiffeq-jl-overhauled-in-0-6-0/62199 "2021-06-01T15:17:46Z")

</div>

I’d like to finally and officially announce the DataDrivenDiffEq.jl, a package in the SciML ecosystem for the structural estimation and inference of nonlinear differential equations. The main features include: Dynamic…

---

## [Asynchronous Programming and "Threads.@threads for" with limited number of threads](https://discourse.julialang.org/t/asynchronous-programming-and-threads-threads-for-with-limited-number-of-threads/62138)

<div class="topic-metadata">

**Author:** [@AnBenLa](https://discourse.julialang.org/u/AnBenLa)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 3:11pm UTC](https://discourse.julialang.org/t/asynchronous-programming-and-threads-threads-for-with-limited-number-of-threads/62138 "2021-06-01T15:11:50Z")

</div>

Hi, I hope I selected the right topic for my question. Please tell me if I did something wrong as it is my first time posting here. It seems as I am not able to use the @ symbol so I replaced it with \[at\]. I am worki…

---

## [Building large, modular models in Julia](https://discourse.julialang.org/t/building-large-modular-models-in-julia/20755)

<div class="topic-metadata">

**Author:** [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Replies:** 13\
**Last updated:** [June 1, 2021, 2:42pm UTC](https://discourse.julialang.org/t/building-large-modular-models-in-julia/20755 "2021-06-01T14:42:11Z")

</div>

Hi, I’ll soon start building a modelling (and simulation) framework. There will be several “types” of model components (think “heater”, “valve”), with different “subtypes” (think “coil heater”, “electrically actuated pro…

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

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