# Latest

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

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

**Page:** 1073

---

## [PyCall trouble](https://discourse.julialang.org/t/pycall-trouble/79255)

<div class="topic-metadata">

**Author:** [@dodoplus](https://discourse.julialang.org/u/dodoplus)\
**Replies:** 1\
**Last updated:** [April 9, 2022, 11:39am UTC](https://discourse.julialang.org/t/pycall-trouble/79255 "2022-04-09T11:39:31Z")

</div>

Hi, I want to read text out of a PDF. I know there’s PDFIO, but unfortunately it seems to crash on some PDFs. So: I’d like to use Python’s PyPDF2. However, I ran into a different problem… In Python I can read a page t…

---

## [PGFPlotsX: annotate outside plot area](https://discourse.julialang.org/t/pgfplotsx-annotate-outside-plot-area/58357)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 5\
**Last updated:** [April 9, 2022, 10:47am UTC](https://discourse.julialang.org/t/pgfplotsx-annotate-outside-plot-area/58357 "2022-04-09T10:47:52Z")

</div>

How can I put annotations outside the plotting area of a plot in PGFPlotsX? Example: using Plots pgfplotsx(grid=:false) scatter(rand(5),rand(5),xlim=\[0,1\],ylim=\[0,1\]) annotate!(0.5,0.5,text("inside plot")) annotate!(0,…

---

## [\`PyCall\` throws \`PyImport\_ImportModule\` on continuous integration systems](https://discourse.julialang.org/t/pycall-throws-pyimport-importmodule-on-continuous-integration-systems/79239)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 3\
**Last updated:** [April 9, 2022, 7:36am UTC](https://discourse.julialang.org/t/pycall-throws-pyimport-importmodule-on-continuous-integration-systems/79239 "2022-04-09T07:36:10Z")

</div>

When I am trying to test my packages which use Python packages installed by PyCall.jl on remote continuous integration (CI) systems, sometimes it fails because the package cannot be imported. After an investigation, I th…

---

## [Help optimising Bayesian ODE model with Turing](https://discourse.julialang.org/t/help-optimising-bayesian-ode-model-with-turing/78455)

<div class="topic-metadata">

**Author:** [@spinystellate](https://discourse.julialang.org/u/spinystellate)\
**Replies:** 3\
**Last updated:** [April 9, 2022, 12:11am UTC](https://discourse.julialang.org/t/help-optimising-bayesian-ode-model-with-turing/78455 "2022-04-09T00:11:27Z")

</div>

Hi all I’m working on my first Turing model and am also very new to Julia. I have finally gotten my model to the point of running at all – that is, it failed with an error telling me to increase the number of maxiters a…

---

## [Callback jump MOI interface lazy constraints are not cutting the solution properly](https://discourse.julialang.org/t/callback-jump-moi-interface-lazy-constraints-are-not-cutting-the-solution-properly/79227)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 1\
**Last updated:** [April 8, 2022, 10:50pm UTC](https://discourse.julialang.org/t/callback-jump-moi-interface-lazy-constraints-are-not-cutting-the-solution-properly/79227 "2022-04-08T22:50:50Z")

</div>

Hey there, can anyone please help me? I am trying to solve a combinatorial optimization problem through lazy constraints using Gurobi as Solver. Bellow a code of my presets and variables: model = Model(Gurobi.Optimizer…

---

## [Primer feasibility question - modelling soft tissue behavior using ML](https://discourse.julialang.org/t/primer-feasibility-question-modelling-soft-tissue-behavior-using-ml/76175)

<div class="topic-metadata">

**Author:** [@davide445](https://discourse.julialang.org/u/davide445)\
**Replies:** 13\
**Last updated:** [April 8, 2022, 8:41pm UTC](https://discourse.julialang.org/t/primer-feasibility-question-modelling-soft-tissue-behavior-using-ml/76175 "2022-04-08T20:41:33Z")

</div>

Get interested in Julia since seems crossing many of the themes i’m touching lately: HPC, biophysics, GPGPU, ML, with the goal to create interactive systems. Not a coder, I’m a solution designer that is deepening on dif…

---

## [Custum DataInspector display-value \[Makie\]](https://discourse.julialang.org/t/custum-datainspector-display-value-makie/79235)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [April 8, 2022, 8:24pm UTC](https://discourse.julialang.org/t/custum-datainspector-display-value-makie/79235 "2022-04-08T20:24:13Z")

</div>

I have a scatterplot, showing the time-evolution of some neural networks (x-axis = time) against performance (y-axis = performance). Each network has an ID. It would be fantastic if I could get the network ID (which I wo…

---

## [Syntax: invalid character literal](https://discourse.julialang.org/t/syntax-invalid-character-literal/20936)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 7:12pm UTC](https://discourse.julialang.org/t/syntax-invalid-character-literal/20936 "2022-04-08T19:12:36Z")

</div>

using PyCall @pyimport osmnx as ox @pyimport networkx as nx @pyimport geopandas as gpd @pyimport matplotlib.pyplot as plt @pyimport pandas as pd function getRoadGraph() place\_name = "Beijing, China" graph = ox.graph\_…

---

## [Iteratively compute eigenvalues of non-Hermitian sparse matrix](https://discourse.julialang.org/t/iteratively-compute-eigenvalues-of-non-hermitian-sparse-matrix/79236)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 0\
**Last updated:** [April 8, 2022, 6:58pm UTC](https://discourse.julialang.org/t/iteratively-compute-eigenvalues-of-non-hermitian-sparse-matrix/79236 "2022-04-08T18:58:11Z")

</div>

Let A be a real, non-symmetric, sparse matrix with eigenvalues having real part smaller than or equal to 0. We can assume that if the real part of an eigenvalue λ is 0 then λ=0. The multiplicity of the 0 eigenvalue is gr…

---

## [How to know if top-level](https://discourse.julialang.org/t/how-to-know-if-top-level/79234)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 6:24pm UTC](https://discourse.julialang.org/t/how-to-know-if-top-level/79234 "2022-04-08T18:24:44Z")

</div>

My macro expands into ... export foo, which causes a ERROR: syntax: "export" expression not at top level I can put it in a try/catch block, but is there an @is\_top\_level() magic macro that I could use instead?

---

## [Inherit transitive dependency resolution from parent environments](https://discourse.julialang.org/t/inherit-transitive-dependency-resolution-from-parent-environments/79233)

<div class="topic-metadata">

**Author:** [@thazhemadam](https://discourse.julialang.org/u/thazhemadam)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 5:05pm UTC](https://discourse.julialang.org/t/inherit-transitive-dependency-resolution-from-parent-environments/79233 "2022-04-08T17:05:14Z")

</div>

Assume I have an environment with packages X and Y, where X and Y both depend on a common package Z. If I \] add X, I would get v0.2.0 of package Z. If I \] add X, Y, Pkg resolves Y’s compat restrictions on Z, and I get v…

---

## [Developing packages that are already in the loaded sysimage](https://discourse.julialang.org/t/developing-packages-that-are-already-in-the-loaded-sysimage/77950)

<div class="topic-metadata">

**Author:** [@thazhemadam](https://discourse.julialang.org/u/thazhemadam)\
**Replies:** 6\
**Last updated:** [April 8, 2022, 4:40pm UTC](https://discourse.julialang.org/t/developing-packages-that-are-already-in-the-loaded-sysimage/77950 "2022-04-08T16:40:04Z")

</div>

How can I develop a package, MyPkg, when a sysimage that contains MyPkg (among others) is already loaded? So far, the only thing that’s worked for me is locally changing the UUID and name of the development version of t…

---

## [Documenting useful packages, such as Match.jl and ConcurrentUtils.jl](https://discourse.julialang.org/t/documenting-useful-packages-such-as-match-jl-and-concurrentutils-jl/79232)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [April 8, 2022, 4:04pm UTC](https://discourse.julialang.org/t/documenting-useful-packages-such-as-match-jl-and-concurrentutils-jl/79232 "2022-04-08T16:04:28Z")

</div>

I suggest documenting the availability of packages (useful for most), centrally somewhere, such as I did at: https://en.wikibooks.org/w/index.php?title=Introducing\_Julia&oldid=4046435 For now I only added a few package…

---

## [Is there something like pywin32 in Julia?](https://discourse.julialang.org/t/is-there-something-like-pywin32-in-julia/37024)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 3:33pm UTC](https://discourse.julialang.org/t/is-there-something-like-pywin32-in-julia/37024 "2022-04-08T15:33:35Z")

</div>

Is there something like pywin32 in Julia? I want to use the stmafm ole/com interface. PyCall could work, but I am curious if there is a Julia native option.

---

## [How to use CUDA on cluster nodes without internet access](https://discourse.julialang.org/t/how-to-use-cuda-on-cluster-nodes-without-internet-access/79190)

<div class="topic-metadata">

**Author:** [@PeeVee](https://discourse.julialang.org/u/PeeVee)\
**Replies:** 7\
**Last updated:** [April 8, 2022, 3:30pm UTC](https://discourse.julialang.org/t/how-to-use-cuda-on-cluster-nodes-without-internet-access/79190 "2022-04-08T15:30:59Z")

</div>

Hi there, I’m trying to run Julia code that utilizes CUDA and Flux on a cluster. Only the login nodes have internet access but they do not have a GPU. So I’ve run into the problem that if I run the Julia code on the log…

---

## [Combining SimpleTraits.jl traits on one type](https://discourse.julialang.org/t/combining-simpletraits-jl-traits-on-one-type/73644)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 5\
**Last updated:** [April 8, 2022, 2:49pm UTC](https://discourse.julialang.org/t/combining-simpletraits-jl-traits-on-one-type/73644 "2022-04-08T14:49:37Z")

</div>

I recently got a little into SimpleTraits - and I like it quite well. But I have a question considering the combination of traits. Consider the following MWE (just noticed, maybe AbstractA is not necessary in general) u…

---

## [Zygote for Dictionaries does not work (specifically the Pullback)](https://discourse.julialang.org/t/zygote-for-dictionaries-does-not-work-specifically-the-pullback/79222)

<div class="topic-metadata">

**Author:** [@Eriklw](https://discourse.julialang.org/u/Eriklw)\
**Replies:** 0\
**Last updated:** [April 8, 2022, 1:15pm UTC](https://discourse.julialang.org/t/zygote-for-dictionaries-does-not-work-specifically-the-pullback/79222 "2022-04-08T13:15:31Z")

</div>

The pullback function does not seem to work for dictionaries, while the gradient does. Is that true or am I doing somthing wrong? Example for the gradient: inp = Dict{Any, Any}(1 =\> 1, 2 =\> 1) f(x) = x\[1\] \* x\[2\] \* 5 g…

---

## [Flux loss: Gradient wrt input leads to empty gradient wrt parameters or to "can't differentiate foreigncall"](https://discourse.julialang.org/t/flux-loss-gradient-wrt-input-leads-to-empty-gradient-wrt-parameters-or-to-cant-differentiate-foreigncall/79180)

<div class="topic-metadata">

**Author:** [@JanJereczek](https://discourse.julialang.org/u/JanJereczek)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 1:14pm UTC](https://discourse.julialang.org/t/flux-loss-gradient-wrt-input-leads-to-empty-gradient-wrt-parameters-or-to-cant-differentiate-foreigncall/79180 "2022-04-08T13:14:51Z")

</div>

Hi Everyone, I am stuck with the following problem: I need the gradient (w.r.t. the input variables) of my NN in the loss function and cannot get it working. I have seen a couple of posts on this, however none with a so…

---

## [KeyError when writing Parquet files to S3](https://discourse.julialang.org/t/keyerror-when-writing-parquet-files-to-s3/79187)

<div class="topic-metadata">

**Author:** [@a.frist](https://discourse.julialang.org/u/a.frist)\
**Replies:** 1\
**Last updated:** [April 8, 2022, 1:09pm UTC](https://discourse.julialang.org/t/keyerror-when-writing-parquet-files-to-s3/79187 "2022-04-08T13:09:53Z")

</div>

I’m trying to write a parquet file to S3 and I’m just not sure exactly what the issue is. This code has worked in the past and there doesn’t seem to be a significant change to the underlying data. Potentially, all the va…

---

## [Internship within Artificial Intelligence Research at Airbus](https://discourse.julialang.org/t/internship-within-artificial-intelligence-research-at-airbus/79221)

<div class="topic-metadata">

**Author:** [@garibarba](https://discourse.julialang.org/u/garibarba)\
**Replies:** 0\
**Last updated:** [April 8, 2022, 12:48pm UTC](https://discourse.julialang.org/t/internship-within-artificial-intelligence-research-at-airbus/79221 "2022-04-08T12:48:48Z")

</div>

Location: Taufkirchen / Munich (Germany) Start: June 2022 Duration: 3-6 months The Artificial Intelligence domain of Central Research & Technology is composed of researchers and research engineers in artificial intell…

---

## [Different solve options within ensemble simulations](https://discourse.julialang.org/t/different-solve-options-within-ensemble-simulations/79102)

<div class="topic-metadata">

**Author:** [@AndreaRH](https://discourse.julialang.org/u/AndreaRH)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 12:17pm UTC](https://discourse.julialang.org/t/different-solve-options-within-ensemble-simulations/79102 "2022-04-08T12:17:31Z")

</div>

I have an EnsembleProblem. This allows me to remake the problem for each of the different simulations. However, I want to change the keyword arguments for solving the different trajectories of the ensemble problem. For i…

---

## [What is the state of Rasterization and Rasterstats in Julia](https://discourse.julialang.org/t/what-is-the-state-of-rasterization-and-rasterstats-in-julia/72366)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 26\
**Last updated:** [April 8, 2022, 11:48am UTC](https://discourse.julialang.org/t/what-is-the-state-of-rasterization-and-rasterstats-in-julia/72366 "2022-04-08T11:48:56Z")

</div>

I have followed the progress of the geo community in Julia every know and than. To me there seams to be a slow but steady progress. That both for raster and vector files. Although, I for instead didn’t found out thinks,…

---

## [How to run Julia project in VS Code?](https://discourse.julialang.org/t/how-to-run-julia-project-in-vs-code/79213)

<div class="topic-metadata">

**Author:** [@derakhshani](https://discourse.julialang.org/u/derakhshani)\
**Replies:** 5\
**Last updated:** [April 8, 2022, 9:33am UTC](https://discourse.julialang.org/t/how-to-run-julia-project-in-vs-code/79213 "2022-04-08T09:33:58Z")

</div>

Hey all, Sorry for the simple question. I’m pretty new to Julia and I’m struggling with opening a project in VS Code. The project in question is: https://github.com/qojulia/QuantumOptics.jl I downloaded the project, i…

---

## [How to get a typed empty array?](https://discourse.julialang.org/t/how-to-get-a-typed-empty-array/79206)

<div class="topic-metadata">

**Author:** [@Katamari](https://discourse.julialang.org/u/Katamari)\
**Replies:** 5\
**Last updated:** [April 8, 2022, 9:19am UTC](https://discourse.julialang.org/t/how-to-get-a-typed-empty-array/79206 "2022-04-08T09:19:44Z")

</div>

I need an empty array with type Tuple{Float64} to solve the following problem. I want to scatter points using CairoMakie. The following code works: using CairoMakie scatter(\[(1, 1)\]) The following code doesn’t work: …

---

## [Broadcasting a function with qualifiers](https://discourse.julialang.org/t/broadcasting-a-function-with-qualifiers/79192)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 7:47am UTC](https://discourse.julialang.org/t/broadcasting-a-function-with-qualifiers/79192 "2022-04-08T07:47:33Z")

</div>

I’m trying to apply eigs over an array of matrices using broadcast. The thing is I want to apply eigs with certain qualifiers such as: eigs(A;nev=6,which=:SM,sigma=0.01). The general syntax for broadcast is however: bro…

---

## [Bug in DistributedArrays? Pushing to first local part pushes to all local parts](https://discourse.julialang.org/t/bug-in-distributedarrays-pushing-to-first-local-part-pushes-to-all-local-parts/79201)

<div class="topic-metadata">

**Author:** [@jsbryan4](https://discourse.julialang.org/u/jsbryan4)\
**Replies:** 1\
**Last updated:** [April 8, 2022, 7:28am UTC](https://discourse.julialang.org/t/bug-in-distributedarrays-pushing-to-first-local-part-pushes-to-all-local-parts/79201 "2022-04-08T07:28:54Z")

</div>

I found what I believe to be a bug in DistributedArrays. I am trying to push to the first local part of an array but it ends up pushing to all of the local parts. using Distributed addprocs(4) @everywhere using Distribu…

---

## [How do Julia convert a Expr to another Expr?](https://discourse.julialang.org/t/how-do-julia-convert-a-expr-to-another-expr/79208)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 7:19am UTC](https://discourse.julialang.org/t/how-do-julia-convert-a-expr-to-another-expr/79208 "2022-04-08T07:19:32Z")

</div>

How do Julia convert a Expr to another Expr? g1=:(\_+2) g2=:(x-\>x+2) How can I convert g1 to g2? I know I can do it in this way: "x-\>"\*replace(string(g1),"\_"=\>"x") |\> Meta.parse But this way is tedious, I would th…

---

## [Custom array (a variations on adjacency matrix for graphs)](https://discourse.julialang.org/t/custom-array-a-variations-on-adjacency-matrix-for-graphs/79196)

<div class="topic-metadata">

**Author:** [@AlexanderChen](https://discourse.julialang.org/u/AlexanderChen)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 6:18am UTC](https://discourse.julialang.org/t/custom-array-a-variations-on-adjacency-matrix-for-graphs/79196 "2022-04-08T06:18:03Z")

</div>

Hi, So I am doing a project in which i need to heavily use a graph structure. I have tried several graph package in the past, but they are not flexible enough for my use case. So I started to wonder if the following is …

---

## [String indexing bug?](https://discourse.julialang.org/t/string-indexing-bug/79198)

<div class="topic-metadata">

**Author:** [@cortner](https://discourse.julialang.org/u/cortner)\
**Replies:** 4\
**Last updated:** [April 8, 2022, 5:22am UTC](https://discourse.julialang.org/t/string-indexing-bug/79198 "2022-04-08T05:22:49Z")

</div>

str = "(θ,)" str\[3\] results in ERROR: StringIndexError: invalid index \[3\], valid nearby indices \[2\]=\>'θ', \[4\]=\>',' Stacktrace: \[1\] string\_index\_err(s::String, i::Int64) @ Base ./strings/string.jl:12 \[2\] getindex\_c…

---

## [Help me with dataFrames](https://discourse.julialang.org/t/help-me-with-dataframes/79200)

<div class="topic-metadata">

**Author:** [@Lamis\_Njeh](https://discourse.julialang.org/u/Lamis_Njeh)\
**Replies:** 2\
**Last updated:** [April 8, 2022, 12:31am UTC](https://discourse.julialang.org/t/help-me-with-dataframes/79200 "2022-04-08T00:31:54Z")

</div>

I would like to select columns which type are “string” in a dataframe for a data science project and makke thoose variable in an other dataframe THANK YOU SO MUSH FOR YOUR HELP

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

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