# Latest

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

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

**Page:** 388

---

## [End-of-horizon effect, Infinite horizon policy graph, SDDP.jl](https://discourse.julialang.org/t/end-of-horizon-effect-infinite-horizon-policy-graph-sddp-jl/115573)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 11\
**Last updated:** [June 14, 2024, 12:52am UTC](https://discourse.julialang.org/t/end-of-horizon-effect-infinite-horizon-policy-graph-sddp-jl/115573 "2024-06-14T00:52:04Z")

</div>

Hi everyone, Let’s assume a simple co-optimized expansion and generation problem with 13 nodes: 1 for expansion and 12 generations corresponding to 12 months. There is uncertainty during generation, e.g., monthly water …

---

## [SCIP does not accept starting point of nonlinear objective from .nl file](https://discourse.julialang.org/t/scip-does-not-accept-starting-point-of-nonlinear-objective-from-nl-file/115442)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 12\
**Last updated:** [June 13, 2024, 10:49pm UTC](https://discourse.julialang.org/t/scip-does-not-accept-starting-point-of-nonlinear-objective-from-nl-file/115442 "2024-06-13T22:49:34Z")

</div>

I construct a nonlinear model in JuMP using the legacy and non-legacy interfaces, providing the same initial solution, and save the models to .nl files. SCIP is able to solve both .nl files correctly to optimality. SCIP …

---

## [\`if foo isa Foo{K} where K; @show K; end\`: \`K\` not defined](https://discourse.julialang.org/t/if-foo-isa-foo-k-where-k-show-k-end-k-not-defined/115572)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 3\
**Last updated:** [June 13, 2024, 10:23pm UTC](https://discourse.julialang.org/t/if-foo-isa-foo-k-where-k-show-k-end-k-not-defined/115572 "2024-06-13T22:23:24Z")

</div>

Is there a good way to make type parameters from the where keyword accessible in an if statement, the way we can with function signatures? \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang…

---

## [Which code does in Julia script need to be written to make code from REPL running as script?](https://discourse.julialang.org/t/which-code-does-in-julia-script-need-to-be-written-to-make-code-from-repl-running-as-script/115599)

<div class="topic-metadata">

**Author:** [@oOosys](https://discourse.julialang.org/u/oOosys)\
**Replies:** 4\
**Last updated:** [June 13, 2024, 7:53pm UTC](https://discourse.julialang.org/t/which-code-does-in-julia-script-need-to-be-written-to-make-code-from-repl-running-as-script/115599 "2024-06-13T19:53:41Z")

</div>

What need to be explicit mentioned (written out as code) in a Julia script which does not need to be mentioned while using Julia REPL? It seems that for example code which runs in the REPL taken 1:1 to a script does not …

---

## [\[ANN\] JuliaTDA: an organization for doing Topological Data Analysis in Julia](https://discourse.julialang.org/t/ann-juliatda-an-organization-for-doing-topological-data-analysis-in-julia/103245)

<div class="topic-metadata">

**Author:** [@vituri](https://discourse.julialang.org/u/vituri)\
**Replies:** 15\
**Last updated:** [June 13, 2024, 7:10pm UTC](https://discourse.julialang.org/t/ann-juliatda-an-organization-for-doing-topological-data-analysis-in-julia/103245 "2024-06-13T19:10:25Z")

</div>

I created this organization with the goal to unite some algorithms used in Topological Data Analysis: JuliaTDA · GitHub . The motivation for me doing this in Julia: I like the Mapper algorithm very much (for more inf…

---

## [How to define the product of n functions](https://discourse.julialang.org/t/how-to-define-the-product-of-n-functions/115615)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [June 13, 2024, 7:09pm UTC](https://discourse.julialang.org/t/how-to-define-the-product-of-n-functions/115615 "2024-06-13T19:09:54Z")

</div>

I want to define the product of n complex functions: B(z)=\\displaystyle\\prod\_{k=1}^n\\frac{z-p\_k}{1-\\overline{p}\_kz}, where p\_k are n complex numbers of modulus \<1. I calculated a vector of partial products, and the fun…

---

## [Sys.CPU\_THREADS doesn't appear to get all my threads on Mac](https://discourse.julialang.org/t/sys-cpu-threads-doesnt-appear-to-get-all-my-threads-on-mac/115613)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 4\
**Last updated:** [June 13, 2024, 6:57pm UTC](https://discourse.julialang.org/t/sys-cpu-threads-doesnt-appear-to-get-all-my-threads-on-mac/115613 "2024-06-13T18:57:10Z")

</div>

On my Mac computer, Sys.CPU\_THREADS=16, but in the terminal, sysctl -n hw.ncpu=24, which really implies I have 48 threads. I’m trying to use Distributed’s addprocs()=addprocs(Sys.CPU\_THREADS) command, but it seems to not…

---

## [Has anyone tranlated the TE Process to Julia?](https://discourse.julialang.org/t/has-anyone-tranlated-the-te-process-to-julia/115614)

<div class="topic-metadata">

**Author:** [@RGonTheNoble](https://discourse.julialang.org/u/RGonTheNoble)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 6:41pm UTC](https://discourse.julialang.org/t/has-anyone-tranlated-the-te-process-to-julia/115614 "2024-06-13T18:41:42Z")

</div>

I remember using a MATLAB-Simulink model for the Tennessee-Eastman (TE) process back in grad school to test some algorithms; and I also remember that using this simulator was a horrible experience. Apparently a lot of pe…

---

## [Extract raster at points 2024](https://discourse.julialang.org/t/extract-raster-at-points-2024/115610)

<div class="topic-metadata">

**Author:** [@CompulsoryCoffee](https://discourse.julialang.org/u/CompulsoryCoffee)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 5:42pm UTC](https://discourse.julialang.org/t/extract-raster-at-points-2024/115610 "2024-06-13T17:42:55Z")

</div>

Hi, Is there a way/package now which allows to extract the raster value at points for large dataset (10M points)? Thanks!

---

## [Accessing a vector of vector is slow](https://discourse.julialang.org/t/accessing-a-vector-of-vector-is-slow/115552)

<div class="topic-metadata">

**Author:** [@elbert5770](https://discourse.julialang.org/u/elbert5770)\
**Replies:** 6\
**Last updated:** [June 13, 2024, 3:06pm UTC](https://discourse.julialang.org/t/accessing-a-vector-of-vector-is-slow/115552 "2024-06-13T15:06:35Z")

</div>

This topic: How is memory allocated for a vector of structs? - General Usage / Performance - Julia Programming Language (julialang.org) made me wonder if a vector of vectors would be faster than a vector of struct for t…

---

## [Performance issue with an API calling another API](https://discourse.julialang.org/t/performance-issue-with-an-api-calling-another-api/110976)

<div class="topic-metadata">

**Author:** [@AbrJA](https://discourse.julialang.org/u/AbrJA)\
**Replies:** 3\
**Last updated:** [June 13, 2024, 4:11pm UTC](https://discourse.julialang.org/t/performance-issue-with-an-api-calling-another-api/110976 "2024-06-13T16:11:52Z")

</div>

Hi everyone, Exploring the Oxygen package to build APIs I found this I haven’t been able to solve When I run this API (with a 150 ms sleep to simulate the time taken by a model): using Oxygen @get "/model" function(…

---

## [Variable Scoping in Non-Interactive Context](https://discourse.julialang.org/t/variable-scoping-in-non-interactive-context/115603)

<div class="topic-metadata">

**Author:** [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 2:53pm UTC](https://discourse.julialang.org/t/variable-scoping-in-non-interactive-context/115603 "2024-06-13T14:53:56Z")

</div>

I’m trying to index a vector in a soft local variable scope, but I just can’t seem to do it. The code looks minimally something like this: in a file called testfile.jl struct TestStruct thing::Int64 end function Fo…

---

## [Errorline like plot for histograms](https://discourse.julialang.org/t/errorline-like-plot-for-histograms/113911)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 6\
**Last updated:** [June 13, 2024, 2:32pm UTC](https://discourse.julialang.org/t/errorline-like-plot-for-histograms/113911 "2024-06-13T14:32:53Z")

</div>

I would like to create an envelope plot for multiple histogram (input as matrix) something like what is done with errorline in StatsPlots. (I did not find a Makie equivalent of errorline). Basically, what I want would l…

---

## [Use Julia to plot grouped bar chart](https://discourse.julialang.org/t/use-julia-to-plot-grouped-bar-chart/115554)

<div class="topic-metadata">

**Author:** [@Z\_M](https://discourse.julialang.org/u/Z_M)\
**Replies:** 4\
**Last updated:** [June 13, 2024, 12:16pm UTC](https://discourse.julialang.org/t/use-julia-to-plot-grouped-bar-chart/115554 "2024-06-13T12:16:06Z")

</div>

Hi guys! I want to know how to use Julia to plot a bar chart like the following picture. Specifically, each X-axis label corresponds to two or more columns. Thank you very much!

---

## [Implementation of the COPS benchmark in JuMP](https://discourse.julialang.org/t/implementation-of-the-cops-benchmark-in-jump/115555)

<div class="topic-metadata">

**Author:** [@frapac](https://discourse.julialang.org/u/frapac)\
**Replies:** 12\
**Last updated:** [June 13, 2024, 11:55am UTC](https://discourse.julialang.org/t/implementation-of-the-cops-benchmark-in-jump/115555 "2024-06-13T11:55:10Z")

</div>

Together with @tmigot , we have re-implemented the COPS benchmark in pure JuMP: GitHub - MadNLP/COPSBenchmark.jl: Implementation of the COPS benchmark with JuMP. The COPS benchmark is a collection of challenging nonline…

---

## [Security flaws in VS Code](https://discourse.julialang.org/t/security-flaws-in-vs-code/115456)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 7\
**Last updated:** [June 13, 2024, 11:28am UTC](https://discourse.julialang.org/t/security-flaws-in-vs-code/115456 "2024-06-13T11:28:33Z")

</div>

Perhaps this is off-topic, but I came across a rather alarming series of posts on the insecurity of VSCode extensions. I’m sure the Julia ones are fine but I wasn’t aware of just how open VSCode was, and how few checks t…

---

## [Custom loss in DiffEqParamEstim](https://discourse.julialang.org/t/custom-loss-in-diffeqparamestim/115580)

<div class="topic-metadata">

**Author:** [@Piyush](https://discourse.julialang.org/u/Piyush)\
**Replies:** 3\
**Last updated:** [June 13, 2024, 11:20am UTC](https://discourse.julialang.org/t/custom-loss-in-diffeqparamestim/115580 "2024-06-13T11:20:50Z")

</div>

How to add first differencing term in custom loss function as included in the inbuilt L2Loss function? Is there a way I can access the documentation for the same?

---

## [\[ANN\] KrylovKit v0.8](https://discourse.julialang.org/t/ann-krylovkit-v0-8/115592)

<div class="topic-metadata">

**Author:** [@juthohaegeman](https://discourse.julialang.org/u/juthohaegeman)\
**Replies:** 0\
**Last updated:** [June 13, 2024, 9:04am UTC](https://discourse.julialang.org/t/ann-krylovkit-v0-8/115592 "2024-06-13T09:04:52Z")

</div>

We are pleased to announce KrylovKit v0.8. The major new feature of this release is the implementation of fully functional and general ChainRulesCore.rrule definitions for linsolve, eigsolve and svdsolve. In fact, for e…

---

## [Copy/paste a DataFrame into a PowerPoint table](https://discourse.julialang.org/t/copy-paste-a-dataframe-into-a-powerpoint-table/115570)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 4\
**Last updated:** [June 13, 2024, 8:09am UTC](https://discourse.julialang.org/t/copy-paste-a-dataframe-into-a-powerpoint-table/115570 "2024-06-13T08:09:20Z")

</div>

I’m looking if anyone in the community have already come with a quick/simple way to just “copy paste” a DataFrame, whose columns are all composed of real numbers, into a PowerPoint table. Would save me tons of time!!! Ex…

---

## [Linewidth in data space in GLMakie](https://discourse.julialang.org/t/linewidth-in-data-space-in-glmakie/115502)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 5\
**Last updated:** [June 13, 2024, 7:36am UTC](https://discourse.julialang.org/t/linewidth-in-data-space-in-glmakie/115502 "2024-06-13T07:36:03Z")

</div>

How can I make the linewidth of a lines plot be in data space, so that ot changes when scrolling?

---

## [Run multiple python instances with pycall in different threads](https://discourse.julialang.org/t/run-multiple-python-instances-with-pycall-in-different-threads/78399)

<div class="topic-metadata">

**Author:** [@Tyde](https://discourse.julialang.org/u/Tyde)\
**Replies:** 6\
**Last updated:** [June 13, 2024, 7:06am UTC](https://discourse.julialang.org/t/run-multiple-python-instances-with-pycall-in-different-threads/78399 "2024-06-13T07:06:11Z")

</div>

Hi, I have a project where I need to call python code via PyCall.jl. This python code itself does interact with a third-party library (In this case I use pyspice the control the simulation of multiple circuits). To incr…

---

## [For \`x::Vector{Char}\`, which should I use \`string(x...)\` or \`join(x)\`?](https://discourse.julialang.org/t/for-x-vector-char-which-should-i-use-string-x-or-join-x/115469)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 6\
**Last updated:** [June 13, 2024, 7:01am UTC](https://discourse.julialang.org/t/for-x-vector-char-which-should-i-use-string-x-or-join-x/115469 "2024-06-13T07:01:25Z")

</div>

I have a black box variable x::Vector{Char} which satisfies length(x) \< 20 (actually, it is not a black box because it is open source, but I do not understand how it behaves yet because I have not read the implementation…

---

## [Yellow Question Marks When Precompiling](https://discourse.julialang.org/t/yellow-question-marks-when-precompiling/115453)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 7\
**Last updated:** [June 13, 2024, 4:49am UTC](https://discourse.julialang.org/t/yellow-question-marks-when-precompiling/115453 "2024-06-13T04:49:20Z")

</div>

Why there are a lot of yellow question marks show up during precompiling when I download new packages? I can using new packages normally. Perhaps someone can point me how to solve it?

---

## [Potential issue with multiple registrations of same handler in error hint](https://discourse.julialang.org/t/potential-issue-with-multiple-registrations-of-same-handler-in-error-hint/115389)

<div class="topic-metadata">

**Author:** [@arhik](https://discourse.julialang.org/u/arhik)\
**Replies:** 5\
**Last updated:** [June 13, 2024, 4:06am UTC](https://discourse.julialang.org/t/potential-issue-with-multiple-registrations-of-same-handler-in-error-hint/115389 "2024-06-13T04:06:17Z")

</div>

Currently the experimental api for error hint registration allows same handler to be registered multiple times. And the handler is called multiple times when triggered. Bear with me on this not so minimal example: usin…

---

## [Documentation build and depolyment problem: - ✘ \`push\_preview\` keyword argument to deploydocs is \`true\`](https://discourse.julialang.org/t/documentation-build-and-depolyment-problem-push-preview-keyword-argument-to-deploydocs-is-true/115454)

<div class="topic-metadata">

**Author:** [@yhuang](https://discourse.julialang.org/u/yhuang)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 3:15am UTC](https://discourse.julialang.org/t/documentation-build-and-depolyment-problem-push-preview-keyword-argument-to-deploydocs-is-true/115454 "2024-06-13T03:15:06Z")

</div>

I’m developing a package SDPLRPlus.jl and am deploying the documentation. I can compile and view the documentation locally but I have some trouble deploying it. I can see my gh-pages branch is quite different from others…

---

## [London Meetup Tomorrow (Oct 27, 2023) - Viral/Chris/Alex](https://discourse.julialang.org/t/london-meetup-tomorrow-oct-27-2023-viral-chris-alex/105452)

<div class="topic-metadata">

**Author:** [@avik](https://discourse.julialang.org/u/avik)\
**Replies:** 3\
**Last updated:** [June 12, 2024, 10:04pm UTC](https://discourse.julialang.org/t/london-meetup-tomorrow-oct-27-2023-viral-chris-alex/105452 "2024-06-12T22:04:59Z")

</div>

In case you haven’t see it yet, there is a London Meetup being organised tomorrow, at the UCL AI Center at High Holborn. Viral Shah, Chris Rackauckas and Alex Jones will speak. We would love to see you if you are in town…

---

## [Unable to launch julia 1.6 - SSL and glibc issues](https://discourse.julialang.org/t/unable-to-launch-julia-1-6-ssl-and-glibc-issues/60488)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 17\
**Last updated:** [June 12, 2024, 8:42pm UTC](https://discourse.julialang.org/t/unable-to-launch-julia-1-6-ssl-and-glibc-issues/60488 "2024-06-12T20:42:11Z")

</div>

I recently installed Julia 1.6 on a CentOS 7 cluster, but am unable to run it. \[affans@hpc ~\]$ julia ERROR: Unable to load dependent library /home/affans/julia-1.6.1/bin/../lib/julia/libjulia-internal.so.1 Message:/usr/…

---

## [@test\_logs and the VSCode Testing pane](https://discourse.julialang.org/t/test-logs-and-the-vscode-testing-pane/115569)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 0\
**Last updated:** [June 12, 2024, 5:47pm UTC](https://discourse.julialang.org/t/test-logs-and-the-vscode-testing-pane/115569 "2024-06-12T17:47:38Z")

</div>

I’m using @test\_logs to verify that a certain warning message is issued under certain conditions. This seems to work fine when running via \]test, but when I run by hitting the green “play” triangle in the VSCode Testing…

---

## [Difference between GPUArrays.jl and KernelAbstractations.jl](https://discourse.julialang.org/t/difference-between-gpuarrays-jl-and-kernelabstractations-jl/115457)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 4\
**Last updated:** [June 12, 2024, 2:17pm UTC](https://discourse.julialang.org/t/difference-between-gpuarrays-jl-and-kernelabstractations-jl/115457 "2024-06-12T14:17:50Z")

</div>

Hello, I would like to implement some simple matrix-vector multiplication, when none of them are strided arrays (e.g., @view(A\[\[1, 4, 5\], 1:10\])). Standard LinearAlgebra.mul! doesn’t support these arrays, so I thought t…

---

## [JuMP - constraint for specific indices](https://discourse.julialang.org/t/jump-constraint-for-specific-indices/115550)

<div class="topic-metadata">

**Author:** [@priantop](https://discourse.julialang.org/u/priantop)\
**Replies:** 4\
**Last updated:** [June 12, 2024, 2:17pm UTC](https://discourse.julialang.org/t/jump-constraint-for-specific-indices/115550 "2024-06-12T14:17:08Z")

</div>

Hello, I am formulating LP problem using JuMP for energy system one of the constraints is the nodal electricity balance, say I have indices of node, time, and technologies How do I make a certain expression valid for …

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

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