# Latest

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

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

**Page:** 938

---

## [Why doesn't islowercase work on String?](https://discourse.julialang.org/t/why-doesnt-islowercase-work-on-string/86173)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 14\
**Last updated:** [August 31, 2022, 3:51pm UTC](https://discourse.julialang.org/t/why-doesnt-islowercase-work-on-string/86173 "2022-08-31T15:51:14Z")

</div>

Why doesn’t islowercase work on String? It only works on characters.

---

## [Plot exponential fit](https://discourse.julialang.org/t/plot-exponential-fit/86455)

<div class="topic-metadata">

**Author:** [@Mahmoud](https://discourse.julialang.org/u/Mahmoud)\
**Replies:** 13\
**Last updated:** [August 31, 2022, 3:50pm UTC](https://discourse.julialang.org/t/plot-exponential-fit/86455 "2022-08-31T15:50:44Z")

</div>

The first image is generated using julia the second one is generated using python How to make the first one like the second one ? how to include the exponential fit line and start the axis from 1 ??

---

## [NeuralPDE cubature issue](https://discourse.julialang.org/t/neuralpde-cubature-issue/84427)

<div class="topic-metadata">

**Author:** [@marcofrancis](https://discourse.julialang.org/u/marcofrancis)\
**Replies:** 5\
**Last updated:** [August 31, 2022, 3:34pm UTC](https://discourse.julialang.org/t/neuralpde-cubature-issue/84427 "2022-08-31T15:34:07Z")

</div>

Hi, I’m moving my first steps with NeuralPDE.jl and I came up with this issue. I want to solve a fairly simple PDE: h(ω) = exp.(-(γ-1)\*ω) μω = λ\*(ω-ωb) σω = σ eq = 1/100\*Dτ(f(τ,ω)) ~ 0.5\*σω^2\*Dωω(f(τ,ω)) - μω\*Dω(f(τ,ω…

---

## [JuliaFormatter whitespace in keyword arguments](https://discourse.julialang.org/t/juliaformatter-whitespace-in-keyword-arguments/86596)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 8\
**Last updated:** [August 31, 2022, 2:49pm UTC](https://discourse.julialang.org/t/juliaformatter-whitespace-in-keyword-arguments/86596 "2022-08-31T14:49:47Z")

</div>

I was using JuliaFormatter through the Julia VSCode extension and I noticed that the default behaviour seems to be to remove the whitespaces. However, in the README file in Github it says that the default behaviour is t…

---

## [Updated Makie 0.17.13 Can't turn off the decorations](https://discourse.julialang.org/t/updated-makie-0-17-13-cant-turn-off-the-decorations/86232)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 4\
**Last updated:** [August 31, 2022, 2:07pm UTC](https://discourse.julialang.org/t/updated-makie-0-17-13-cant-turn-off-the-decorations/86232 "2022-08-31T14:07:24Z")

</div>

I have some old Makie GUI code I wrote a year or more ago. It used LScene and all that before the figure stuff was around. Now after the update, I have my decorations and splines showing up in my 3D plots, but since I …

---

## [OrdinaryDiffEq fails to precompile in julia 1.7.2](https://discourse.julialang.org/t/ordinarydiffeq-fails-to-precompile-in-julia-1-7-2/77337)

<div class="topic-metadata">

**Author:** [@jackblyle](https://discourse.julialang.org/u/jackblyle)\
**Replies:** 11\
**Last updated:** [August 31, 2022, 1:39pm UTC](https://discourse.julialang.org/t/ordinarydiffeq-fails-to-precompile-in-julia-1-7-2/77337 "2022-08-31T13:39:44Z")

</div>

I am suddenly getting an error when precompiling the OrdinaryDiffEq package. I originally ran into it in a jupyter-lab notebook (ipynb) that worked a few days ago. I then tried creating a new environment and I still ge…

---

## [Understanding how subtypes work within NamedTuple](https://discourse.julialang.org/t/understanding-how-subtypes-work-within-namedtuple/86442)

<div class="topic-metadata">

**Author:** [@adow031](https://discourse.julialang.org/u/adow031)\
**Replies:** 8\
**Last updated:** [August 31, 2022, 12:06pm UTC](https://discourse.julialang.org/t/understanding-how-subtypes-work-within-namedtuple/86442 "2022-08-31T12:06:45Z")

</div>

I’ve been using the Real type in some of my functions that take direct user-input, to avoid spurious errors around the use of Int or Float64; however, I encountered an issue when trying to do this with an argument to a f…

---

## [How to save nonlinear JuMP model to file?](https://discourse.julialang.org/t/how-to-save-nonlinear-jump-model-to-file/86322)

<div class="topic-metadata">

**Author:** [@a6a3uh](https://discourse.julialang.org/u/a6a3uh)\
**Replies:** 21\
**Last updated:** [August 31, 2022, 11:13am UTC](https://discourse.julialang.org/t/how-to-save-nonlinear-jump-model-to-file/86322 "2022-08-31T11:13:37Z")

</div>

Is it unsupported feature yet? Ivoking write\_to\_file I get: ERROR: MathOptInterface.UnsupportedAttribute{MathOptInterface.NLPBlock}: Attribute MathOptInterface.NLPBlock() is not supported by the model. Could someone p…

---

## [Plotting with independent series](https://discourse.julialang.org/t/plotting-with-independent-series/86576)

<div class="topic-metadata">

**Author:** [@catzilla](https://discourse.julialang.org/u/catzilla)\
**Replies:** 3\
**Last updated:** [August 31, 2022, 9:46am UTC](https://discourse.julialang.org/t/plotting-with-independent-series/86576 "2022-08-31T09:46:06Z")

</div>

How do you modify series attributes independently? For example, to plot data \[x,y, color, shape\], I would like to plot in 2D, with each data point given its corresponding color and shape. I have tried @df df scatter(:…

---

## [Error : no method matching getindex](https://discourse.julialang.org/t/error-no-method-matching-getindex/86537)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 4\
**Last updated:** [August 31, 2022, 10:33am UTC](https://discourse.julialang.org/t/error-no-method-matching-getindex/86537 "2022-08-31T10:33:44Z")

</div>

I have my code displaying the objective function with the constraints but the final answer is not reflecting. I always get the error " No method matching getindex". I look through the work severally but am not able to r…

---

## [Add colum to dataframe with values based on various conditions](https://discourse.julialang.org/t/add-colum-to-dataframe-with-values-based-on-various-conditions/86565)

<div class="topic-metadata">

**Author:** [@daharn](https://discourse.julialang.org/u/daharn)\
**Replies:** 5\
**Last updated:** [August 31, 2022, 9:19am UTC](https://discourse.julialang.org/t/add-colum-to-dataframe-with-values-based-on-various-conditions/86565 "2022-08-31T09:19:13Z")

</div>

I have the following structure: A DataFrame containing parameters and results from numeric simulations. A Vector{Dict} object. Each Dict contains keys equivalent to some of the columns of the DataFrame and the correspo…

---

## [How to delete range of values before and after a value in a column based on a condition from another column in a DataFrame?](https://discourse.julialang.org/t/how-to-delete-range-of-values-before-and-after-a-value-in-a-column-based-on-a-condition-from-another-column-in-a-dataframe/86577)

<div class="topic-metadata">

**Author:** [@akhibovska](https://discourse.julialang.org/u/akhibovska)\
**Replies:** 1\
**Last updated:** [August 31, 2022, 8:19am UTC](https://discourse.julialang.org/t/how-to-delete-range-of-values-before-and-after-a-value-in-a-column-based-on-a-condition-from-another-column-in-a-dataframe/86577 "2022-08-31T08:19:16Z")

</div>

Hi everyone, I have a data frame where one column, “Blink” indicates with 1 if blink was present during a recording and with 0 if it was not. My column “Value” stores the actual data I am using. I successfully filtered …

---

## [Response to Pkg.jl and Julia Environments for Beginners by Jules](https://discourse.julialang.org/t/response-to-pkg-jl-and-julia-environments-for-beginners-by-jules/86552)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 10\
**Last updated:** [August 31, 2022, 7:36am UTC](https://discourse.julialang.org/t/response-to-pkg-jl-and-julia-environments-for-beginners-by-jules/86552 "2022-08-31T07:36:24Z")

</div>

jkrumbiegel.com - Pkg.jl and Julia Environments for Beginners Thank you so much @jules for the great writeup. That clarified a lot for me. Consider adding this as a tutorial to the Pkg documentation. The existing docum…

---

## [Using push! to add a new row of data](https://discourse.julialang.org/t/using-push-to-add-a-new-row-of-data/86519)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 13\
**Last updated:** [August 31, 2022, 7:18am UTC](https://discourse.julialang.org/t/using-push-to-add-a-new-row-of-data/86519 "2022-08-31T07:18:30Z")

</div>

What is the proper way of using push to add rows to an existing matrix? I keep getting errors for the below code: LL = fill(NaN, (0,2)); for j ∈ 1:n #180 for i ∈ 1:m #360 push!(LL, \[X\[i,j\], Y\[i,j\]\]); end…

---

## [Julia and the Game of Go](https://discourse.julialang.org/t/julia-and-the-game-of-go/86454)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 6\
**Last updated:** [August 31, 2022, 7:16am UTC](https://discourse.julialang.org/t/julia-and-the-game-of-go/86454 "2022-08-31T07:16:27Z")

</div>

Once I a while a start a new hobby project in Julia in the vacations. To learn Julia and have so fun and than always forget the most afterwards because I use Python in my day job. :frowning: (I don’t like the forgetting …

---

## [VSCode Debug DataFrames error](https://discourse.julialang.org/t/vscode-debug-dataframes-error/86582)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 1\
**Last updated:** [August 31, 2022, 6:49am UTC](https://discourse.julialang.org/t/vscode-debug-dataframes-error/86582 "2022-08-31T06:49:09Z")

</div>

I have only recently tried to use VSCode Debug features following this debug guide. It stuck at first line of my code. using DataFrames, with error \> Connecting to debugger... Done! ERROR: LoadError: ArgumentError: P…

---

## [HTTP.request closewrite](https://discourse.julialang.org/t/http-request-closewrite/86583)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 6\
**Last updated:** [August 31, 2022, 5:50am UTC](https://discourse.julialang.org/t/http-request-closewrite/86583 "2022-08-31T05:50:31Z")

</div>

Hi, I have an application that makes hundreds of HTTP requests every day for the last 12 months. Today, after upgrading to 1.8.0 I have different behavior that results in a fail. This code is in a loop that call it hu…

---

## [Using Distributed computing in JULIA for UNet](https://discourse.julialang.org/t/using-distributed-computing-in-julia-for-unet/86483)

<div class="topic-metadata">

**Author:** [@momo1](https://discourse.julialang.org/u/momo1)\
**Replies:** 4\
**Last updated:** [August 31, 2022, 5:22am UTC](https://discourse.julialang.org/t/using-distributed-computing-in-julia-for-unet/86483 "2022-08-31T05:22:21Z")

</div>

Hi I have a UNet training for Machine Learning which works on my laptop (14 core) but its extremely slow. I’m trying to explore ways of speeding it up and came across Distributed library. So I’ve only added the follow…

---

## [Any plan for small executable file](https://discourse.julialang.org/t/any-plan-for-small-executable-file/82507)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 17\
**Last updated:** [August 31, 2022, 2:11am UTC](https://discourse.julialang.org/t/any-plan-for-small-executable-file/82507 "2022-08-31T02:11:45Z")

</div>

Hi, I know about PackageCompiler. Thank you for that package, without it , I would have not considered using Julia. I was wondering if there is a plan to have small exectable file that can easily be distributed for fu…

---

## [StatPlots groupedbar order x axis](https://discourse.julialang.org/t/statplots-groupedbar-order-x-axis/13912)

<div class="topic-metadata">

**Author:** [@stelmo](https://discourse.julialang.org/u/stelmo)\
**Replies:** 18\
**Last updated:** [August 30, 2022, 10:00pm UTC](https://discourse.julialang.org/t/statplots-groupedbar-order-x-axis/13912 "2022-08-30T22:00:05Z")

</div>

Hi, Is there a way to order the x-axis bars using groupedbar? Currently it is placing the individual bars alphabetically, but I would like to specify the order manually. I have tried using plot!(xticks=(1:10, labels)), …

---

## [Find the position of a single non-matching character between two strings](https://discourse.julialang.org/t/find-the-position-of-a-single-non-matching-character-between-two-strings/86560)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 27\
**Last updated:** [August 30, 2022, 9:47pm UTC](https://discourse.julialang.org/t/find-the-position-of-a-single-non-matching-character-between-two-strings/86560 "2022-08-30T21:47:40Z")

</div>

To find the position of a single non-matching character between two strings: s1 = "part1\_Z\_part2.txt" s2 = "part1\_Y\_part2.txt" ix = findfirst(\[!=(c\[1\],c\[2\]) for c in zip(s1,s2)\]) Is there a simpler way to write findfi…

---

## [Generically create an instance of \`AA \<: AbstractArray\` with contents 1,2,3](https://discourse.julialang.org/t/generically-create-an-instance-of-aa-abstractarray-with-contents-1-2-3/86570)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 3\
**Last updated:** [August 30, 2022, 8:45pm UTC](https://discourse.julialang.org/t/generically-create-an-instance-of-aa-abstractarray-with-contents-1-2-3/86570 "2022-08-30T20:45:05Z")

</div>

This is a fairly concrete question: the user passes in a type AA \<: AbstractArray and I want to make a concrete instantiation of this type which contains some specified data, e.g. \[1,2,3\]. Here is the best I’ve come up w…

---

## [XML syntax highlighting when printing to terminal?](https://discourse.julialang.org/t/xml-syntax-highlighting-when-printing-to-terminal/86414)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [August 30, 2022, 8:36pm UTC](https://discourse.julialang.org/t/xml-syntax-highlighting-when-printing-to-terminal/86414 "2022-08-30T20:36:05Z")

</div>

I was curious about whether or not there is a way to automatically color format XML statements such as (all grey in terminal): \<simulationdomain\> \<posmin x="default" y="default" z="default"/\> \<posmax x="default" y="…

---

## [How to get correct formatting using EzXML?](https://discourse.julialang.org/t/how-to-get-correct-formatting-using-ezxml/66428)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [August 30, 2022, 8:32pm UTC](https://discourse.julialang.org/t/how-to-get-correct-formatting-using-ezxml/66428 "2022-08-30T20:32:58Z")

</div>

Hi! I am using EzXML trying to make my own custom XML file through julia. I want something that looks like: \<?xml version="1.0" encoding="UTF-8" ?\> \<case\> \<casedef\> \<constantsdef\> \<g…

---

## [Resource usage in versions 1.7.2 and 1.8.0](https://discourse.julialang.org/t/resource-usage-in-versions-1-7-2-and-1-8-0/86111)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 19\
**Last updated:** [August 30, 2022, 7:58pm UTC](https://discourse.julialang.org/t/resource-usage-in-versions-1-7-2-and-1-8-0/86111 "2022-08-30T19:58:54Z")

</div>

Hello everyone. I updated Julia from version 1.7.2 to 1.8.0 and had a surprise: a code that used 2 GB of RAM, now uses 10 GB, and the number of subprocesses (htop) also increased from 8 to 64! Is this normal? I was a bit…

---

## [Package installation error, wrong path?](https://discourse.julialang.org/t/package-installation-error-wrong-path/86567)

<div class="topic-metadata">

**Author:** [@Babou](https://discourse.julialang.org/u/Babou)\
**Replies:** 13\
**Last updated:** [August 30, 2022, 7:49pm UTC](https://discourse.julialang.org/t/package-installation-error-wrong-path/86567 "2022-08-30T19:49:44Z")

</div>

I think I have set up my julia environemnt in a crappy way. When I tried to load a package there was an error that struck me as a path error. (@v1.5) pkg\> add HypothesisTests Installing known registries into \`C:\\User…

---

## [Are julia -p x and addprocs(x) equivalent?](https://discourse.julialang.org/t/are-julia-p-x-and-addprocs-x-equivalent/86554)

<div class="topic-metadata">

**Author:** [@structural](https://discourse.julialang.org/u/structural)\
**Replies:** 1\
**Last updated:** [August 30, 2022, 7:08pm UTC](https://discourse.julialang.org/t/are-julia-p-x-and-addprocs-x-equivalent/86554 "2022-08-30T19:08:52Z")

</div>

I want to use multiple threads on multiple workers. Will the two sets of commands produce equivalent results? export JULIA\_NUM\_THREADS=20 julia addprocs(12) export JULIA\_NUM\_THREADS=20 julia -p 12

---

## [Flux.Dense() =\> format not accepted](https://discourse.julialang.org/t/flux-dense-format-not-accepted/86553)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 2\
**Last updated:** [August 30, 2022, 6:42pm UTC](https://discourse.julialang.org/t/flux-dense-format-not-accepted/86553 "2022-08-30T18:42:00Z")

</div>

Hello, Till recently, I was using the Dense call below with no problems: Flux.Dense( 3920 =\> 10, relu ) At present, under Flux v0.13.5, the following error comes up: ERROR: MethodError: no method matching Dense(::Pa…

---

## [Usage of CUDA.CUFFT.cufftPlanMany](https://discourse.julialang.org/t/usage-of-cuda-cufft-cufftplanmany/86403)

<div class="topic-metadata">

**Author:** [@gerhardu](https://discourse.julialang.org/u/gerhardu)\
**Replies:** 1\
**Last updated:** [August 30, 2022, 6:32pm UTC](https://discourse.julialang.org/t/usage-of-cuda-cufft-cufftplanmany/86403 "2022-08-30T18:32:41Z")

</div>

Hi, I need to calculate approx 600 FFT’s of 3 dimensional arrays (e.g. 128^3). I know how to do this on CPUs and also how to do this sequentially on a GPU. By sequentially I mean that I copy one of the 600 arrays to t…

---

## [Get the value in a column when the according to condition in another column value approximately equal](https://discourse.julialang.org/t/get-the-value-in-a-column-when-the-according-to-condition-in-another-column-value-approximately-equal/86563)

<div class="topic-metadata">

**Author:** [@ayodyas](https://discourse.julialang.org/u/ayodyas)\
**Replies:** 1\
**Last updated:** [August 30, 2022, 5:49pm UTC](https://discourse.julialang.org/t/get-the-value-in-a-column-when-the-according-to-condition-in-another-column-value-approximately-equal/86563 "2022-08-30T17:49:45Z")

</div>

I have a dataframe using DataFrames df1=DataFrame(p1 = \[10, 20, 30,40,50\], p2 = \[50,5, 60,70.2,40\]) I wanted to get the value of column p1, when the value of p2 is approximately equal to my input I have fi…

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

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