# \#suggestions

**URL:** https://discourse.julialang.org/tag/suggestions/124.md

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

---

## [Nice way to iterate through a triangular matrix](https://discourse.julialang.org/t/nice-way-to-iterate-through-a-triangular-matrix/101667)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 10\
**Last updated:** [October 12, 2024, 5:32am UTC](https://discourse.julialang.org/t/nice-way-to-iterate-through-a-triangular-matrix/101667 "2024-10-12T05:32:38Z")

</div>

I often need to loop through the upper/lower triangular section of a matrix and usually end up doing something like: A = reshape(1:25,5,5) for j in axes(A,2) for i in axes(A,1) if i\>j @show A\[i,…

---

## [Suggestion: VS code and automatic end statement when enter is hit](https://discourse.julialang.org/t/suggestion-vs-code-and-automatic-end-statement-when-enter-is-hit/74186)

<div class="topic-metadata">

**Author:** [@TheGrowingPlant443](https://discourse.julialang.org/u/TheGrowingPlant443)\
**Replies:** 1\
**Last updated:** [October 11, 2024, 8:22am UTC](https://discourse.julialang.org/t/suggestion-vs-code-and-automatic-end-statement-when-enter-is-hit/74186 "2024-10-11T08:22:45Z")

</div>

I know there is auto completion in the julia vs code extensions. My surggestion is this when on a code line that starts with for or if and so on then when enter button is pressed at the end of that line then a end statem…

---

## [Alt-del to remove a word to the left in the REPL](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517)

<div class="topic-metadata">

**Author:** [@1m1](https://discourse.julialang.org/u/1m1)\
**Replies:** 7\
**Last updated:** [May 21, 2024, 5:12pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517 "2024-05-21T17:12:19Z")

</div>

the macOS terminal has this feature and it is very useful

---

## [Auto indent after inputing pipe and a return](https://discourse.julialang.org/t/auto-indent-after-inputing-pipe-and-a-return/112994)

<div class="topic-metadata">

**Author:** [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)\
**Replies:** 0\
**Last updated:** [April 16, 2024, 7:26am UTC](https://discourse.julialang.org/t/auto-indent-after-inputing-pipe-and-a-return/112994 "2024-04-16T07:26:58Z")

</div>

I often end up chaining pipes as follows and in jupyter notebook at least, I have to input a tab after every pipe. Would it be possible somehow to tell the language server to indent after I input a pipe and return? proc…

---

## [Separating the standard libraries from Julia executable](https://discourse.julialang.org/t/separating-the-standard-libraries-from-julia-executable/107208)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 1:36pm UTC](https://discourse.julialang.org/t/separating-the-standard-libraries-from-julia-executable/107208 "2023-12-06T13:36:59Z")

</div>

Hi all :slight\_smile: @jeff.bezanson in your talk at JuliaCon Eindhoven you mentioned that lots of standard libraries should be separate. Here are two options I see. Do 2.0 sooner, non destructive than later take it …

---

## [Parametric function return type](https://discourse.julialang.org/t/parametric-function-return-type/103460)

<div class="topic-metadata">

**Author:** [@raythurnevoid](https://discourse.julialang.org/u/raythurnevoid)\
**Replies:** 8\
**Last updated:** [September 2, 2023, 9:34pm UTC](https://discourse.julialang.org/t/parametric-function-return-type/103460 "2023-09-02T21:34:16Z")

</div>

I wanted to create a function that takes in input a callback and can return its result while being able to tell Julia what’s going to be the return type (since the Function type is not parametric). This is the skeleton …

---

## [Multiple named varargs?](https://discourse.julialang.org/t/multiple-named-varargs/95856)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 1\
**Last updated:** [March 10, 2023, 11:38am UTC](https://discourse.julialang.org/t/multiple-named-varargs/95856 "2023-03-10T11:38:16Z")

</div>

I’m wondering whether anyone has already suggested implementing the usage of multiple varargs in functions/methods. A concrete example I’m thinking about is the following: I have a processing function that I want to mak…

---

## [How to quickly find what can be done to a struct?](https://discourse.julialang.org/t/how-to-quickly-find-what-can-be-done-to-a-struct/95233)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 2\
**Last updated:** [February 27, 2023, 12:26am UTC](https://discourse.julialang.org/t/how-to-quickly-find-what-can-be-done-to-a-struct/95233 "2023-02-27T00:26:32Z")

</div>

I think when many complain that “Julia doesn’t have any inteface mechanism”, they are actually complaining about the fact that it’s hard to quickly know what can be done to an object. In C++ or Rust or Python, after you …

---

## [(DataFrames.jl Suggestion) A (public) function that takes the same args as \`subset\` and returns the matched indices](https://discourse.julialang.org/t/dataframes-jl-suggestion-a-public-function-that-takes-the-same-args-as-subset-and-returns-the-matched-indices/91325)

<div class="topic-metadata">

**Author:** [@bert](https://discourse.julialang.org/u/bert)\
**Replies:** 1\
**Last updated:** [December 6, 2022, 10:54pm UTC](https://discourse.julialang.org/t/dataframes-jl-suggestion-a-public-function-that-takes-the-same-args-as-subset-and-returns-the-matched-indices/91325 "2022-12-06T22:54:58Z")

</div>

It would be great if DataFrames.jl had a function or functions that would function more or less the same way subset does, except that they’d would return a vector containing the indices of kept rows instead of a new fram…

---

## [Eachindex for individual axes of multidimensional arrays?](https://discourse.julialang.org/t/eachindex-for-individual-axes-of-multidimensional-arrays/81264)

<div class="topic-metadata">

**Author:** [@gjm](https://discourse.julialang.org/u/gjm)\
**Replies:** 7\
**Last updated:** [May 18, 2022, 4:16pm UTC](https://discourse.julialang.org/t/eachindex-for-individual-axes-of-multidimensional-arrays/81264 "2022-05-18T16:16:12Z")

</div>

Because arrays’ indices don’t generally start from 1, best practice is to avoid anything like “for i in 1:size()” and instead use eachindex. But for multidimensional arrays, eachindex iterates over all elements of the ar…

---

## [Can we change the Julia help from bottom-up to top-down?](https://discourse.julialang.org/t/can-we-change-the-julia-help-from-bottom-up-to-top-down/77866)

<div class="topic-metadata">

**Author:** [@ZdM87](https://discourse.julialang.org/u/ZdM87)\
**Replies:** 7\
**Last updated:** [March 14, 2022, 2:47pm UTC](https://discourse.julialang.org/t/can-we-change-the-julia-help-from-bottom-up-to-top-down/77866 "2022-03-14T14:47:56Z")

</div>

When you type ? in Julia and then type \<something\>, you get all the help information about \<something\> but if this information does not fit in the screen, you will get the tail of the information (like in a bottom-up vie…

---

## [Improving Channel throughput: batching](https://discourse.julialang.org/t/improving-channel-throughput-batching/73569)

<div class="topic-metadata">

**Author:** [@tbenst](https://discourse.julialang.org/u/tbenst)\
**Replies:** 3\
**Last updated:** [December 24, 2021, 4:14am UTC](https://discourse.julialang.org/t/improving-channel-throughput-batching/73569 "2021-12-24T04:14:38Z")

</div>

I’ve noticed when using Channel that my code spends a lot of time doing lock / unlock. To improve this, I implemented take!, put! (varargs), and puts!(vector) that allow for taking or putting multiple items at once. This…

---

## [Package metrics](https://discourse.julialang.org/t/package-metrics/73235)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 0\
**Last updated:** [December 17, 2021, 12:11am UTC](https://discourse.julialang.org/t/package-metrics/73235 "2021-12-17T00:11:05Z")

</div>

As @logankilpatrick notes in his recent blog post, the package manager is one of the best features of Julia. There are many well known, and actively developed packages. However, there are some packages which are either…

---

## [Make @chain base Julia](https://discourse.julialang.org/t/make-chain-base-julia/71357)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 3\
**Last updated:** [November 12, 2021, 6:30am UTC](https://discourse.julialang.org/t/make-chain-base-julia/71357 "2021-11-12T06:30:51Z")

</div>

Instead of having the @chain macro, how about making the previous line’s output always available (if you want it) through “\_” or by omitting the first argument of a function. So you could write something like. 1…

---

## [Add deepcopy operator := to avoid bugs](https://discourse.julialang.org/t/add-deepcopy-operator-to-avoid-bugs/70793)

<div class="topic-metadata">

**Author:** [@martin.demare](https://discourse.julialang.org/u/martin.demare)\
**Replies:** 7\
**Last updated:** [November 2, 2021, 11:41am UTC](https://discourse.julialang.org/t/add-deepcopy-operator-to-avoid-bugs/70793 "2021-11-02T11:41:20Z")

</div>

When doing everyday data analysis, avoiding bugs is often more time saving than having great code performance. One of my reoccurring bugs is that I forget that z=x doesn’t create a copy of x if x is an array. Therefo…

---

## [Rew file format in MOI.FileFormats / JuMP](https://discourse.julialang.org/t/rew-file-format-in-moi-fileformats-jump/68238)

<div class="topic-metadata">

**Author:** [@obar](https://discourse.julialang.org/u/obar)\
**Replies:** 2\
**Last updated:** [September 16, 2021, 1:54am UTC](https://discourse.julialang.org/t/rew-file-format-in-moi-fileformats-jump/68238 "2021-09-16T01:54:35Z")

</div>

Would it be possible to include support for .rew model file formats in JuMP? It is sometimes useful to share models where a risk of leaking proprietary information is present (e.g. here) and .mps files contain constrain…

---

## [Suggestion: Enhanced feedback when restarting Julia is required](https://discourse.julialang.org/t/suggestion-enhanced-feedback-when-restarting-julia-is-required/67810)

<div class="topic-metadata">

**Author:** [@martin.demare](https://discourse.julialang.org/u/martin.demare)\
**Replies:** 0\
**Last updated:** [September 7, 2021, 12:17pm UTC](https://discourse.julialang.org/t/suggestion-enhanced-feedback-when-restarting-julia-is-required/67810 "2021-09-07T12:17:51Z")

</div>

Hi, When a package is added which alters the versions of already loaded packages, Julia needs to be restarted to access the correct versions. The feedback to the user is however somewhat timid, and as a new user I faile…

---

## [Reverting back in time (like using a time capsule)](https://discourse.julialang.org/t/reverting-back-in-time-like-using-a-time-capsule/67556)

<div class="topic-metadata">

**Author:** [@martin.demare](https://discourse.julialang.org/u/martin.demare)\
**Replies:** 0\
**Last updated:** [September 2, 2021, 8:32am UTC](https://discourse.julialang.org/t/reverting-back-in-time-like-using-a-time-capsule/67556 "2021-09-02T08:32:56Z")

</div>

Hi, While i was trouble-shooting a precompile error I tried figuring out which packages might work well together by looking at the release date on Git, however pinning package after package manually based on the Git-dat…

---

## [Suggestion: use PEP-like process for changes](https://discourse.julialang.org/t/suggestion-use-pep-like-process-for-changes/63494)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 37\
**Last updated:** [June 30, 2021, 8:06am UTC](https://discourse.julialang.org/t/suggestion-use-pep-like-process-for-changes/63494 "2021-06-30T08:06:00Z")

</div>

Meta-point in response this remark by @skoffer (with which I agree): with other languages, say Python and Go, more structured processes to discuss possible language evolution and improvements have been put in place over…

---

## [REPL help mode discoverability](https://discourse.julialang.org/t/repl-help-mode-discoverability/51676)

<div class="topic-metadata">

**Author:** [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Replies:** 11\
**Last updated:** [December 15, 2020, 9:54pm UTC](https://discourse.julialang.org/t/repl-help-mode-discoverability/51676 "2020-12-15T21:54:00Z")

</div>

As a relative newcomer to Julia, I have been making increasing use of the REPL and other versions of tooling to understand and select a workflow for julia use. One problem I have is the ability to discover needed functi…

---

## [Pairwise Alignment Score function: From Python to Julia. Suggestions](https://discourse.julialang.org/t/pairwise-alignment-score-function-from-python-to-julia-suggestions/48089)

<div class="topic-metadata">

**Author:** [@aadam](https://discourse.julialang.org/u/aadam)\
**Replies:** 3\
**Last updated:** [October 10, 2020, 1:23pm UTC](https://discourse.julialang.org/t/pairwise-alignment-score-function-from-python-to-julia-suggestions/48089 "2020-10-10T13:23:24Z")

</div>

I wanted a function to compute the Pairwise Alignment Score in Julia, but didn’t find any in the BioJulia repository. I submitted an issue, asking for some guidance, but no response till now. So, after waiting a long tim…

---

## [Request to package developers: Please eliminate ambiguities with Base](https://discourse.julialang.org/t/request-to-package-developers-please-eliminate-ambiguities-with-base/44123)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 4\
**Last updated:** [August 2, 2020, 5:35pm UTC](https://discourse.julialang.org/t/request-to-package-developers-please-eliminate-ambiguities-with-base/44123 "2020-08-02T17:35:03Z")

</div>

It’s often frustrating when you want your package to depend on an amazing package A, but doing do introduces ambiguities in Base functions that A has not eliminated. There are several packages that I’ve come across recen…

---

## [A suggestion for package maintainers](https://discourse.julialang.org/t/a-suggestion-for-package-maintainers/44111)

<div class="topic-metadata">

**Author:** [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Replies:** 2\
**Last updated:** [August 2, 2020, 12:59am UTC](https://discourse.julialang.org/t/a-suggestion-for-package-maintainers/44111 "2020-08-02T00:59:10Z")

</div>

If your Julia package has any form of online documentation (e.g. docs generated by Documenter.jl), please please put the link to it in the repository’s description. For example, just like in the Documenter.jl repository …

---

## [Julia Vscode new version issue with JuMP](https://discourse.julialang.org/t/julia-vscode-new-version-issue-with-jump/43134)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 4\
**Last updated:** [July 17, 2020, 10:35am UTC](https://discourse.julialang.org/t/julia-vscode-new-version-issue-with-jump/43134 "2020-07-17T10:35:05Z")

</div>

I’m having a problem with SparsesAxisArray JuMP on Julia for Vscode. When I use @variable with this condition below, it reproduces an error using Gurobi, JuMP model = Model(Gurobi.Optimizer) n = 5 V = 1:n V0= 1:n+…

---

## [Accessing \`ans\` by pressing the \`\[DOWN\]\` key](https://discourse.julialang.org/t/accessing-ans-by-pressing-the-down-key/30797)

<div class="topic-metadata">

**Author:** [@Iagoba\_Apellaniz](https://discourse.julialang.org/u/Iagoba_Apellaniz)\
**Replies:** 12\
**Last updated:** [November 10, 2019, 5:00pm UTC](https://discourse.julialang.org/t/accessing-ans-by-pressing-the-down-key/30797 "2019-11-10T17:00:29Z")

</div>

The title explains itself. Wouldn’t be great, in the REPL, to be able to access ans by pressing the \[DOWN\] key (or any other better one) once the history has finished? IMHO Yes, it would.

---

## [\[DataFrames Question\]: hash-based row indexing for DataFrames package](https://discourse.julialang.org/t/dataframes-question-hash-based-row-indexing-for-dataframes-package/29925)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 16\
**Last updated:** [October 16, 2019, 1:58am UTC](https://discourse.julialang.org/t/dataframes-question-hash-based-row-indexing-for-dataframes-package/29925 "2019-10-16T01:58:04Z")

</div>

Question: Any plan for hash-based indexing for DataFrame Suppose the following table is given (actual table that I work on contains about a million records): df = DataFrame(id=\[7,1,5,3,4,6,2\], val=\[5,6,9,3,4,10,4\]) Now…

---

## [Something(a, b) not shortcutting](https://discourse.julialang.org/t/something-a-b-not-shortcutting/27746)

<div class="topic-metadata">

**Author:** [@Charlie\_He](https://discourse.julialang.org/u/Charlie_He)\
**Replies:** 4\
**Last updated:** [September 6, 2019, 9:18am UTC](https://discourse.julialang.org/t/something-a-b-not-shortcutting/27746 "2019-09-06T09:18:56Z")

</div>

Assuming we have: function do\_work(x) sleep(2) x end It turns out something(Some(2), do\_work(3)) still invoke do\_work, which returns 2 seconds later. It would be better to define it as a macro, which retains …

---

## [Short type declarations (syntax sugar)?](https://discourse.julialang.org/t/short-type-declarations-syntax-sugar/26114)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 26\
**Last updated:** [July 9, 2019, 12:22pm UTC](https://discourse.julialang.org/t/short-type-declarations-syntax-sugar/26114 "2019-07-09T12:22:14Z")

</div>

We already have some short array syntax, like Array{Int, 1} == Vector{Int} Also, constructor short form: Int\[\] (but not a type declaration) Are there are any short forms for complex types declarations in function signa…

---

## [Advice for building nested objects](https://discourse.julialang.org/t/advice-for-building-nested-objects/25269)

<div class="topic-metadata">

**Author:** [@Julia\_coder](https://discourse.julialang.org/u/Julia_coder)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 2:42pm UTC](https://discourse.julialang.org/t/advice-for-building-nested-objects/25269 "2019-06-14T14:42:49Z")

</div>

Hello, I am looking for some advice on how to set up nested objects in Julia. For example, if I wanted to create “schoolchildren” (with variables “age”, “testGrade”,“favouriteSubject”) which are then grouped into “class…

---

## [Suggestion: Put licenses for dependencies in deps](https://discourse.julialang.org/t/suggestion-put-licenses-for-dependencies-in-deps/22743)

<div class="topic-metadata">

**Author:** [@madprogrammer](https://discourse.julialang.org/u/madprogrammer)\
**Replies:** 12\
**Last updated:** [April 5, 2019, 4:05pm UTC](https://discourse.julialang.org/t/suggestion-put-licenses-for-dependencies-in-deps/22743 "2019-04-05T16:05:26Z")

</div>

I would like to suggest the addition of a license directory in deps, where we could have a copy of the dependencies license files. I think that is important to make it clear to the user which licenses they are dealing wi…

[Next page](https://discourse.julialang.org/tag/suggestions/124.md?match_all_tags=true&page=1&tags%5B%5D=suggestions)
