# Latest

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

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

**Page:** 1259

---

## [Julia for HEP Mini-workshop](https://discourse.julialang.org/t/julia-for-hep-mini-workshop/68622)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 12:37pm UTC](https://discourse.julialang.org/t/julia-for-hep-mini-workshop/68622 "2021-09-23T12:37:22Z")

</div>

Following up the Julia session at the last PyHEP workshop, a study of potential of this programming language for HEP is being launched within the PyHEP WG of HSF. The goal is to write a report that will describe its pot…

---

## [How to model seasonal data using GLM.jl](https://discourse.julialang.org/t/how-to-model-seasonal-data-using-glm-jl/46629)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 12:13pm UTC](https://discourse.julialang.org/t/how-to-model-seasonal-data-using-glm-jl/46629 "2021-09-23T12:13:05Z")

</div>

I would like to model some data that exhibits strong hourly seasonality. Additionally the data depends on the ambient temperature and if it is a holiday or workday. @formula(y ~ 1 + T\_amb + T\_amb^2 + hour\_of\_day(t)) O…

---

## [New to Machine Learning, Where to begin?](https://discourse.julialang.org/t/new-to-machine-learning-where-to-begin/68573)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 6\
**Last updated:** [September 23, 2021, 11:58am UTC](https://discourse.julialang.org/t/new-to-machine-learning-where-to-begin/68573 "2021-09-23T11:58:09Z")

</div>

Hi everyone. I do not know ANYTHING about machine learning, and I would like to read about it and apply it with Julia. Most of the info I find is Python based and I much prefer to use Julia. I wonder if you can recomme…

---

## [LaTeX with Makie(Layout)](https://discourse.julialang.org/t/latex-with-makie-layout/56454)

<div class="topic-metadata">

**Author:** [@darsnack](https://discourse.julialang.org/u/darsnack)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 10:51am UTC](https://discourse.julialang.org/t/latex-with-makie-layout/56454 "2021-09-23T10:51:31Z")

</div>

Is there a way to use LaTeX for the title and/or axis labels in Makie (the latest version with all the layout bells and whistles)? I saw MakieTeX.jl, but the README says to ask on Slack, but I put the Q here for permanen…

---

## [High RAM usage](https://discourse.julialang.org/t/high-ram-usage/67091)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 14\
**Last updated:** [September 23, 2021, 10:24am UTC](https://discourse.julialang.org/t/high-ram-usage/67091 "2021-09-23T10:24:44Z")

</div>

Hi I’ve built a code which basically calculates the value of a complex non-linear function with a set of parameters for which I need to find a fixed point. Because of it is computationally heavy, I use distributed compu…

---

## [\`Pkg.update()\` causes downgrade and removal of packages](https://discourse.julialang.org/t/pkg-update-causes-downgrade-and-removal-of-packages/68603)

<div class="topic-metadata">

**Author:** [@vancleve](https://discourse.julialang.org/u/vancleve)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 9:47am UTC](https://discourse.julialang.org/t/pkg-update-causes-downgrade-and-removal-of-packages/68603 "2021-09-23T09:47:31Z")

</div>

When updating the Symbolics package to its most recent version, I get a few other package updates and new packages. However, when running Pkg.update() immediately afterwards, julia downgrades ones of those updated packag…

---

## [Advanced iteration interface in Julia](https://discourse.julialang.org/t/advanced-iteration-interface-in-julia/68618)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 5\
**Last updated:** [September 23, 2021, 9:39am UTC](https://discourse.julialang.org/t/advanced-iteration-interface-in-julia/68618 "2021-09-23T09:39:15Z")

</div>

I’m working on a function to simplify iterating over binary trees. Ideally, this function should have the following signature: walk\_down( tree, starting\_vertex; two\_children, # Function vertex -\> Union{Val(:le…

---

## [Is there a way to use a debugger on scripts running embedded in C++? If so, how?](https://discourse.julialang.org/t/is-there-a-way-to-use-a-debugger-on-scripts-running-embedded-in-c-if-so-how/68031)

<div class="topic-metadata">

**Author:** [@solaris](https://discourse.julialang.org/u/solaris)\
**Replies:** 12\
**Last updated:** [September 23, 2021, 9:00am UTC](https://discourse.julialang.org/t/is-there-a-way-to-use-a-debugger-on-scripts-running-embedded-in-c-if-so-how/68031 "2021-09-23T09:00:08Z")

</div>

Ideally in an IDE like VSCode. If only command line is possible, that’s ok for now.

---

## [SetUp and TearDown in Test module?](https://discourse.julialang.org/t/setup-and-teardown-in-test-module/68589)

<div class="topic-metadata">

**Author:** [@fspreck-indiscale](https://discourse.julialang.org/u/fspreck-indiscale)\
**Replies:** 4\
**Last updated:** [September 23, 2021, 7:34am UTC](https://discourse.julialang.org/t/setup-and-teardown-in-test-module/68589 "2021-09-23T07:34:26Z")

</div>

Hello everyone, I’m still quite new to Julia, so please excuse me if I have missed something obvious here. Is there a way in Test.jl to declare functions that are called before/after every @testset similar to SetUp/Tea…

---

## [Algorithm for generating mathematical equations](https://discourse.julialang.org/t/algorithm-for-generating-mathematical-equations/41661)

<div class="topic-metadata">

**Author:** [@LakshyaKhatri](https://discourse.julialang.org/u/LakshyaKhatri)\
**Replies:** 5\
**Last updated:** [September 23, 2021, 6:36am UTC](https://discourse.julialang.org/t/algorithm-for-generating-mathematical-equations/41661 "2021-09-23T06:36:02Z")

</div>

Hello Everyone, I was reading a paper about DL for Symbolic Mathematics (https://arxiv.org/pdf/1912.01412.pdf). In Section C of the appendix, they have mentioned a few methods for generating mathematical equations: …

---

## [Nice PDF Scrapers for Code](https://discourse.julialang.org/t/nice-pdf-scrapers-for-code/49281)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 12\
**Last updated:** [September 23, 2021, 6:28am UTC](https://discourse.julialang.org/t/nice-pdf-scrapers-for-code/49281 "2021-09-23T06:28:35Z")

</div>

Problem statement: Have a \*.pdf of ~1k lines of public domain FORTRAN code from the 80s in a journal article. It’s in a split page format, with an noticeable slant from someone hand scanning it for digitalization. Want t…

---

## [Markdown best choice for offline READMEs?](https://discourse.julialang.org/t/markdown-best-choice-for-offline-readmes/65959)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 19\
**Last updated:** [September 23, 2021, 5:10am UTC](https://discourse.julialang.org/t/markdown-best-choice-for-offline-readmes/65959 "2021-09-23T05:10:10Z")

</div>

TLDR: I was introduced to Markdown on this forum. I think it works well here and on GitHub, but I am wondering how convenient it is for general-purpose offline use. I like to include a README.txt inside any folders that…

---

## [Variable gets updated without even being referenced. Advice on debugging this](https://discourse.julialang.org/t/variable-gets-updated-without-even-being-referenced-advice-on-debugging-this/68612)

<div class="topic-metadata">

**Author:** [@Sudhanshu\_Mishra](https://discourse.julialang.org/u/Sudhanshu_Mishra)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 4:45am UTC](https://discourse.julialang.org/t/variable-gets-updated-without-even-being-referenced-advice-on-debugging-this/68612 "2021-09-23T04:45:27Z")

</div>

This is a code for the function lyapunovs \[link attached\] in ChaosTools.jl . The code below is a bit modified as I am using r=\[1.0,1.0\] here instead of r=copy(get\_state(pinteg,2) for debugging purposes. I have tried r=d…

---

## [How to debug JuMP code (not debug model feasiblity, etc.) in VScode](https://discourse.julialang.org/t/how-to-debug-jump-code-not-debug-model-feasiblity-etc-in-vscode/68613)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 4:17am UTC](https://discourse.julialang.org/t/how-to-debug-jump-code-not-debug-model-feasiblity-etc-in-vscode/68613 "2021-09-23T04:17:32Z")

</div>

Hi, all When the jump macro is included in my code, the debug using vscode always jumps to some internal functions. What I want to ask is how to step through these codes without jumping into places where no breakpoints…

---

## ["Unget" char from stream](https://discourse.julialang.org/t/unget-char-from-stream/68588)

<div class="topic-metadata">

**Author:** [@ess3sq](https://discourse.julialang.org/u/ess3sq)\
**Replies:** 7\
**Last updated:** [September 23, 2021, 12:42am UTC](https://discourse.julialang.org/t/unget-char-from-stream/68588 "2021-09-23T00:42:44Z")

</div>

Hello there, I was wondering whether the Julia IO API provided a built-in facility for ungetting characters from an ::IO stream in a way analogous to C’s ungetc() function. If not I am aware I can implement it by cachi…

---

## [Interpolate 3d grid of datapoints](https://discourse.julialang.org/t/interpolate-3d-grid-of-datapoints/68485)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 8:34pm UTC](https://discourse.julialang.org/t/interpolate-3d-grid-of-datapoints/68485 "2021-09-22T20:34:22Z")

</div>

Hi, Is there any package in Julia for interpolating a 3d grid of datapoints (a typical cloud of non-regularly spaced datapoints)? I need it for plotting purposes only and I do not have a specific algorithm in mind. Tha…

---

## [Meaning of outputs of Profile.print()](https://discourse.julialang.org/t/meaning-of-outputs-of-profile-print/68609)

<div class="topic-metadata">

**Author:** [@ZHEN\_LIN](https://discourse.julialang.org/u/ZHEN_LIN)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 11:23pm UTC](https://discourse.julialang.org/t/meaning-of-outputs-of-profile-print/68609 "2021-09-22T23:23:12Z")

</div>

In Julia 1.4.2, the output of Profile.print() has the following columns: Overhead ╎ \[+additional indent\] Count File:Line; Function This looks different from the official documentation, which does not have the Overhead …

---

## [Can not install PyCall and PyPlot on HPC cluster](https://discourse.julialang.org/t/can-not-install-pycall-and-pyplot-on-hpc-cluster/68466)

<div class="topic-metadata">

**Author:** [@fksayaci](https://discourse.julialang.org/u/fksayaci)\
**Replies:** 16\
**Last updated:** [September 22, 2021, 9:44pm UTC](https://discourse.julialang.org/t/can-not-install-pycall-and-pyplot-on-hpc-cluster/68466 "2021-09-22T21:44:35Z")

</div>

Hi All, I am using a high-performance computing cluster to solve my optimization problem. After I get the results, I need to plot results on bar plots, line plots, and stack graphs. I am doing these successfully on my l…

---

## [Replacing only the data layer of points in a Makie figure with protrusions](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 6\
**Last updated:** [September 22, 2021, 7:59pm UTC](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478 "2021-09-22T19:59:21Z")

</div>

I have a plot that requires a lot of code to create protrusions. So, it would be nice to just replace the data layer of the plot without messing with the protrusions. Is this possible? I have example code here: using…

---

## [One-sided MPI with Subarrays](https://discourse.julialang.org/t/one-sided-mpi-with-subarrays/63937)

<div class="topic-metadata">

**Author:** [@smillerc](https://discourse.julialang.org/u/smillerc)\
**Replies:** 4\
**Last updated:** [September 22, 2021, 7:13pm UTC](https://discourse.julialang.org/t/one-sided-mpi-with-subarrays/63937 "2021-09-22T19:13:05Z")

</div>

I’m having some issues getting a one-sided subarray MPI.Put to work. I’m trying to do a 2d halo exchange with an arbitrary number of halo cells. I’d like to move the jlo\_edge subarray on processor 1 to the jhi\_halo\_edge …

---

## [Inline macro](https://discourse.julialang.org/t/inline-macro/68595)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 7:11pm UTC](https://discourse.julialang.org/t/inline-macro/68595 "2021-09-22T19:11:35Z")

</div>

When should I use the @inline macro to optimize performance?

---

## [Shared C dependencies and artifacts](https://discourse.julialang.org/t/shared-c-dependencies-and-artifacts/68525)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 6:52pm UTC](https://discourse.julialang.org/t/shared-c-dependencies-and-artifacts/68525 "2021-09-22T18:52:21Z")

</div>

I want to create julia bindings to onnxruntime, see ONNXRunTime.jl. Things already work on my local machine CPU+GPU. However, I don’t quite know how to package it so GPU also works anywhere. Here is what I did so far and…

---

## [Slow compiling of many AxisArrays](https://discourse.julialang.org/t/slow-compiling-of-many-axisarrays/68596)

<div class="topic-metadata">

**Author:** [@klowrey](https://discourse.julialang.org/u/klowrey)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 6:16pm UTC](https://discourse.julialang.org/t/slow-compiling-of-many-axisarrays/68596 "2021-09-22T18:16:59Z")

</div>

I’ve scratched my head on this for a few days and suspect there may not be a good solution but wanted the community’s input. We have a package that wraps a C-library MuJoCo and as added feature of using it through Julia,…

---

## [Text file data plotting](https://discourse.julialang.org/t/text-file-data-plotting/68535)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 14\
**Last updated:** [September 22, 2021, 5:06pm UTC](https://discourse.julialang.org/t/text-file-data-plotting/68535 "2021-09-22T17:06:15Z")

</div>

how to plot the data of text file . i want to plot one column vs other

---

## [Flux.gradient returns dict of param and Nothing](https://discourse.julialang.org/t/flux-gradient-returns-dict-of-param-and-nothing/68457)

<div class="topic-metadata">

**Author:** [@sanderbboisen](https://discourse.julialang.org/u/sanderbboisen)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 4:09pm UTC](https://discourse.julialang.org/t/flux-gradient-returns-dict-of-param-and-nothing/68457 "2021-09-22T16:09:26Z")

</div>

Hi everyone, I am fairly new to Julia and Flux and I am trying to implement a WGAN-variant that I have implemented in Keras before. Full code for the issue can be found here. I keep getting gradients that consist of pa…

---

## [Empty figure saved in Plots](https://discourse.julialang.org/t/empty-figure-saved-in-plots/68585)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 4\
**Last updated:** [September 22, 2021, 3:50pm UTC](https://discourse.julialang.org/t/empty-figure-saved-in-plots/68585 "2021-09-22T15:50:20Z")

</div>

I have an issue when trying to save pngs from subplots in a loop using the GR backend. Plots.jl v1.22.1 GR v0.59.0 using Plots, Measures x = 1:10 y = 1:10 l = @layout \[a{0.01h}; grid(2,1)\] const ax = fill(plot(),3,…

---

## [Inorequals](https://discourse.julialang.org/t/inorequals/68577)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 3:27pm UTC](https://discourse.julialang.org/t/inorequals/68577 "2021-09-22T15:27:25Z")

</div>

A fairly common pattern for me is to have a part of a function depend on what amounts to flags: using Plots function f(x; extras=\[\]) pl = plot(x) if :v in extras vline!(pl, 0) end if :h in extra…

---

## [BlackBoxOptim hangs with multi-threaded optimization](https://discourse.julialang.org/t/blackboxoptim-hangs-with-multi-threaded-optimization/68454)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 2:54pm UTC](https://discourse.julialang.org/t/blackboxoptim-hangs-with-multi-threaded-optimization/68454 "2021-09-22T14:54:28Z")

</div>

Hi everyone, I had tried using BlackBoxOptim.jl for a parameter estimation problem, following this tutorial. In particular, I have a rather slow intermediate ODE system to solve which does not benefit from multithreadin…

---

## [Store a zero in an sparse matrix](https://discourse.julialang.org/t/store-a-zero-in-an-sparse-matrix/68515)

<div class="topic-metadata">

**Author:** [@carlomontec](https://discourse.julialang.org/u/carlomontec)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 1:59pm UTC](https://discourse.julialang.org/t/store-a-zero-in-an-sparse-matrix/68515 "2021-09-22T13:59:12Z")

</div>

Hello, do you know how can I store a zero in an sparse matrix? it seems that it automatically neglects the zero allocation: A\[1,1\]=0.0 is neglected. I know is far from efficient, but the need of it is to debug and repli…

---

## [Iterating on bits](https://discourse.julialang.org/t/iterating-on-bits/6088)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 17\
**Last updated:** [September 22, 2021, 1:43pm UTC](https://discourse.julialang.org/t/iterating-on-bits/6088 "2021-09-22T13:43:13Z")

</div>

How do I iterate over the bits of a UInt8, UInt16 or UInt64? I tried julia\> for x in digits(Bool, UInt16(17),2) ... It works but it creates an intermediate array, I am not sure this is how it should be done.

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

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