# Latest

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

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

**Page:** 808

---

## [Export from REPL history to julia script?](https://discourse.julialang.org/t/export-from-repl-history-to-julia-script/59399)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 10\
**Last updated:** [January 19, 2023, 10:12pm UTC](https://discourse.julialang.org/t/export-from-repl-history-to-julia-script/59399 "2023-01-19T22:12:23Z")

</div>

Is it possible to save the REPL history as a valid julia script? Something like: \> a = 3 3 \> b = 5 5 \> a + b 8 \> REPL.save("myscript.jl") myscript.jl: # REPL history export # Date: 16.04.2021 a = 3 # 3 b = 5 # 5 a +…

---

## [New: FastParzenWindows.jl](https://discourse.julialang.org/t/new-fastparzenwindows-jl/93231)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 9:27pm UTC](https://discourse.julialang.org/t/new-fastparzenwindows-jl/93231 "2023-01-19T21:27:37Z")

</div>

Hello everyone, I have finally managed to sufficiently polish a package so that it can hopefully be useful to others. I have now registered it with the general registry. The package can be found at: The package imple…

---

## [Copy vs view of DataFrame column?](https://discourse.julialang.org/t/copy-vs-view-of-dataframe-column/93182)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 16\
**Last updated:** [January 19, 2023, 8:07pm UTC](https://discourse.julialang.org/t/copy-vs-view-of-dataframe-column/93182 "2023-01-19T20:07:05Z")

</div>

Hello, do you know an example in which a copy, df\[:,:a\], should be used instead of a view with df\[!,:a\]? Thanks !

---

## [Error in example: Parameter Estimation on Highly Stiff Systems](https://discourse.julialang.org/t/error-in-example-parameter-estimation-on-highly-stiff-systems/93229)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 0\
**Last updated:** [January 19, 2023, 7:48pm UTC](https://discourse.julialang.org/t/error-in-example-parameter-estimation-on-highly-stiff-systems/93229 "2023-01-19T19:48:41Z")

</div>

The example provided at Parameter Estimation on Highly Stiff Systems · SciMLSensitivity.jl, does not seem to be working with Optimization.jl but works fine with DiffEqFlux.sciml\_train. I am getting the following error wi…

---

## [How to handle an array of structures when embedding Julia in C](https://discourse.julialang.org/t/how-to-handle-an-array-of-structures-when-embedding-julia-in-c/18661)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 7:07pm UTC](https://discourse.julialang.org/t/how-to-handle-an-array-of-structures-when-embedding-julia-in-c/18661 "2023-01-19T19:07:53Z")

</div>

Hi! I have a function that returns an array of a structure. This function is called inside a C++ software using this code: jl\_value\_t \*filename = jl\_eval\_string("\\"amz1.tle\\""); jl\_array\_t \*array\_tle = (jl\_arr…

---

## [Continuous provision of current logs](https://discourse.julialang.org/t/continuous-provision-of-current-logs/93143)

<div class="topic-metadata">

**Author:** [@max](https://discourse.julialang.org/u/max)\
**Replies:** 5\
**Last updated:** [January 19, 2023, 6:38pm UTC](https://discourse.julialang.org/t/continuous-provision-of-current-logs/93143 "2023-01-19T18:38:43Z")

</div>

Hello all, I want to continuously provide the logs in a cloud instance that are the output in a long running processes (optimization problems). For this I tried to run asynchronously and also on a separate thread the fu…

---

## [Flux + Automatic Differentiation](https://discourse.julialang.org/t/flux-automatic-differentiation/93224)

<div class="topic-metadata">

**Author:** [@parf](https://discourse.julialang.org/u/parf)\
**Replies:** 3\
**Last updated:** [January 19, 2023, 6:04pm UTC](https://discourse.julialang.org/t/flux-automatic-differentiation/93224 "2023-01-19T18:04:45Z")

</div>

Hi! I am trying to construct PINN to solve 1D Burgers equation in Flux.jl without using NeuralPDE.jl. The velocity field u(t,x) is defined by the neural net and I have to calculate the gradients with respect to t and x i…

---

## [Plotly: Add Slider to Vector of Heatmaps](https://discourse.julialang.org/t/plotly-add-slider-to-vector-of-heatmaps/93211)

<div class="topic-metadata">

**Author:** [@phiG](https://discourse.julialang.org/u/phiG)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 5:53pm UTC](https://discourse.julialang.org/t/plotly-add-slider-to-vector-of-heatmaps/93211 "2023-01-19T17:53:55Z")

</div>

Hello everyone, this is my first post here so I hope I don’t ask something too trivial. I have a vector of matrices, each of same size, and I am able to plot a single one of them as a heatmap with PlotlyJS by accessing…

---

## [Research Scientist / Programmer in Quantum Information Science](https://discourse.julialang.org/t/research-scientist-programmer-in-quantum-information-science/93092)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 1\
**Last updated:** [January 19, 2023, 5:46pm UTC](https://discourse.julialang.org/t/research-scientist-programmer-in-quantum-information-science/93092 "2023-01-19T17:46:27Z")

</div>

The NSF Center for Quantum Networks and UMass Amherst are looking to hire a researcher with excellent Julia skills to help in the development of simulation/control/optimization tools for quantum hardware and quantum netw…

---

## [Finding periodic orbits with BifurcationKit.jl](https://discourse.julialang.org/t/finding-periodic-orbits-with-bifurcationkit-jl/93085)

<div class="topic-metadata">

**Author:** [@rusandris](https://discourse.julialang.org/u/rusandris)\
**Replies:** 5\
**Last updated:** [January 19, 2023, 5:35pm UTC](https://discourse.julialang.org/t/finding-periodic-orbits-with-bifurcationkit-jl/93085 "2023-01-19T17:35:02Z")

</div>

Hi everyone! Currently I’m working on a problem where I have non-standard Hopf-bifurcation points (Hopf-Hopf or degenerate Hopf) which get an “nd” (not documented) mark on my diagrams. Since these are not identified as …

---

## [LCOV -\> Cobertura format conversion](https://discourse.julialang.org/t/lcov-cobertura-format-conversion/93200)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 5:08pm UTC](https://discourse.julialang.org/t/lcov-cobertura-format-conversion/93200 "2023-01-19T17:08:27Z")

</div>

Hi all, I’ve been trying to figure how to show coverage results on a GitLab hosted project generated using Coverage.jl. I found that LocalCoverage.jl provides a way to convert the LCOV file to a Cobertura XML file reada…

---

## [Constraint declaration](https://discourse.julialang.org/t/constraint-declaration/92683)

<div class="topic-metadata">

**Author:** [@anonymus12](https://discourse.julialang.org/u/anonymus12)\
**Replies:** 8\
**Last updated:** [January 19, 2023, 4:51pm UTC](https://discourse.julialang.org/t/constraint-declaration/92683 "2023-01-19T16:51:33Z")

</div>

i want to build an MEXCLP using Julia/Jump in VS Code. Everything is working fine with the declaration except for this particular constraint. I tried this declaration: @constraint(model, c1, sum(x\[j\] for j in W\[i\]) \>=…

---

## [How to tell ForwardDiff what i want it to do?](https://discourse.julialang.org/t/how-to-tell-forwarddiff-what-i-want-it-to-do/93167)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 8\
**Last updated:** [January 19, 2023, 4:13pm UTC](https://discourse.julialang.org/t/how-to-tell-forwarddiff-what-i-want-it-to-do/93167 "2023-01-19T16:13:48Z")

</div>

Hey, This is a follow up to this previous post where I was looking for the right derivatives of the gamma\_inc function. I found them. Now i am trying to tell ForwardDiff to use them… with issues. The function has two a…

---

## [How to profile Zygote gradients](https://discourse.julialang.org/t/how-to-profile-zygote-gradients/90398)

<div class="topic-metadata">

**Author:** [@renatobellotti](https://discourse.julialang.org/u/renatobellotti)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 3:43pm UTC](https://discourse.julialang.org/t/how-to-profile-zygote-gradients/90398 "2023-01-19T15:43:46Z")

</div>

Hi, I’m currently running an expensive optimisation with a code that uses Zygote for automatic differentiation. The gradient computation seems to dominate the computational cost. Is it possible to profile which parts of…

---

## [How to convert wrapped matrix type of KeyedArray](https://discourse.julialang.org/t/how-to-convert-wrapped-matrix-type-of-keyedarray/93149)

<div class="topic-metadata">

**Author:** [@jtackm](https://discourse.julialang.org/u/jtackm)\
**Replies:** 3\
**Last updated:** [January 19, 2023, 3:09pm UTC](https://discourse.julialang.org/t/how-to-convert-wrapped-matrix-type-of-keyedarray/93149 "2023-01-19T15:09:18Z")

</div>

Say I have a KeyedArray wrapping a dense matrix: using AxisKeys, Random n = 100 A = KeyedArray(rand(0:1, n, n), dim1=\["a$i" for i in 1:n\], dim2=\["b$i" for i in 1:n\]) 2-dimensional KeyedArray(NamedDimsArray(...)) with k…

---

## [Pkg.update in Julia 1.5 uses github](https://discourse.julialang.org/t/pkg-update-in-julia-1-5-uses-github/44331)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 5\
**Last updated:** [January 19, 2023, 2:43pm UTC](https://discourse.julialang.org/t/pkg-update-in-julia-1-5-uses-github/44331 "2023-01-19T14:43:36Z")

</div>

When I Pkg.update in Julia 1.5, Pkg seems to still pull from github: (@v1.5) pkg\> up Updating registry at \`~/.julia/registries/General\` Updating git-repo \`https://github.com/JuliaRegistries/General\` Updating re…

---

## [Encouraging clearer questions on discourse?](https://discourse.julialang.org/t/encouraging-clearer-questions-on-discourse/93187)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 8\
**Last updated:** [January 19, 2023, 2:41pm UTC](https://discourse.julialang.org/t/encouraging-clearer-questions-on-discourse/93187 "2023-01-19T14:41:14Z")

</div>

I think that perhaps the responses to questions like this one are too “friendly” here, on the Julia Discourse. FWIW on Stack Overflow/Stack Exchange a vague question like this one would receive comments asking for clarif…

---

## [Converting entire custom structure from cpu to gpu and viceversa](https://discourse.julialang.org/t/converting-entire-custom-structure-from-cpu-to-gpu-and-viceversa/93203)

<div class="topic-metadata">

**Author:** [@carlogalli](https://discourse.julialang.org/u/carlogalli)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 2:40pm UTC](https://discourse.julialang.org/t/converting-entire-custom-structure-from-cpu-to-gpu-and-viceversa/93203 "2023-01-19T14:40:56Z")

</div>

Hi! I am looking for a good way to convert a custom structure of Arrays to CuArrays and viceversa. I suspect the answer is related to them and to this topic, but I am not well versed in the usage of convert and adapt so…

---

## ["inline" variable in closure](https://discourse.julialang.org/t/inline-variable-in-closure/93213)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 2:22pm UTC](https://discourse.julialang.org/t/inline-variable-in-closure/93213 "2023-01-19T14:22:25Z")

</div>

I have a some function depending on an independent variable and some general parameters. In a simplified version f(a, x) = a + x where a is some complicated struct of parameters which I ideally would like to type only …

---

## [Why doesn't this "include-guard-ish" code evaluate in the correct order?](https://discourse.julialang.org/t/why-doesnt-this-include-guard-ish-code-evaluate-in-the-correct-order/93108)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 9\
**Last updated:** [January 19, 2023, 1:51pm UTC](https://discourse.julialang.org/t/why-doesnt-this-include-guard-ish-code-evaluate-in-the-correct-order/93108 "2023-01-19T13:51:17Z")

</div>

Hi all! So I was trying to implement a mechanism similar to a very simple C-like include guard: # file my\_script.jl if @isdefined my\_script\_provided print( "my\_script.jl already loaded") else # my code here …

---

## [Summing dataFrame by index over rows](https://discourse.julialang.org/t/summing-dataframe-by-index-over-rows/93205)

<div class="topic-metadata">

**Author:** [@ditfurth](https://discourse.julialang.org/u/ditfurth)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 1:40pm UTC](https://discourse.julialang.org/t/summing-dataframe-by-index-over-rows/93205 "2023-01-19T13:40:50Z")

</div>

Hi all, I am trying to sum a dataframe by group ‘x1’. This works as follows: numcols = columns to be summed summed\_df = combine(DataFrames.groupby(df, :x1), numcols .=\> sum .=\> numcols) However, I am trying to make 2…

---

## [How do I import a module to another program](https://discourse.julialang.org/t/how-do-i-import-a-module-to-another-program/93197)

<div class="topic-metadata">

**Author:** [@dmtrung14](https://discourse.julialang.org/u/dmtrung14)\
**Replies:** 1\
**Last updated:** [January 19, 2023, 10:43am UTC](https://discourse.julialang.org/t/how-do-i-import-a-module-to-another-program/93197 "2023-01-19T10:43:26Z")

</div>

I am trying to import a module from another file to my program (i.e. my program and my module is not in the same folder) Can I do that or do I have to install my own package? If so, how can I do that? Thanks

---

## [Plot of Circle Revolution Around x and y axis with PyCall and PyPlot](https://discourse.julialang.org/t/plot-of-circle-revolution-around-x-and-y-axis-with-pycall-and-pyplot/93204)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [January 19, 2023, 10:30am UTC](https://discourse.julialang.org/t/plot-of-circle-revolution-around-x-and-y-axis-with-pycall-and-pyplot/93204 "2023-01-19T10:30:28Z")

</div>

Hi all, I have this code in Python, using PyCall. The question is, are the revolution around the x and y axis correct (the 3-dimension object)? It looks not convincing for me: # Calculate the surface area of y = sqrt…

---

## [Removing row from GridLayout](https://discourse.julialang.org/t/removing-row-from-gridlayout/93196)

<div class="topic-metadata">

**Author:** [@Daniel\_Lewis](https://discourse.julialang.org/u/Daniel_Lewis)\
**Replies:** 5\
**Last updated:** [January 19, 2023, 9:49am UTC](https://discourse.julialang.org/t/removing-row-from-gridlayout/93196 "2023-01-19T09:49:35Z")

</div>

hi, I’m trying to create an interactive plot using GLMakie, one of the thing I’m doing is adding menus from which the user can choose the data to plot. Here is a simplified code which create the menus GridLayout: usin…

---

## [Double integration with hcubature slower than nested quadgk](https://discourse.julialang.org/t/double-integration-with-hcubature-slower-than-nested-quadgk/89943)

<div class="topic-metadata">

**Author:** [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Replies:** 8\
**Last updated:** [January 19, 2023, 9:27am UTC](https://discourse.julialang.org/t/double-integration-with-hcubature-slower-than-nested-quadgk/89943 "2023-01-19T09:27:34Z")

</div>

It is probably related to this topic this topic. I find the performances of HCubature.jl not intuitive. Lets take the following function as a test case for our MWE: internal(k,x) = exp(-x^2)\*sin(k\*x)^2 I tried perfor…

---

## [Warnings on assigning marker size in Plots.jl to a variable](https://discourse.julialang.org/t/warnings-on-assigning-marker-size-in-plots-jl-to-a-variable/93067)

<div class="topic-metadata">

**Author:** [@arinbasu1](https://discourse.julialang.org/u/arinbasu1)\
**Replies:** 7\
**Last updated:** [January 19, 2023, 8:36am UTC](https://discourse.julialang.org/t/warnings-on-assigning-marker-size-in-plots-jl-to-a-variable/93067 "2023-01-19T08:36:06Z")

</div>

Hi All, I was trying to create a forestplot using the following code: # plot author on y axis # tE on x axis, # add whiskers function forestplot(df, author, tE, seTE, wt) wt = df.wt plot(df.tE, df.author, serie…

---

## [What is the easiest way to create a vector with elements c1, c2, c3, ..., c1000](https://discourse.julialang.org/t/what-is-the-easiest-way-to-create-a-vector-with-elements-c1-c2-c3-c1000/93180)

<div class="topic-metadata">

**Author:** [@Alex\_ricci](https://discourse.julialang.org/u/Alex_ricci)\
**Replies:** 6\
**Last updated:** [January 19, 2023, 8:14am UTC](https://discourse.julialang.org/t/what-is-the-easiest-way-to-create-a-vector-with-elements-c1-c2-c3-c1000/93180 "2023-01-19T08:14:59Z")

</div>

What is the easiest way to create a vector with elements c1, c2, c3, …, c1000

---

## [Can \`findmin\` use a counter if \`keys\` is not defined for an iterator?](https://discourse.julialang.org/t/can-findmin-use-a-counter-if-keys-is-not-defined-for-an-iterator/93069)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 12\
**Last updated:** [January 19, 2023, 7:45am UTC](https://discourse.julialang.org/t/can-findmin-use-a-counter-if-keys-is-not-defined-for-an-iterator/93069 "2023-01-19T07:45:30Z")

</div>

I want the index for which an iterator itr is minimized. I had expected \_, ind = findmin(f, itr) to return the index, but this doesn’t work if keys(itr) is not defined. What does work is: ind, \_ = argmin(((ind, v),) -\>…

---

## [Code organisation: Move functions to the end of the code](https://discourse.julialang.org/t/code-organisation-move-functions-to-the-end-of-the-code/93139)

<div class="topic-metadata">

**Author:** [@ceysa75](https://discourse.julialang.org/u/ceysa75)\
**Replies:** 3\
**Last updated:** [January 19, 2023, 7:13am UTC](https://discourse.julialang.org/t/code-organisation-move-functions-to-the-end-of-the-code/93139 "2023-01-19T07:13:11Z")

</div>

Hi all, I wonder if I aim to code based on a single \*.jl (without any external modules etc) if I could move the function definitions at the very low end of my script. Coming from Fortan I used to work like that which ma…

---

## [Failure to enforce boundary conditions with NeuralPDE.jl (for a system with mixed partial derivatives)](https://discourse.julialang.org/t/failure-to-enforce-boundary-conditions-with-neuralpde-jl-for-a-system-with-mixed-partial-derivatives/93178)

<div class="topic-metadata">

**Author:** [@gianmariomanca](https://discourse.julialang.org/u/gianmariomanca)\
**Replies:** 0\
**Last updated:** [January 18, 2023, 6:37pm UTC](https://discourse.julialang.org/t/failure-to-enforce-boundary-conditions-with-neuralpde-jl-for-a-system-with-mixed-partial-derivatives/93178 "2023-01-18T18:37:19Z")

</div>

I’m trying to use NeuralPDE.jl to solve a simple system of PDEs and it seems to completely ignore the boundary conditions. Can someone suggest a modification of the following code that will shows the correct behavior? u…

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

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