# Latest

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

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

**Page:** 661

---

## [Huber regression by using Jump and optimizing with MOSEK](https://discourse.julialang.org/t/huber-regression-by-using-jump-and-optimizing-with-mosek/100081)

<div class="topic-metadata">

**Author:** [@selvi-aras](https://discourse.julialang.org/u/selvi-aras)\
**Replies:** 13\
**Last updated:** [June 27, 2023, 7:58am UTC](https://discourse.julialang.org/t/huber-regression-by-using-jump-and-optimizing-with-mosek/100081 "2023-06-27T07:58:53Z")

</div>

Dear JUMP Community, I am solving a Huber regression problem. I am using the following second-order conic reformulation of the problem (from MOSEK tutorials): My implementation is pretty straightforward: function h…

---

## [How do I tell if an object is callable (a function-like object)?](https://discourse.julialang.org/t/how-do-i-tell-if-an-object-is-callable-a-function-like-object/100831)

<div class="topic-metadata">

**Author:** [@coldinjection](https://discourse.julialang.org/u/coldinjection)\
**Replies:** 15\
**Last updated:** [June 26, 2023, 9:34pm UTC](https://discourse.julialang.org/t/how-do-i-tell-if-an-object-is-callable-a-function-like-object/100831 "2023-06-26T21:34:49Z")

</div>

Say there’s a type T, how can I tell if function (t::T)()… is defined? Is there any way other than trying t() and catching a MethodError?

---

## [12 years of Julia](https://discourse.julialang.org/t/12-years-of-julia/100845)

<div class="topic-metadata">

**Author:** [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Replies:** 16\
**Last updated:** [June 26, 2023, 8:08pm UTC](https://discourse.julialang.org/t/12-years-of-julia/100845 "2023-06-26T20:08:53Z")

</div>

---

## [How to pass variable in macro returned run(\`$var\`)](https://discourse.julialang.org/t/how-to-pass-variable-in-macro-returned-run-var/100874)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 1\
**Last updated:** [June 27, 2023, 6:59am UTC](https://discourse.julialang.org/t/how-to-pass-variable-in-macro-returned-run-var/100874 "2023-06-27T06:59:25Z")

</div>

Hello, how to pass variable in macro returned run($var) macro foo(x) return esc(:(run(\`$x\`))) end @macroexpand @foo my\_command # -\> :(run(Base.cmd\_gen(((x,),)))) # i need @macroexpand @foo my\_command # -\> :(run…

---

## [Set table display font size](https://discourse.julialang.org/t/set-table-display-font-size/100870)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 0\
**Last updated:** [June 27, 2023, 3:47am UTC](https://discourse.julialang.org/t/set-table-display-font-size/100870 "2023-06-27T03:47:25Z")

</div>

How can I set the font size of the vscodedisplay table text?

---

## [Allocations when creating array](https://discourse.julialang.org/t/allocations-when-creating-array/100811)

<div class="topic-metadata">

**Author:** [@CarlosContrerasQ12](https://discourse.julialang.org/u/CarlosContrerasQ12)\
**Replies:** 16\
**Last updated:** [June 27, 2023, 1:46am UTC](https://discourse.julialang.org/t/allocations-when-creating-array/100811 "2023-06-27T01:46:17Z")

</div>

Hi! I have the following code trying to simulate 1000 dimensional brownian paths const type=Float32 function simulate\_path(path\_length) xis=randn(type,(100,path\_length-1)) X=zeros(type,(100,path\_length)) sqd…

---

## [Extremely slow execution time](https://discourse.julialang.org/t/extremely-slow-execution-time/11095)

<div class="topic-metadata">

**Author:** [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Replies:** 45\
**Last updated:** [January 18, 2021, 12:22am UTC](https://discourse.julialang.org/t/extremely-slow-execution-time/11095 "2021-01-18T00:22:15Z")

</div>

I’m putting this under First Steps rather than Performance, because I may be missing something trivial as a very new Julia user. The issue is that the code below takes about 15 seconds to run, when it is really doing no…

---

## [EvoTrees.jl v0.15.0](https://discourse.julialang.org/t/evotrees-jl-v0-15-0/100849)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 3\
**Last updated:** [June 26, 2023, 9:26pm UTC](https://discourse.julialang.org/t/evotrees-jl-v0-15-0/100849 "2023-06-26T21:26:38Z")

</div>

EvoTrees.jl just went through a significant refurbishment for v0.15.0: Direct handling of Tables compatible data It’s not possible to train directly from Tables like structure, most notably DataFrame and named tuples,…

---

## [Calling Julia from C: printing array of strings?](https://discourse.julialang.org/t/calling-julia-from-c-printing-array-of-strings/100716)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 10\
**Last updated:** [June 26, 2023, 8:29pm UTC](https://discourse.julialang.org/t/calling-julia-from-c-printing-array-of-strings/100716 "2023-06-26T20:29:03Z")

</div>

I’m aware that there are other, perhaps better, ways of doing this - but I’m trying to broaden my understanding of how the various pieces work. I have a C program that contains an array of strings, and I’d like to print…

---

## [Lock() and do-block syntax](https://discourse.julialang.org/t/lock-and-do-block-syntax/100854)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 5\
**Last updated:** [June 26, 2023, 7:29pm UTC](https://discourse.julialang.org/t/lock-and-do-block-syntax/100854 "2023-06-26T19:29:22Z")

</div>

I recently stumbled upon a combination of lock and do - similar to open and do. lock(x.lock) do # do something unsafe here end It is unclear that the do-block syntax automatically calls unlock after the work i…

---

## [Embedding Julia: reading std::vector from C++?](https://discourse.julialang.org/t/embedding-julia-reading-std-vector-from-c/100857)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 1\
**Last updated:** [June 26, 2023, 7:31pm UTC](https://discourse.julialang.org/t/embedding-julia-reading-std-vector-from-c/100857 "2023-06-26T19:31:43Z")

</div>

I’m aware of existing … packages for wrapping C++, this is really more of a learning exercise for me (and I’m trying to learn enough to read what is in the existing pacages). I knew that it was possible to get C++ to giv…

---

## [Help With Automatic Differentiation](https://discourse.julialang.org/t/help-with-automatic-differentiation/100844)

<div class="topic-metadata">

**Author:** [@Devetak](https://discourse.julialang.org/u/Devetak)\
**Replies:** 8\
**Last updated:** [June 26, 2023, 7:12pm UTC](https://discourse.julialang.org/t/help-with-automatic-differentiation/100844 "2023-06-26T19:12:03Z")

</div>

Good afternoon, I wanted to ask some advice about Automatic Differentiation in Julia. I am aware of the fact that in AD mutating arrays are not supported, but I find it difficult to write my code in a non mutating fashi…

---

## [JuliaCall: Can I use python functions as paratemeters to julia functions?](https://discourse.julialang.org/t/juliacall-can-i-use-python-functions-as-paratemeters-to-julia-functions/100853)

<div class="topic-metadata">

**Author:** [@CarlosContrerasQ12](https://discourse.julialang.org/u/CarlosContrerasQ12)\
**Replies:** 0\
**Last updated:** [June 26, 2023, 5:51pm UTC](https://discourse.julialang.org/t/juliacall-can-i-use-python-functions-as-paratemeters-to-julia-functions/100853 "2023-06-26T17:51:23Z")

</div>

Hi! I need to do something like this in my workflow from juliacall import Main as jl import numpy as np jl.seval(""" function rs() return randn((19,10)) end """) jl.seval(""" function ml(x,f) return exp(f(x)) end """) s…

---

## [Can Meshes.jl do boolean operations?](https://discourse.julialang.org/t/can-meshes-jl-do-boolean-operations/100808)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [June 26, 2023, 5:48pm UTC](https://discourse.julialang.org/t/can-meshes-jl-do-boolean-operations/100808 "2023-06-26T17:48:11Z")

</div>

Hello! I would just like to know from someone more experienced if this operation is possible: To the left I have a cube. To the right I have the cube cut by an arbitrary plane, black. Any example of how to do this …

---

## [What is a "shared environment"? When should I use a "shared environment"?](https://discourse.julialang.org/t/what-is-a-shared-environment-when-should-i-use-a-shared-environment/100828)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 14\
**Last updated:** [June 26, 2023, 3:00pm UTC](https://discourse.julialang.org/t/what-is-a-shared-environment-when-should-i-use-a-shared-environment/100828 "2023-06-26T15:00:33Z")

</div>

4. Working with Environment · Pkg.jl (julialang.org): A “shared” environment is simply an environment that exists in ~/.julia/environments . The default v1.8 environment is therefore a shared environment. Shared envir…

---

## [Make background white in 3d plot with pythonplot backend](https://discourse.julialang.org/t/make-background-white-in-3d-plot-with-pythonplot-backend/100847)

<div class="topic-metadata">

**Author:** [@bast](https://discourse.julialang.org/u/bast)\
**Replies:** 0\
**Last updated:** [June 26, 2023, 2:39pm UTC](https://discourse.julialang.org/t/make-background-white-in-3d-plot-with-pythonplot-backend/100847 "2023-06-26T14:39:49Z")

</div>

Hello, Is there an option to set the background of a 3d plot to white with pythonplot? With gr it is by default white. background\_color =:white has no effect. Thank you, Sebastian

---

## [Rotating a plane using Meshes.jl](https://discourse.julialang.org/t/rotating-a-plane-using-meshes-jl/100795)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [June 26, 2023, 11:26am UTC](https://discourse.julialang.org/t/rotating-a-plane-using-meshes-jl/100795 "2023-06-26T11:26:34Z")

</div>

In Meshes.jl, if I define a plane such as: using Meshes BP = Plane((0,0,0),(0,0,1)) In which (0,0,1) is the normal vector of the plane. How would I apply a rotation to the plane, such that the normal vector would be (…

---

## [Create Hayshed in 3D with Inverted Catenary, Need Help with Modify the x and y ticks](https://discourse.julialang.org/t/create-hayshed-in-3d-with-inverted-catenary-need-help-with-modify-the-x-and-y-ticks/100807)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [June 26, 2023, 2:10pm UTC](https://discourse.julialang.org/t/create-hayshed-in-3d-with-inverted-catenary-need-help-with-modify-the-x-and-y-ticks/100807 "2023-06-26T14:10:22Z")

</div>

I am using Plotlyjs here, gr() can also be used, but can’t be rotated. I want to create a hayshed that will look like this: I have come up with this code: # Inverted catenary using Plots; #gr() plotlyjs() # a larg…

---

## [Control stack trace verbosity](https://discourse.julialang.org/t/control-stack-trace-verbosity/77695)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 5\
**Last updated:** [June 26, 2023, 2:08pm UTC](https://discourse.julialang.org/t/control-stack-trace-verbosity/77695 "2023-06-26T14:08:46Z")

</div>

After some time working with Julia I’ve gotten used to the stack trace and the huge amount of information it provides. Nonetheless, I still keep wondering if it would be possible to have some control over what is display…

---

## [Failing precompilation for DecisionTree](https://discourse.julialang.org/t/failing-precompilation-for-decisiontree/100822)

<div class="topic-metadata">

**Author:** [@alexdmeyer](https://discourse.julialang.org/u/alexdmeyer)\
**Replies:** 2\
**Last updated:** [June 26, 2023, 2:03pm UTC](https://discourse.julialang.org/t/failing-precompilation-for-decisiontree/100822 "2023-06-26T14:03:03Z")

</div>

Hey Julia community, For the past few months, the command using DecisionTree (as well as using MLJDecisionTreeInterface) has been met with the error message below on my machine. These packages previously worked fine for…

---

## [Cannot build CPLEX 22.11 in Julia 1.6.7 (Mac)](https://discourse.julialang.org/t/cannot-build-cplex-22-11-in-julia-1-6-7-mac/100825)

<div class="topic-metadata">

**Author:** [@mlozano](https://discourse.julialang.org/u/mlozano)\
**Replies:** 2\
**Last updated:** [June 26, 2023, 1:44pm UTC](https://discourse.julialang.org/t/cannot-build-cplex-22-11-in-julia-1-6-7-mac/100825 "2023-06-26T13:44:20Z")

</div>

Hello, I think there’s a file type mismatch between the CPLEX download and what Julia is expecting. Specifically, I downloaded the version of both programs for Mac OSX, but it appears that Julia wants the version that is…

---

## [FINAL WEEK: Please complete the 2023 Julia User & Developer Survey by Monday, July 3](https://discourse.julialang.org/t/final-week-please-complete-the-2023-julia-user-developer-survey-by-monday-july-3/100843)

<div class="topic-metadata">

**Author:** [@ahclaster](https://discourse.julialang.org/u/ahclaster)\
**Replies:** 0\
**Last updated:** [June 26, 2023, 1:08pm UTC](https://discourse.julialang.org/t/final-week-please-complete-the-2023-julia-user-developer-survey-by-monday-july-3/100843 "2023-06-26T13:08:25Z")

</div>

Please click here to complete the 2023 Julia User & Developer Survey. The last day to complete the survey is Monday, July 3. The survey is available in English, Chinese (Simplified and Traditional), Spanish, Japanese and…

---

## [Program has different results when ran in REPL and from Nsight compute](https://discourse.julialang.org/t/program-has-different-results-when-ran-in-repl-and-from-nsight-compute/100817)

<div class="topic-metadata">

**Author:** [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Replies:** 1\
**Last updated:** [June 25, 2023, 7:03pm UTC](https://discourse.julialang.org/t/program-has-different-results-when-ran-in-repl-and-from-nsight-compute/100817 "2023-06-25T19:03:17Z")

</div>

index = CuArray{UInt32}(\[1\]) function ker(index) i = (blockIdx().x - Int32(1)) \* blockDim().x + threadIdx().x @cuprintln "i: " i @cuprintln "index: " index\[\] @cuprintln "old\_index: " index\[\] += 1 ret…

---

## [Color cycling in GLMakie.series](https://discourse.julialang.org/t/color-cycling-in-glmakie-series/100834)

<div class="topic-metadata">

**Author:** [@tt1234567](https://discourse.julialang.org/u/tt1234567)\
**Replies:** 7\
**Last updated:** [June 26, 2023, 10:43am UTC](https://discourse.julialang.org/t/color-cycling-in-glmakie-series/100834 "2023-06-26T10:43:10Z")

</div>

I’ve only just discovered series in GLMakie as a simple way of plotting rows of a matrix. This is something I do a lot (actually, I’d prefer to plot columns, but never mind) but it doesn’t seem to like plotting more seri…

---

## [Performance & Profiling Tips for Beginner Code](https://discourse.julialang.org/t/performance-profiling-tips-for-beginner-code/100585)

<div class="topic-metadata">

**Author:** [@physh](https://discourse.julialang.org/u/physh)\
**Replies:** 14\
**Last updated:** [June 26, 2023, 9:18am UTC](https://discourse.julialang.org/t/performance-profiling-tips-for-beginner-code/100585 "2023-06-26T09:18:04Z")

</div>

Dear all, I have been using Julia for a few months now, writing code mostly without worrying too much about performance (profiling very briefly with @time/@btime to make sure nothing too horribly is happening though). I…

---

## [Gitea package registry?](https://discourse.julialang.org/t/gitea-package-registry/100827)

<div class="topic-metadata">

**Author:** [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Replies:** 5\
**Last updated:** [June 26, 2023, 8:47am UTC](https://discourse.julialang.org/t/gitea-package-registry/100827 "2023-06-26T08:47:26Z")

</div>

LocalRegistry.jl is nice, but I’m wondering if the effort required to maintain a local registry could be reduced even further by using Gitea’s Package Registry. You can see the currently supported registries (npm, PyPi,…

---

## [How to get restartable/interruptible kernels in VSCode (when using juliaup?)](https://discourse.julialang.org/t/how-to-get-restartable-interruptible-kernels-in-vscode-when-using-juliaup/100769)

<div class="topic-metadata">

**Author:** [@chipbuster](https://discourse.julialang.org/u/chipbuster)\
**Replies:** 1\
**Last updated:** [June 26, 2023, 6:54am UTC](https://discourse.julialang.org/t/how-to-get-restartable-interruptible-kernels-in-vscode-when-using-juliaup/100769 "2023-06-26T06:54:16Z")

</div>

As the title suggests, I’m unable to interrupt or restart kernels in VSCode. When I try to do so, one of two things happens: Most of the time, the command doesn’t go through until the cell is finished executing. Someti…

---

## [Conda.jl error in GitHub actions](https://discourse.julialang.org/t/conda-jl-error-in-github-actions/74741)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 3\
**Last updated:** [June 26, 2023, 5:39am UTC](https://discourse.julialang.org/t/conda-jl-error-in-github-actions/74741 "2023-06-26T05:39:46Z")

</div>

I have trouble with Conda.jl in GitHub actions. Since yesterday, I get the error ERROR: LoadError: ArgumentError: Path to conda environment is not valid: /home/runner/.julia/conda/3 see https://github.com/ranocha/BSeri…

---

## [DifferentialEquations.jl not precompiling](https://discourse.julialang.org/t/differentialequations-jl-not-precompiling/100766)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 7\
**Last updated:** [June 26, 2023, 3:49am UTC](https://discourse.julialang.org/t/differentialequations-jl-not-precompiling/100766 "2023-06-26T03:49:15Z")

</div>

I’ve been using Differentialequations.jl with VSCode for some time now, but got a precompiling error today, tried remove and reinstalling the package, and still getting the precompiling error. I’ve added the whole stackt…

---

## [Floop threading and Juliacall produce segmentation fault](https://discourse.julialang.org/t/floop-threading-and-juliacall-produce-segmentation-fault/100717)

<div class="topic-metadata">

**Author:** [@CarlosContrerasQ12](https://discourse.julialang.org/u/CarlosContrerasQ12)\
**Replies:** 12\
**Last updated:** [June 26, 2023, 3:16am UTC](https://discourse.julialang.org/t/floop-threading-and-juliacall-produce-segmentation-fault/100717 "2023-06-26T03:16:40Z")

</div>

Hi! I’m trying to speed up some calculations using julia to call from python. I’m trying to use juliacall as follows: I have a julia threaded function to produce samples #"file.jl" using FLoops function my\_func(N) …

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

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