# Latest

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

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

**Page:** 643

---

## [Makie textbox. how to disable?](https://discourse.julialang.org/t/makie-textbox-how-to-disable/101633)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 2\
**Last updated:** [July 19, 2023, 5:19am UTC](https://discourse.julialang.org/t/makie-textbox-how-to-disable/101633 "2023-07-19T05:19:05Z")

</div>

is there a way to prevent a user from entering a string into a textbox? i’d like to be able to disable and enable a text box depending on the state of a menu. in bokeh for example the textbox is greyed out when disable…

---

## [How to export a Flux model to Python?](https://discourse.julialang.org/t/how-to-export-a-flux-model-to-python/101750)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 2\
**Last updated:** [July 19, 2023, 5:17am UTC](https://discourse.julialang.org/t/how-to-export-a-flux-model-to-python/101750 "2023-07-19T05:17:23Z")

</div>

Hello! I have a trained models from Flux.jl which I would like to be able to use in Python. Is there a way to save these models in a format that would be easily readable by Pytorch or Tensorflow? Thanks!

---

## [Optimizing nested loops with conditional inside](https://discourse.julialang.org/t/optimizing-nested-loops-with-conditional-inside/101724)

<div class="topic-metadata">

**Author:** [@Luis\_Alberto\_R](https://discourse.julialang.org/u/Luis_Alberto_R)\
**Replies:** 10\
**Last updated:** [July 19, 2023, 3:30am UTC](https://discourse.julialang.org/t/optimizing-nested-loops-with-conditional-inside/101724 "2023-07-19T03:30:34Z")

</div>

Hello, I’m trying to build hydrodynamic codes in 1D, 2D and 3D in Julia. So far I have the codes working with first order solvers, and I’ve managed to make the 1D and 2D faster than Python and C++, now I’m trying to impl…

---

## [Best way to perform an integral containing a Boltzmann factor](https://discourse.julialang.org/t/best-way-to-perform-an-integral-containing-a-boltzmann-factor/101698)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 3\
**Last updated:** [July 19, 2023, 3:11am UTC](https://discourse.julialang.org/t/best-way-to-perform-an-integral-containing-a-boltzmann-factor/101698 "2023-07-19T03:11:40Z")

</div>

Hello! I’m interesting in calculating an integral of the form \\int\_{\\mathbb{R}^n} d^n x f(x,\\beta) \\exp(-\\beta H(x)) where H is a known an Hamiltonian, \\beta is an inverse temperature and f is a function which I can…

---

## [Gurobi Error 10003: Name too long](https://discourse.julialang.org/t/gurobi-error-10003-name-too-long/101752)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 3\
**Last updated:** [July 19, 2023, 2:43am UTC](https://discourse.julialang.org/t/gurobi-error-10003-name-too-long/101752 "2023-07-19T02:43:39Z")

</div>

So, I get the error that probably the variable (and likely constraints as well) have a name longer than 255 characters. I have some custom types that I use as indices of the variables. I am sure this is leading to the is…

---

## [Error only while using debugger in VSCode](https://discourse.julialang.org/t/error-only-while-using-debugger-in-vscode/101707)

<div class="topic-metadata">

**Author:** [@Sophia\_Wright](https://discourse.julialang.org/u/Sophia_Wright)\
**Replies:** 2\
**Last updated:** [July 18, 2023, 11:28pm UTC](https://discourse.julialang.org/t/error-only-while-using-debugger-in-vscode/101707 "2023-07-18T23:28:06Z")

</div>

Hello - I’m unable to use the debugger in VSCode while using the KernelAbstractions.jl library. I have shared details along with a minimal reproducer here: essentially - I’m able to run the script fine in VS Code, b…

---

## [Iterator from 3 vectors](https://discourse.julialang.org/t/iterator-from-3-vectors/101751)

<div class="topic-metadata">

**Author:** [@Yuri\_Masakazu\_Mizusa](https://discourse.julialang.org/u/Yuri_Masakazu_Mizusa)\
**Replies:** 5\
**Last updated:** [July 18, 2023, 9:38pm UTC](https://discourse.julialang.org/t/iterator-from-3-vectors/101751 "2023-07-18T21:38:02Z")

</div>

Hi, I’m trying to create an iterator that does the following: vec\_coord\_x=\[1,2,3\] vec\_coord\_y=\[1,2,3\] vec\_coord\_z=\[1,2,3\] \[(x,y,z) for x in vec\_coord\_x for y in vec\_coord\_y for z in vec\_coord\_z\] Resulting in: 27-ele…

---

## [Changing default interface for Julia worker](https://discourse.julialang.org/t/changing-default-interface-for-julia-worker/101746)

<div class="topic-metadata">

**Author:** [@JasperW99](https://discourse.julialang.org/u/JasperW99)\
**Replies:** 1\
**Last updated:** [July 18, 2023, 9:20pm UTC](https://discourse.julialang.org/t/changing-default-interface-for-julia-worker/101746 "2023-07-18T21:20:09Z")

</div>

I am running a distributed workload using Distributed.jl on a cluster that has set up IP over Infiniband (IPoIB). However, when the workers are created, they automatically return the IP address of the slow ethernet inter…

---

## [Update state! for a cellstate](https://discourse.julialang.org/t/update-state-for-a-cellstate/101681)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 1\
**Last updated:** [July 18, 2023, 9:13pm UTC](https://discourse.julialang.org/t/update-state-for-a-cellstate/101681 "2023-07-18T21:13:24Z")

</div>

Hi, I am trying to panelize a cell state and then use it in a update state function in gridap but it gives me error. I appreciate your suggestions. innerMax = 10 p0 = ones(fem\_params.np) pf\_vec = Filter(p0;r, fem\_params…

---

## [Further automation of CompatHelper](https://discourse.julialang.org/t/further-automation-of-compathelper/101668)

<div class="topic-metadata">

**Author:** [@AkchurinDA](https://discourse.julialang.org/u/AkchurinDA)\
**Replies:** 1\
**Last updated:** [July 18, 2023, 9:19pm UTC](https://discourse.julialang.org/t/further-automation-of-compathelper/101668 "2023-07-18T21:19:24Z")

</div>

Is there a way to make CompatHelper to automatically merge the branches it creates into the main branch after making sure that they pass the status check? My current .yml file for CompatHelper is: name: CompatHelper on…

---

## [One week until JuliaCon 2023!](https://discourse.julialang.org/t/one-week-until-juliacon-2023/101735)

<div class="topic-metadata">

**Author:** [@Steven\_Kell](https://discourse.julialang.org/u/Steven_Kell)\
**Replies:** 2\
**Last updated:** [July 18, 2023, 8:01pm UTC](https://discourse.julialang.org/t/one-week-until-juliacon-2023/101735 "2023-07-18T20:01:58Z")

</div>

Here we are on the last week leading up to JuliaCon 2023! Co-located with JuMP-dev, SciMLCon, and Professor Alan Edelman’s 60th Birthday Celebration (ASE60) at the Massachusetts Institute of Technology’s Ray and Maria St…

---

## [Issue on how to get the ids for agents in a specific position on a 2d grid](https://discourse.julialang.org/t/issue-on-how-to-get-the-ids-for-agents-in-a-specific-position-on-a-2d-grid/101744)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 2\
**Last updated:** [July 18, 2023, 6:34pm UTC](https://discourse.julialang.org/t/issue-on-how-to-get-the-ids-for-agents-in-a-specific-position-on-a-2d-grid/101744 "2023-07-18T18:34:30Z")

</div>

Using this line of code with Agents.jl: ids\_in\_position( (2,2) , schelling ) I get this error: MethodError: no method matching ids\_in\_position(::Tuple{Int64, Int64}, ::UnremovableABM{GridSpaceSingle{2, false}, Schelli…

---

## [Possible to subset XAM BAM reader object by contig?](https://discourse.julialang.org/t/possible-to-subset-xam-bam-reader-object-by-contig/101715)

<div class="topic-metadata">

**Author:** [@nrminor](https://discourse.julialang.org/u/nrminor)\
**Replies:** 5\
**Last updated:** [July 18, 2023, 6:17pm UTC](https://discourse.julialang.org/t/possible-to-subset-xam-bam-reader-object-by-contig/101715 "2023-07-18T18:17:48Z")

</div>

Hi all. I’m writing a script to plot depth of coverage for each contig in an alignment. So far, I haven’t found a way to subset the BAM IOStream by contig, so the loop I use to iterate through records has to invoke a con…

---

## [Empty dataframe from database query](https://discourse.julialang.org/t/empty-dataframe-from-database-query/101745)

<div class="topic-metadata">

**Author:** [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Replies:** 1\
**Last updated:** [July 18, 2023, 6:03pm UTC](https://discourse.julialang.org/t/empty-dataframe-from-database-query/101745 "2023-07-18T18:03:49Z")

</div>

Hello I have a very common usage pattern for converting the output of a database query (LibPQ for example) So something like data = DataFrame(LibPQ.execute(pgconnection, "select column1,column2 from table1 where condi…

---

## [Modelingtoolkit and multithreading](https://discourse.julialang.org/t/modelingtoolkit-and-multithreading/101739)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [July 18, 2023, 4:45pm UTC](https://discourse.julialang.org/t/modelingtoolkit-and-multithreading/101739 "2023-07-18T16:45:51Z")

</div>

I have model, based on Modelingtoolkit and I am solving it with DifferentialEquations. Now I try to solve n models in parallel (well, it is mostly the same model, but with different parameters). It currently gives wrong…

---

## [Graphics Library with real-time display in Julia?](https://discourse.julialang.org/t/graphics-library-with-real-time-display-in-julia/101530)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 23\
**Last updated:** [July 18, 2023, 4:14pm UTC](https://discourse.julialang.org/t/graphics-library-with-real-time-display-in-julia/101530 "2023-07-18T16:14:15Z")

</div>

There are a lot of (excellent) libraries to static vector graphics. A lot of them have functionality to play the graphics back as gif or animations. I want to make a real-time simulation. Perhaps think of it as a game d…

---

## [Reducedims for other ops](https://discourse.julialang.org/t/reducedims-for-other-ops/101736)

<div class="topic-metadata">

**Author:** [@fda-tome](https://discourse.julialang.org/u/fda-tome)\
**Replies:** 0\
**Last updated:** [July 18, 2023, 2:50pm UTC](https://discourse.julialang.org/t/reducedims-for-other-ops/101736 "2023-07-18T14:50:58Z")

</div>

I am currently implementing Dagger,jl distributed arrays and found out the problem with reduce using non associative operations such as ^ - /, is there someone working on it? I’d be happy to tackle it eventually thanks …

---

## [How to reload local package?](https://discourse.julialang.org/t/how-to-reload-local-package/101719)

<div class="topic-metadata">

**Author:** [@Devetak](https://discourse.julialang.org/u/Devetak)\
**Replies:** 9\
**Last updated:** [July 18, 2023, 2:29pm UTC](https://discourse.julialang.org/t/how-to-reload-local-package/101719 "2023-07-18T14:29:56Z")

</div>

Hello. I did something and I am not sure how to fix it. I started working on a project/package and build a module. I think I activated the package and now the following happened. If I go to the REPL adding my package l…

---

## [Specifying variable dimension in JuMP](https://discourse.julialang.org/t/specifying-variable-dimension-in-jump/101716)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 17\
**Last updated:** [July 18, 2023, 1:20pm UTC](https://discourse.julialang.org/t/specifying-variable-dimension-in-jump/101716 "2023-07-18T13:20:32Z")

</div>

This might not be JuMP specific, but I’m trying to learn how to use JuMP for LPs. Do I need to specify the size of the variable x? It should be a 2-d vector. If so, how? My goal is to solve: $$\\max\_x cx $$ subject to …

---

## [Is allocation inevitable when generating random numbers from a categorical distribution?](https://discourse.julialang.org/t/is-allocation-inevitable-when-generating-random-numbers-from-a-categorical-distribution/101718)

<div class="topic-metadata">

**Author:** [@taka255](https://discourse.julialang.org/u/taka255)\
**Replies:** 9\
**Last updated:** [July 18, 2023, 12:14pm UTC](https://discourse.julialang.org/t/is-allocation-inevitable-when-generating-random-numbers-from-a-categorical-distribution/101718 "2023-07-18T12:14:54Z")

</div>

Hi, I am trying to do in-place random number generation using Distributions.jl. However, for some reason, only the random number generation from the Categorical distribution takes extra computation time due to the extra…

---

## [LoadError: InexactError: Int64 caused by decimals](https://discourse.julialang.org/t/loaderror-inexacterror-int64-caused-by-decimals/101717)

<div class="topic-metadata">

**Author:** [@martina.gherardi](https://discourse.julialang.org/u/martina.gherardi)\
**Replies:** 4\
**Last updated:** [July 18, 2023, 10:53am UTC](https://discourse.julialang.org/t/loaderror-inexacterror-int64-caused-by-decimals/101717 "2023-07-18T10:53:35Z")

</div>

Hi, In order to print my output values for the integer variable γ, I wrote matrix\_gamma = zeros(Int, length(K), length(T)) for (i,k) in enumerate(K) for (j,t) in enumerate(T) matrix\_gamma\[i,j\] = value(γ\[k,t…

---

## [Breaking notation convention - a potential anti-pattern?](https://discourse.julialang.org/t/breaking-notation-convention-a-potential-anti-pattern/101699)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 16\
**Last updated:** [July 18, 2023, 9:21am UTC](https://discourse.julialang.org/t/breaking-notation-convention-a-potential-anti-pattern/101699 "2023-07-18T09:21:35Z")

</div>

I have a scenario where I think it might be warranted to depart from the end with an exclamation mark convention for function names that modify at least one of their arguments. However, I wouldn’t want to get into an an…

---

## [Better ways to deal with CompatHelper and compatibility upgrades](https://discourse.julialang.org/t/better-ways-to-deal-with-compathelper-and-compatibility-upgrades/88677)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [July 18, 2023, 7:47am UTC](https://discourse.julialang.org/t/better-ways-to-deal-with-compathelper-and-compatibility-upgrades/88677 "2023-07-18T07:47:17Z")

</div>

After some time of innactivity, the CompatHelper bot stops working. Of course this is not an issue for large projects that are very active, but for smaller packages it is. Thus, I would like to know: Is there a way t…

---

## [How customizable is Makie?](https://discourse.julialang.org/t/how-customizable-is-makie/101185)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 9\
**Last updated:** [July 17, 2023, 2:36pm UTC](https://discourse.julialang.org/t/how-customizable-is-makie/101185 "2023-07-17T14:36:12Z")

</div>

Since the announcement of the new makie website popped up on Slack and HN: Makie starts looking more and more polished, to the point where I’m considering giving it a serious try for publications. Until now, I’m using m…

---

## [Any crystallography and material structure package suggestions?](https://discourse.julialang.org/t/any-crystallography-and-material-structure-package-suggestions/63028)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 7\
**Last updated:** [July 18, 2023, 5:10am UTC](https://discourse.julialang.org/t/any-crystallography-and-material-structure-package-suggestions/63028 "2023-07-18T05:10:15Z")

</div>

Is there any existing package that helps user read crystal structure from, say, VASP POSCAR or CONTCAR files and determin crystallography data like the space group and the point group?

---

## [Makie.jl Textbox](https://discourse.julialang.org/t/makie-jl-textbox/101600)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 8\
**Last updated:** [July 18, 2023, 1:28am UTC](https://discourse.julialang.org/t/makie-jl-textbox/101600 "2023-07-18T01:28:45Z")

</div>

I have a use case for an array of TextBox to use for data entry. I want to populate all Textboxes when the user clicks a “Load” button and then after the user makes some changes to some Textboxes and clicks another butt…

---

## [Makie: Colorbar with the "High" and "Low" labels](https://discourse.julialang.org/t/makie-colorbar-with-the-high-and-low-labels/101604)

<div class="topic-metadata">

**Author:** [@nari](https://discourse.julialang.org/u/nari)\
**Replies:** 2\
**Last updated:** [July 18, 2023, 12:31am UTC](https://discourse.julialang.org/t/makie-colorbar-with-the-high-and-low-labels/101604 "2023-07-18T00:31:56Z")

</div>

When accompanying a heatmap with a color bar, the values at both ends themselves have no physical meaning, only the type and which direction they are used in are sometimes important. In that case, I would prepare a color…

---

## [Type stability when looping over fields in a heterogenous data struct](https://discourse.julialang.org/t/type-stability-when-looping-over-fields-in-a-heterogenous-data-struct/101643)

<div class="topic-metadata">

**Author:** [@james3](https://discourse.julialang.org/u/james3)\
**Replies:** 8\
**Last updated:** [July 17, 2023, 10:44pm UTC](https://discourse.julialang.org/t/type-stability-when-looping-over-fields-in-a-heterogenous-data-struct/101643 "2023-07-17T22:44:03Z")

</div>

I have a number of structs that contain arrays that vary in their dimension. I have a function that takes takes these structs, and loops over the fields, performing some operation. Suppose, for simplicity, that I was jus…

---

## [Comparison of Rust to Julia for scientific computing?](https://discourse.julialang.org/t/comparison-of-rust-to-julia-for-scientific-computing/78508)

<div class="topic-metadata">

**Author:** [@dlfivefifty](https://discourse.julialang.org/u/dlfivefifty)\
**Replies:** 122\
**Last updated:** [July 17, 2023, 10:19pm UTC](https://discourse.julialang.org/t/comparison-of-rust-to-julia-for-scientific-computing/78508 "2023-07-17T22:19:59Z")

</div>

I had some students come ask me about implementing material from my numerical analysis course (which used Julia) in part of their Rust student group. I’m not an expert, but my feeling is that Rust is a “safer” language, …

---

## [Optimizing dinucleotides count in a DNA sequence type \`LongDNA\`](https://discourse.julialang.org/t/optimizing-dinucleotides-count-in-a-dna-sequence-type-longdna/101583)

<div class="topic-metadata">

**Author:** [@camilogarciabotero](https://discourse.julialang.org/u/camilogarciabotero)\
**Replies:** 21\
**Last updated:** [July 17, 2023, 5:33pm UTC](https://discourse.julialang.org/t/optimizing-dinucleotides-count-in-a-dna-sequence-type-longdna/101583 "2023-07-17T17:33:43Z")

</div>

I am working with the BioSequences.jl package, particularly a LongSequence{DNAAlphabet{4}} (a very efficient string) type like the following random DNA sequence seq = dna"ACACATCATCTACTATCAT" and I want a function that c…

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

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