# Latest

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

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

**Page:** 651

---

## [Regex capture next line in text file](https://discourse.julialang.org/t/regex-capture-next-line-in-text-file/101361)

<div class="topic-metadata">

**Author:** [@Nick\_Mulholland](https://discourse.julialang.org/u/Nick_Mulholland)\
**Replies:** 7\
**Last updated:** [July 9, 2023, 4:45pm UTC](https://discourse.julialang.org/t/regex-capture-next-line-in-text-file/101361 "2023-07-09T16:45:00Z")

</div>

I’m fairly next to Julia and was wondering if anyone had some advice. I’m loving the regex feature which is working great on a line by line query for example open(filename) do file for (index, ln) in enumerate(e…

---

## [Workflow for Testing Packages](https://discourse.julialang.org/t/workflow-for-testing-packages/101305)

<div class="topic-metadata">

**Author:** [@jeffzwe](https://discourse.julialang.org/u/jeffzwe)\
**Replies:** 6\
**Last updated:** [July 9, 2023, 3:52pm UTC](https://discourse.julialang.org/t/workflow-for-testing-packages/101305 "2023-07-09T15:52:24Z")

</div>

Hi there, I’m new to Julia and I’m currently developing a new package. In order to set up a testing suite, I followed the “tutorial” in the Docs. However even with this simple example I’m getting following error for ev…

---

## [Higher-level function with variable number of parameters](https://discourse.julialang.org/t/higher-level-function-with-variable-number-of-parameters/101390)

<div class="topic-metadata">

**Author:** [@pao](https://discourse.julialang.org/u/pao)\
**Replies:** 0\
**Last updated:** [July 9, 2023, 10:00am UTC](https://discourse.julialang.org/t/higher-level-function-with-variable-number-of-parameters/101390 "2023-07-09T10:00:30Z")

</div>

Hi guys, I need to write this kind of higher level operators op. op ∈ {T,S,R,H,G}: op -\> indxs::Int -\> params::Real -\> obj::UserType =\> obj::UserType Problem I’m not able to solve is about having indxs and params …

---

## [Solving PDE + DAE using method of lines?](https://discourse.julialang.org/t/solving-pde-dae-using-method-of-lines/101370)

<div class="topic-metadata">

**Author:** [@KevinModica](https://discourse.julialang.org/u/KevinModica)\
**Replies:** 3\
**Last updated:** [July 9, 2023, 2:03pm UTC](https://discourse.julialang.org/t/solving-pde-dae-using-method-of-lines/101370 "2023-07-09T14:03:17Z")

</div>

Hello All, I am new to Julia, and I have a lot of difficulty navigating the documentation (especially with functions being imported all at once with “using …”, so I can never tell what function belongs to what). I’m tr…

---

## [Franklin.jl -- How to Extract Properties of Specific Posts/Pages](https://discourse.julialang.org/t/franklin-jl-how-to-extract-properties-of-specific-posts-pages/101338)

<div class="topic-metadata">

**Author:** [@Steve\_Shupe](https://discourse.julialang.org/u/Steve_Shupe)\
**Replies:** 6\
**Last updated:** [July 9, 2023, 1:09pm UTC](https://discourse.julialang.org/t/franklin-jl-how-to-extract-properties-of-specific-posts-pages/101338 "2023-07-09T13:09:35Z")

</div>

I’ve started using the Franklin package. I generally understand how it works, but am struggling with how to extract specific information about a post or page when writing an “hfun\_” function for utils.jl. For example, if…

---

## [Task/thread-local caches/buffers](https://discourse.julialang.org/t/task-thread-local-caches-buffers/101309)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 12\
**Last updated:** [July 9, 2023, 10:56am UTC](https://discourse.julialang.org/t/task-thread-local-caches-buffers/101309 "2023-07-09T10:56:05Z")

</div>

What is currently the best way to handle task/thread-local caches/buffers that need to be accessed efficiently from functions called from a Threads.@threads for loop? The background is as follows. As described in the re…

---

## [Using callback functions when solving pde's with MethodOfLines](https://discourse.julialang.org/t/using-callback-functions-when-solving-pdes-with-methodoflines/101379)

<div class="topic-metadata">

**Author:** [@mkretzschmar](https://discourse.julialang.org/u/mkretzschmar)\
**Replies:** 1\
**Last updated:** [July 9, 2023, 10:38am UTC](https://discourse.julialang.org/t/using-callback-functions-when-solving-pdes-with-methodoflines/101379 "2023-07-09T10:38:22Z")

</div>

I am using the MethodOfLines package for solving a system of first order pde’s. Now I want to introduce callback functions to handle discrete events. It is unclear to me how to call the integrator, because the pde system…

---

## [Importing a csv file using RHEOS gives error](https://discourse.julialang.org/t/importing-a-csv-file-using-rheos-gives-error/101384)

<div class="topic-metadata">

**Author:** [@Maruja](https://discourse.julialang.org/u/Maruja)\
**Replies:** 0\
**Last updated:** [July 9, 2023, 8:46am UTC](https://discourse.julialang.org/t/importing-a-csv-file-using-rheos-gives-error/101384 "2023-07-09T08:46:13Z")

</div>

I tried using RHEOS to import a csv file which has two columns with data, the first being time and the second being stress. I followed the documentation of RHEOS: Import file data\_1 = importcsv(“assets/data\_time.csv”, t…

---

## [How to linearize a model](https://discourse.julialang.org/t/how-to-linearize-a-model/99886)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 14\
**Last updated:** [July 9, 2023, 8:07am UTC](https://discourse.julialang.org/t/how-to-linearize-a-model/99886 "2023-07-09T08:07:54Z")

</div>

What I did so far: I can define a model using ModelingToolkit.jl I can simplify the system of equations I can simulate the step response of the model Now I would like to linearize the model. In theory very easy, just …

---

## [How should I use Revise.jl (and other developer tools) to develop a package?](https://discourse.julialang.org/t/how-should-i-use-revise-jl-and-other-developer-tools-to-develop-a-package/101344)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 17\
**Last updated:** [July 9, 2023, 6:43am UTC](https://discourse.julialang.org/t/how-should-i-use-revise-jl-and-other-developer-tools-to-develop-a-package/101344 "2023-07-09T06:43:11Z")

</div>

When I create a new package, I often want BenchmarkTools, Revise, and other dependencies that are accessible within my package’s environment, but won’t be added as dependencies for users. I’ve tried playing around with \[…

---

## [Best approach to solving this coupled nonlinear PDE system (incompressible convection)?](https://discourse.julialang.org/t/best-approach-to-solving-this-coupled-nonlinear-pde-system-incompressible-convection/101290)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 3\
**Last updated:** [July 8, 2023, 9:17pm UTC](https://discourse.julialang.org/t/best-approach-to-solving-this-coupled-nonlinear-pde-system-incompressible-convection/101290 "2023-07-08T21:17:44Z")

</div>

Hello everyone! I’m new to solving PDEs with Julia, only done ODEs so far. My problem looks like this: -\\nabla P+\\nabla \\cdot \\sigma+\\rho \\vec{g}=0 \\nabla \\cdot \\vec{u}=0 \\dot{\\varepsilon}=\\frac{1}{2}\\left(\\nabla …

---

## [SOS Julia Newton Polytopes](https://discourse.julialang.org/t/sos-julia-newton-polytopes/101369)

<div class="topic-metadata">

**Author:** [@ilovemath](https://discourse.julialang.org/u/ilovemath)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 9:08pm UTC](https://discourse.julialang.org/t/sos-julia-newton-polytopes/101369 "2023-07-08T21:08:58Z")

</div>

I am trying to investigate the details in which Newton polytope reduction is being incorporated in the sum of squares constraints for SumOfSquares/JuMP. Firstly, is the Newton polytope reduction being exploited automati…

---

## [Cannot \`pkg\> dev .\` a package with extensions inside a shared environment?](https://discourse.julialang.org/t/cannot-pkg-dev-a-package-with-extensions-inside-a-shared-environment/101363)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 7:54pm UTC](https://discourse.julialang.org/t/cannot-pkg-dev-a-package-with-extensions-inside-a-shared-environment/101363 "2023-07-08T19:54:17Z")

</div>

Following a recent discussion on dev environments, I tried this new workflow of using a shared environment. But when I used pkg\> dev . on a locally downloaded package with extensions (aka weakdeps, introduced in Julia …

---

## [Precompilation OOM](https://discourse.julialang.org/t/precompilation-oom/101366)

<div class="topic-metadata">

**Author:** [@NAS](https://discourse.julialang.org/u/NAS)\
**Replies:** 2\
**Last updated:** [July 8, 2023, 8:50pm UTC](https://discourse.julialang.org/t/precompilation-oom/101366 "2023-07-08T20:50:40Z")

</div>

Has anyone had an issue with a project precompilation just running and continuing to consume memory. I have a module I’m working on developing right now and when I Pkg.add it appears to update all of the dependencies and…

---

## [Error installing GLMakie](https://discourse.julialang.org/t/error-installing-glmakie/101347)

<div class="topic-metadata">

**Author:** [@Uve](https://discourse.julialang.org/u/Uve)\
**Replies:** 5\
**Last updated:** [July 8, 2023, 8:02pm UTC](https://discourse.julialang.org/t/error-installing-glmakie/101347 "2023-07-08T20:02:48Z")

</div>

I just installed julia on a new PC (Windows 10) and I have problems precompiling GLMakie (or any other version of Makie). I have tried reinstalling everything but have not been successful. julia\> using GLMakie \[ Info: P…

---

## [Avoid truncation for display of custom Tables object](https://discourse.julialang.org/t/avoid-truncation-for-display-of-custom-tables-object/101326)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 0\
**Last updated:** [July 7, 2023, 7:07pm UTC](https://discourse.julialang.org/t/avoid-truncation-for-display-of-custom-tables-object/101326 "2023-07-07T19:07:29Z")

</div>

I have a custom type CollectedBenchmarks that implements the Tables.jl interface. I’ve defined function Base.show(io::IO, ::MIME"text/plain", b::CollectedBenchmarks) pretty\_table(io, b; show\_row\_number=true) end us…

---

## [JuMP Objective coefficient writing](https://discourse.julialang.org/t/jump-objective-coefficient-writing/101286)

<div class="topic-metadata">

**Author:** [@Luiz\_Monteiro](https://discourse.julialang.org/u/Luiz_Monteiro)\
**Replies:** 4\
**Last updated:** [July 8, 2023, 7:03pm UTC](https://discourse.julialang.org/t/jump-objective-coefficient-writing/101286 "2023-07-08T19:03:54Z")

</div>

Hi, I am trying to write an objective using index for each element of an expression, just like a simple constraint (example: i, h, k in @constraint(model1, con19B\[i in V0\_customer, h in Vstation, j in V0\_customer, k in …

---

## [Choice of Kernel Function (MultiOutput Gaussian Process)](https://discourse.julialang.org/t/choice-of-kernel-function-multioutput-gaussian-process/101359)

<div class="topic-metadata">

**Author:** [@lsablon](https://discourse.julialang.org/u/lsablon)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 6:55pm UTC](https://discourse.julialang.org/t/choice-of-kernel-function-multioutput-gaussian-process/101359 "2023-07-08T18:55:35Z")

</div>

Hi ! I am using Gaussian Processes in my research, but I lack some theoretical knowledge about multioutput kernels. For the moment, I am using the JuliaGaussianProcesses ecosystem. My training data are maps associated…

---

## [Why do I get different behavior in my Julia vs Matlab implementation?](https://discourse.julialang.org/t/why-do-i-get-different-behavior-in-my-julia-vs-matlab-implementation/101354)

<div class="topic-metadata">

**Author:** [@KZ-Spectra](https://discourse.julialang.org/u/KZ-Spectra)\
**Replies:** 2\
**Last updated:** [July 8, 2023, 5:12pm UTC](https://discourse.julialang.org/t/why-do-i-get-different-behavior-in-my-julia-vs-matlab-implementation/101354 "2023-07-08T17:12:29Z")

</div>

I’ve written two scripts: one in Julia and one in Matlab. Both are supposed to do the same thing: solve a system of ODEs One way to do a “sanity” check, in this case, for the numerical solutions is to check if the L2 n…

---

## [Shared data between processes](https://discourse.julialang.org/t/shared-data-between-processes/101350)

<div class="topic-metadata">

**Author:** [@pitsianis](https://discourse.julialang.org/u/pitsianis)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 3:20pm UTC](https://discourse.julialang.org/t/shared-data-between-processes/101350 "2023-07-08T15:20:23Z")

</div>

I was surprised that SharedArrays.jl does not support SparseArrays. Is there any package that can place any data structure in a shared memory segment so that collaborating processes from Distributed.jl can access them w…

---

## [Gather Optimal Tableau Information using CPLEX.jl](https://discourse.julialang.org/t/gather-optimal-tableau-information-using-cplex-jl/101331)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 3\
**Last updated:** [July 8, 2023, 2:56pm UTC](https://discourse.julialang.org/t/gather-optimal-tableau-information-using-cplex-jl/101331 "2023-07-08T14:56:24Z")

</div>

Hey! I’m currently working on implementing fractional Gomory cuts, and I need to know the optimal simplex tableau in order to obtain these constraints. In this post on Simplex tableau, they suggested using ccall and men…

---

## [A problem of loading a CSV file: realloc(): invalid pointer](https://discourse.julialang.org/t/a-problem-of-loading-a-csv-file-realloc-invalid-pointer/101348)

<div class="topic-metadata">

**Author:** [@Ilfan-Oh](https://discourse.julialang.org/u/Ilfan-Oh)\
**Replies:** 3\
**Last updated:** [July 8, 2023, 2:52pm UTC](https://discourse.julialang.org/t/a-problem-of-loading-a-csv-file-realloc-invalid-pointer/101348 "2023-07-08T14:52:10Z")

</div>

I installed the current stable release of Julia v1.9.2 into my machine three days ago. Since then, I’ve been facing a problem of loading a csv file (the file size: 217.8 MB). Jupyter notebook keeps telling me that a kern…

---

## [Largest number of variables that SCS.jl can handle](https://discourse.julialang.org/t/largest-number-of-variables-that-scs-jl-can-handle/100929)

<div class="topic-metadata">

**Author:** [@WellWellww](https://discourse.julialang.org/u/WellWellww)\
**Replies:** 11\
**Last updated:** [July 8, 2023, 2:50pm UTC](https://discourse.julialang.org/t/largest-number-of-variables-that-scs-jl-can-handle/100929 "2023-07-08T14:50:10Z")

</div>

I was using JuMP.jl and SCS.jl to code and solve an optimization problem. The problem involved 234,932 optimization variables and 251,088 constraints. However, I encountered the following error: \[113945\] signal (11.1): …

---

## [Julia recognizing installations as code](https://discourse.julialang.org/t/julia-recognizing-installations-as-code/101241)

<div class="topic-metadata">

**Author:** [@anistrope](https://discourse.julialang.org/u/anistrope)\
**Replies:** 8\
**Last updated:** [July 8, 2023, 2:23pm UTC](https://discourse.julialang.org/t/julia-recognizing-installations-as-code/101241 "2023-07-08T14:23:00Z")

</div>

Trying to follow the troubleshooting guide julia gives after PyPlot fails to use the matplotlib package. Specifically, I am following this part: “PyCall is currently configured to use the Julia-specific Python distribut…

---

## [Calligraphic LaTeX fonts in Makie](https://discourse.julialang.org/t/calligraphic-latex-fonts-in-makie/101209)

<div class="topic-metadata">

**Author:** [@Pablo\_Marchant](https://discourse.julialang.org/u/Pablo_Marchant)\
**Replies:** 10\
**Last updated:** [July 8, 2023, 11:08am UTC](https://discourse.julialang.org/t/calligraphic-latex-fonts-in-makie/101209 "2023-07-08T11:08:40Z")

</div>

Hi all, I’ve run into a small problem regarding mismatch of LaTeX fonts between Makie and the LaTeX documents where I am placing such figures. This is really a problem with the calligraphic fonts that are used in math m…

---

## [Benchmarking the Parallel 1D Heat Equation Solver in Chapel, Charm++, C++, HPX, Go, Julia, Python, Rust, Swift, and Java](https://discourse.julialang.org/t/benchmarking-the-parallel-1d-heat-equation-solver-in-chapel-charm-c-hpx-go-julia-python-rust-swift-and-java/101330)

<div class="topic-metadata">

**Author:** [@Perrin\_Meyer](https://discourse.julialang.org/u/Perrin_Meyer)\
**Replies:** 7\
**Last updated:** [July 8, 2023, 10:11am UTC](https://discourse.julialang.org/t/benchmarking-the-parallel-1d-heat-equation-solver-in-chapel-charm-c-hpx-go-julia-python-rust-swift-and-java/101330 "2023-07-08T10:11:45Z")

</div>

Interesting arXiv preprint… TLDNR: (Julia crushes Numpy…)

---

## [Re the blog post: PSA: Thread-local state is no longer recommended](https://discourse.julialang.org/t/re-the-blog-post-psa-thread-local-state-is-no-longer-recommended/101303)

<div class="topic-metadata">

**Author:** [@wherrera](https://discourse.julialang.org/u/wherrera)\
**Replies:** 7\
**Last updated:** [July 8, 2023, 8:55am UTC](https://discourse.julialang.org/t/re-the-blog-post-psa-thread-local-state-is-no-longer-recommended/101303 "2023-07-08T08:55:27Z")

</div>

Disfavored in the blog post, due to issues with threadid, was: using Base.Threads: nthreads, @threads, threadid states = \[some\_initial\_value for \_ in 1:nthreads()\] @threads for x in some\_data tid = threadid() o…

---

## [Hyperthreading in HPC](https://discourse.julialang.org/t/hyperthreading-in-hpc/101316)

<div class="topic-metadata">

**Author:** [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Replies:** 16\
**Last updated:** [July 8, 2023, 7:04am UTC](https://discourse.julialang.org/t/hyperthreading-in-hpc/101316 "2023-07-08T07:04:18Z")

</div>

Hi everyone, I have a question regarding the use of hyperthreading/SMT on HPC systems. HPC hyperthreading on off - Google Search reveals some vague hints that in the past it has been accepted that enabling hyperthreadin…

---

## [CAN bus library for Julia?](https://discourse.julialang.org/t/can-bus-library-for-julia/35292)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [July 8, 2023, 6:39am UTC](https://discourse.julialang.org/t/can-bus-library-for-julia/35292 "2023-07-08T06:39:38Z")

</div>

Good evening, Is there any package that supports to send and receive CAN bus messages for Julia? If not, would you suggest to use a Python library or a C/C++ library? There is a Python package: https://python-can.rea…

---

## [Running OOM trying to load data to GPU](https://discourse.julialang.org/t/running-oom-trying-to-load-data-to-gpu/100480)

<div class="topic-metadata">

**Author:** [@lepton01](https://discourse.julialang.org/u/lepton01)\
**Replies:** 2\
**Last updated:** [July 8, 2023, 6:26am UTC](https://discourse.julialang.org/t/running-oom-trying-to-load-data-to-gpu/100480 "2023-07-08T06:26:11Z")

</div>

Hello there. After training the CNN, I wrote a function to estimate the accuracy of it. function accuracy(A, B, name) BSON.@load name \* ".bson" model model = model |\> gpu X1, Y1 = A X2, Y2 = B Y\_tr\_…

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

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