# Latest

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

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

**Page:** 1196

---

## [Is there a lazy way to create another variable based on the dimensionality of one variable?](https://discourse.julialang.org/t/is-there-a-lazy-way-to-create-another-variable-based-on-the-dimensionality-of-one-variable/72153)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 1\
**Last updated:** [November 27, 2021, 8:12am UTC](https://discourse.julialang.org/t/is-there-a-lazy-way-to-create-another-variable-based-on-the-dimensionality-of-one-variable/72153 "2021-11-27T08:12:07Z")

</div>

Hi all, There are times when I need to create another variable based on the shape of one variable. Since, I don’t know the dimension of the variable. Therefore, I usually write a lot of if-elseif-else-end blocks to dete…

---

## [JuMPChance can not be added](https://discourse.julialang.org/t/jumpchance-can-not-be-added/72151)

<div class="topic-metadata">

**Author:** [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Replies:** 2\
**Last updated:** [November 27, 2021, 7:22am UTC](https://discourse.julialang.org/t/jumpchance-can-not-be-added/72151 "2021-11-27T07:22:51Z")

</div>

When I add JuMPChance, there are some errors: (@v1.6) pkg\> add JuMPChance Resolving package versions... ERROR: Unsatisfiable requirements detected for package JuMP \[4076af6c\]: JuMP \[4076af6c\] log: ├─possible versio…

---

## [Relaxation of MIP to LP, getdual, CPLEX](https://discourse.julialang.org/t/relaxation-of-mip-to-lp-getdual-cplex/1935)

<div class="topic-metadata">

**Author:** [@spuschel](https://discourse.julialang.org/u/spuschel)\
**Replies:** 4\
**Last updated:** [November 27, 2021, 3:44am UTC](https://discourse.julialang.org/t/relaxation-of-mip-to-lp-getdual-cplex/1935 "2021-11-27T03:44:01Z")

</div>

Hi guys. I’ve been reading this forum and the previous one (on Google) and I can’t seem to find an answer (although there are close examples) to my problem. It is about getting dual values out of an MIP. The standard w…

---

## [Simple benchmark for CVS.jl v0.9.11 in Julia 1.6.4](https://discourse.julialang.org/t/simple-benchmark-for-cvs-jl-v0-9-11-in-julia-1-6-4/72140)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 1\
**Last updated:** [November 26, 2021, 11:24pm UTC](https://discourse.julialang.org/t/simple-benchmark-for-cvs-jl-v0-9-11-in-julia-1-6-4/72140 "2021-11-26T23:24:47Z")

</div>

I try to learn some data science in Julia from Julia Academy’s Julia for Data Science and simple benchmark from it is quite surprising for me. I made its code below compact and probably use more packages that it need, ju…

---

## [Why is the update of the registries so slow?](https://discourse.julialang.org/t/why-is-the-update-of-the-registries-so-slow/28659)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 47\
**Last updated:** [November 26, 2021, 11:12pm UTC](https://discourse.julialang.org/t/why-is-the-update-of-the-registries-so-slow/28659 "2021-11-26T23:12:07Z")

</div>

$ julia \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" for Pkg help. | | | | | | |/ \_\` | | | | |\_| | |…

---

## [Suppressing text output of display() of Makie](https://discourse.julialang.org/t/suppressing-text-output-of-display-of-makie/72022)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 5\
**Last updated:** [November 26, 2021, 9:48pm UTC](https://discourse.julialang.org/t/suppressing-text-output-of-display-of-makie/72022 "2021-11-26T21:48:35Z")

</div>

When I create a figure and display it with Makie like the following code: using CairoMakie fig = Figure() ... display(fig) I get a long list of text outputs like this: Scene (800px, 600px): 108 Plots: ├ Combined…

---

## [Turing equivalent of Stan/R model from StatisticalRethinking](https://discourse.julialang.org/t/turing-equivalent-of-stan-r-model-from-statisticalrethinking/72092)

<div class="topic-metadata">

**Author:** [@amit1](https://discourse.julialang.org/u/amit1)\
**Replies:** 5\
**Last updated:** [November 26, 2021, 7:56pm UTC](https://discourse.julialang.org/t/turing-equivalent-of-stan-r-model-from-statisticalrethinking/72092 "2021-11-26T19:56:18Z")

</div>

Consider the following STAN model from Chapter 12 of book Statistical Rethinking library(rethinking) data(UCBadmit) d \<- UCBadmit d$gid \<- ifelse( d$applicant.gender=="male" , 1L , 2L ) dat \<- list( A=d$admit , N=d$appl…

---

## [How to use CartesianIndices to replace two nested loops](https://discourse.julialang.org/t/how-to-use-cartesianindices-to-replace-two-nested-loops/72034)

<div class="topic-metadata">

**Author:** [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Replies:** 5\
**Last updated:** [November 26, 2021, 6:14pm UTC](https://discourse.julialang.org/t/how-to-use-cartesianindices-to-replace-two-nested-loops/72034 "2021-11-26T18:14:44Z")

</div>

I’m trying to make a scatter plot where the x,y pairs form a (not necessarily rectangular) grid. The color of each point depends in a rather complicated way on the index of the point. Given two vectors, a1 and a2, my poi…

---

## [Is there a simple Julia upgrade command?](https://discourse.julialang.org/t/is-there-a-simple-julia-upgrade-command/45691)

<div class="topic-metadata">

**Author:** [@phymann](https://discourse.julialang.org/u/phymann)\
**Replies:** 47\
**Last updated:** [November 26, 2021, 5:38pm UTC](https://discourse.julialang.org/t/is-there-a-simple-julia-upgrade-command/45691 "2021-11-26T17:38:29Z")

</div>

Hi, can we update Julia just inside Julia by running a command like update, rather than download a new version from website? :smiley:

---

## [Compiling a LightJulia version](https://discourse.julialang.org/t/compiling-a-lightjulia-version/72008)

<div class="topic-metadata">

**Author:** [@cesarmarinhorj](https://discourse.julialang.org/u/cesarmarinhorj)\
**Replies:** 4\
**Last updated:** [November 26, 2021, 5:08pm UTC](https://discourse.julialang.org/t/compiling-a-lightjulia-version/72008 "2021-11-26T17:08:10Z")

</div>

Julia is amazing! I am in love with it!!! but… ok, there are too many Math inside and too many features for a “common” like “minimal” use, like in the web. just the bare minimal… There is a way to “remove” undesirabl…

---

## [Generate custom hyperlinks](https://discourse.julialang.org/t/generate-custom-hyperlinks/72127)

<div class="topic-metadata">

**Author:** [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Replies:** 0\
**Last updated:** [November 26, 2021, 4:56pm UTC](https://discourse.julialang.org/t/generate-custom-hyperlinks/72127 "2021-11-26T16:56:34Z")

</div>

Parts of our documentation is generated by calls to julia functions of our home brewed MyDocumentationUtil.jl. This package can for example create a vector of dependencies to other packages, etc… @eval using MyDocument…

---

## [Minimum and maximum by column in a datafram](https://discourse.julialang.org/t/minimum-and-maximum-by-column-in-a-datafram/72111)

<div class="topic-metadata">

**Author:** [@corny85](https://discourse.julialang.org/u/corny85)\
**Replies:** 6\
**Last updated:** [November 26, 2021, 4:03pm UTC](https://discourse.julialang.org/t/minimum-and-maximum-by-column-in-a-datafram/72111 "2021-11-26T16:03:53Z")

</div>

Hello, I’m a beginner with Julia. I’ve got a dataframe called data that i converted in an array of floats. data\_temp = deepcopy(data) array=Matrix(data\_temp\[:,2:size(data\_temp,2)\]) df=Array{Float64}(array) Now, i wan…

---

## [Load GIF files into plot](https://discourse.julialang.org/t/load-gif-files-into-plot/72101)

<div class="topic-metadata">

**Author:** [@libensvivit](https://discourse.julialang.org/u/libensvivit)\
**Replies:** 4\
**Last updated:** [November 26, 2021, 1:59pm UTC](https://discourse.julialang.org/t/load-gif-files-into-plot/72101 "2021-11-26T13:59:27Z")

</div>

Hello! I have results of a simulation saved as GIF files on my disk and I want to use a suitable plotting library to load and plot them with the x, y axes having specific values, the exported image will also be a GIF fi…

---

## [Subset does not contain certain string](https://discourse.julialang.org/t/subset-does-not-contain-certain-string/72109)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 2\
**Last updated:** [November 26, 2021, 1:51pm UTC](https://discourse.julialang.org/t/subset-does-not-contain-certain-string/72109 "2021-11-26T13:51:02Z")

</div>

I am trying to subset a dataframe by filtering out rows which contain “/”. I have: @subset(gdf, contains.(:country, "/")) Which works for highlighting all the of the rows with “/” but adding ! or /isnot didn’t seem to…

---

## [Problem with Kaledio and admin rights](https://discourse.julialang.org/t/problem-with-kaledio-and-admin-rights/72110)

<div class="topic-metadata">

**Author:** [@mottelet](https://discourse.julialang.org/u/mottelet)\
**Replies:** 0\
**Last updated:** [November 26, 2021, 1:24pm UTC](https://discourse.julialang.org/t/problem-with-kaledio-and-admin-rights/72110 "2021-11-26T13:24:18Z")

</div>

Hi, I have made some tests (Julia 1.6.4) with a normal user account under Mac OS and Kaleido does not start,although it starts when the user is admin: julia\> using Plots julia\> plotlyjs() Plots.┌ Warning: Kaleido is n…

---

## [Artifacts don't download after instantiating](https://discourse.julialang.org/t/artifacts-dont-download-after-instantiating/72102)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 1\
**Last updated:** [November 26, 2021, 1:04pm UTC](https://discourse.julialang.org/t/artifacts-dont-download-after-instantiating/72102 "2021-11-26T13:04:38Z")

</div>

I don’t understand why an artifact specified in the Artifacts.toml file doesn’t become available after instantiating an environment: shell\> ls Artifacts.toml Manifest.toml Project.toml shell\> cat Artifacts.toml # a s…

---

## [Run Scotland's Public Finances in Julia](https://discourse.julialang.org/t/run-scotlands-public-finances-in-julia/72105)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 0\
**Last updated:** [November 26, 2021, 11:02am UTC](https://discourse.julialang.org/t/run-scotlands-public-finances-in-julia/72105 "2021-11-26T11:02:27Z")

</div>

If you’re interested in public economics or policy research generally this might interest you: https://stb.virtual-worlds.scot/scotbudg/ it’s a front-end to a microsimulation of the fiscal system of Scotland. It lets y…

---

## [Julia Book Black Friday Deals](https://discourse.julialang.org/t/julia-book-black-friday-deals/72071)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [November 25, 2021, 4:13pm UTC](https://discourse.julialang.org/t/julia-book-black-friday-deals/72071 "2021-11-25T16:13:22Z")

</div>

Hey folks, are any Julia book author’s running Black Friday deals on your books? If so, reply here and I will help get the word out!

---

## [SVM Errors With Grid Search](https://discourse.julialang.org/t/svm-errors-with-grid-search/71954)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.julialang.org/u/Rahul)\
**Replies:** 24\
**Last updated:** [November 26, 2021, 8:31am UTC](https://discourse.julialang.org/t/svm-errors-with-grid-search/71954 "2021-11-26T08:31:36Z")

</div>

I am trying to perform Grid Search CV with SVM as follows: SVMClassifier = @load SVMClassifier pkg=ScikitLearn svm\_model = SVMClassifier() r\_svm = range(svm\_model, :C, values=\[0.25, 0.5, 1\]) self\_tuning\_svm = TunedMode…

---

## [How to cut down compile time when inference is not the problem?](https://discourse.julialang.org/t/how-to-cut-down-compile-time-when-inference-is-not-the-problem/59077)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 4\
**Last updated:** [November 26, 2021, 8:13am UTC](https://discourse.julialang.org/t/how-to-cut-down-compile-time-when-inference-is-not-the-problem/59077 "2021-11-26T08:13:33Z")

</div>

Background In Gridap.jl, we have experienced a significant increase in compile times when moving from Julia 1.5 to Julia 1.6. To illustrate this, consider this example: using Gridap function main() domain = (0,1,0,1,…

---

## [Cannot place this error in dataframes](https://discourse.julialang.org/t/cannot-place-this-error-in-dataframes/72081)

<div class="topic-metadata">

**Author:** [@AlexanderChen](https://discourse.julialang.org/u/AlexanderChen)\
**Replies:** 5\
**Last updated:** [November 26, 2021, 8:11am UTC](https://discourse.julialang.org/t/cannot-place-this-error-in-dataframes/72081 "2021-11-26T08:11:00Z")

</div>

hi, I have a simple dataframe csv\_file = \["MARY","PATRICIA","LINDA","BARBARA","ELIZABETH","JENNIFER","MARIA","SUSAN","MARGARET","DOROTHY","LISA","NANCY","KAREN","BETTY"\] df = DataFrame(NAMES=sort(csv\_file)) I then wa…

---

## [Document splatting behaviour in broadcasting](https://discourse.julialang.org/t/document-splatting-behaviour-in-broadcasting/72068)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 7\
**Last updated:** [November 26, 2021, 8:00am UTC](https://discourse.julialang.org/t/document-splatting-behaviour-in-broadcasting/72068 "2021-11-26T08:00:03Z")

</div>

Hello! This use of splatting just turned up in my code: # using Pkg # Pkg.add("ColorTypes") using ColorTypes \_colors = \[\[0.0,0.2,1.0\], \[0.0,0.5,0.0\], \[1.0,0.0,0.0\]\]; \_color = RGB.(\_colors...) # 3-element Array{RGB{Flo…

---

## [iBook G3 Clamshell terminal install](https://discourse.julialang.org/t/ibook-g3-clamshell-terminal-install/72088)

<div class="topic-metadata">

**Author:** [@AlanAylmer](https://discourse.julialang.org/u/AlanAylmer)\
**Replies:** 2\
**Last updated:** [November 26, 2021, 7:15am UTC](https://discourse.julialang.org/t/ibook-g3-clamshell-terminal-install/72088 "2021-11-26T07:15:35Z")

</div>

Hi! I want to install Julia to a truly ancient G3 Clamshell museum piece iBook. All the binaries for Mac seem to be 64 bit. It has Ethernet. The base OS X Darwin shell seems to have curl and can probably make binarie…

---

## [Plots on Raspberry-pi](https://discourse.julialang.org/t/plots-on-raspberry-pi/71445)

<div class="topic-metadata">

**Author:** [@raja4u](https://discourse.julialang.org/u/raja4u)\
**Replies:** 3\
**Last updated:** [November 26, 2021, 5:12am UTC](https://discourse.julialang.org/t/plots-on-raspberry-pi/71445 "2021-11-26T05:12:05Z")

</div>

I am unable to add Plots Package to julia on Raspberry-pi 4. Please help.

---

## [Julia under rosetta 2 on mac m1: threading/scheduling issues with openblas?](https://discourse.julialang.org/t/julia-under-rosetta-2-on-mac-m1-threading-scheduling-issues-with-openblas/72087)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 2\
**Last updated:** [November 26, 2021, 4:07am UTC](https://discourse.julialang.org/t/julia-under-rosetta-2-on-mac-m1-threading-scheduling-issues-with-openblas/72087 "2021-11-26T04:07:13Z")

</div>

Not sure where is the best place to post this: I noticed that with julia (x86) running under rosetta translation, for codes that heavily uses linear algebra, the performance can be 7-10 times slower with default (8) vs s…

---

## [Built in parallel computing capabilities?](https://discourse.julialang.org/t/built-in-parallel-computing-capabilities/72069)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 3\
**Last updated:** [November 25, 2021, 11:41pm UTC](https://discourse.julialang.org/t/built-in-parallel-computing-capabilities/72069 "2021-11-25T23:41:05Z")

</div>

Most computers nowadays have multiple cores. Instead of asking users to determine whether parallel computing is possible, when to turn on parallel computing, and how to program it, I wonder if Julia can become one of the…

---

## [Integrating MathOptInterface into an industry-scale project (e.g. constraint management)](https://discourse.julialang.org/t/integrating-mathoptinterface-into-an-industry-scale-project-e-g-constraint-management/71943)

<div class="topic-metadata">

**Author:** [@pboes](https://discourse.julialang.org/u/pboes)\
**Replies:** 9\
**Last updated:** [November 25, 2021, 11:15pm UTC](https://discourse.julialang.org/t/integrating-mathoptinterface-into-an-industry-scale-project-e-g-constraint-management/71943 "2021-11-25T23:15:31Z")

</div>

Hi, I have been tasked by my employer to think about a general “Operations Research Framework” that guides future operations research projects, both at the level of project management (how to organise this in an agile w…

---

## [ElasticArrays/ArraysofArrays for Vector of Arrays](https://discourse.julialang.org/t/elasticarrays-arraysofarrays-for-vector-of-arrays/70426)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 5\
**Last updated:** [November 25, 2021, 9:04pm UTC](https://discourse.julialang.org/t/elasticarrays-arraysofarrays-for-vector-of-arrays/70426 "2021-11-25T21:04:18Z")

</div>

Dear all, I would like to use ArraysOfArrays and ElasticArrays to handle indexing a Vector vec of type Vector{\<:AbstractArray{T}} where {T} better, as I often need to call vec\[iter\]\[idx\], and afaik with these packages I…

---

## [Proper namespacing and importing local files](https://discourse.julialang.org/t/proper-namespacing-and-importing-local-files/72079)

<div class="topic-metadata">

**Author:** [@jrice](https://discourse.julialang.org/u/jrice)\
**Replies:** 1\
**Last updated:** [November 25, 2021, 8:01pm UTC](https://discourse.julialang.org/t/proper-namespacing-and-importing-local-files/72079 "2021-11-25T20:01:30Z")

</div>

I am curious about how to properly organize Julia projects and maintain good name spacing. Now, I realize namespacing is not very important for reducing name collisions as it is in other languages, because of the nature …

---

## [Type stability in map call](https://discourse.julialang.org/t/type-stability-in-map-call/72077)

<div class="topic-metadata">

**Author:** [@CrookedGrandma](https://discourse.julialang.org/u/CrookedGrandma)\
**Replies:** 3\
**Last updated:** [November 25, 2021, 8:12pm UTC](https://discourse.julialang.org/t/type-stability-in-map-call/72077 "2021-11-25T20:12:30Z")

</div>

Hi there, I’m a bit new to Julia, and I can’t seem to figure out how to make my code type-stable. I’m writing some code in the context of feature selection, and the specific function I’m looking at now is meant to create…

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

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