# Latest

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

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

**Page:** 740

---

## [Can I enable the ContinuousCallback only on certain intervals?](https://discourse.julialang.org/t/can-i-enable-the-continuouscallback-only-on-certain-intervals/96788)

<div class="topic-metadata">

**Author:** [@vtfanta](https://discourse.julialang.org/u/vtfanta)\
**Replies:** 1\
**Last updated:** [March 30, 2023, 8:10am UTC](https://discourse.julialang.org/t/can-i-enable-the-continuouscallback-only-on-certain-intervals/96788 "2023-03-30T08:10:36Z")

</div>

I understand the difference between the DiscreteCallback and the ContinuousCallback. My question is, how could I use the continuous one while being active only on a specified interval of the independent variable? For ex…

---

## [How to find out sub-options under a module's option when using GMT in julia？](https://discourse.julialang.org/t/how-to-find-out-sub-options-under-a-modules-option-when-using-gmt-in-julia/96829)

<div class="topic-metadata">

**Author:** [@dk-zen](https://discourse.julialang.org/u/dk-zen)\
**Replies:** 4\
**Last updated:** [March 30, 2023, 7:39am UTC](https://discourse.julialang.org/t/how-to-find-out-sub-options-under-a-modules-option-when-using-gmt-in-julia/96829 "2023-03-30T07:39:03Z")

</div>

I’m new in GMT.jl. I follow the examples from Tutorial in Julia — GMT 6.4.0 documentation, and make a geographic map with a image pasted. It works. However, I don’t know how to query all options and suboptions under a m…

---

## [PyCall not working when run from vscode run command](https://discourse.julialang.org/t/pycall-not-working-when-run-from-vscode-run-command/96825)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 0\
**Last updated:** [March 30, 2023, 6:01am UTC](https://discourse.julialang.org/t/pycall-not-working-when-run-from-vscode-run-command/96825 "2023-03-30T06:01:14Z")

</div>

I’ve setup PyCall (note I have an anaconda distribuiton) ENV\["PYTHON"\] = "C:\\Anaconda3\\python.exe" Pkg.build("PyCall") In vscode when I open a new terminal (I’m on windows so a power shell opens) and then start julia …

---

## [Broadcast Multiplication on Custom Type](https://discourse.julialang.org/t/broadcast-multiplication-on-custom-type/96728)

<div class="topic-metadata">

**Author:** [@tgautam03](https://discourse.julialang.org/u/tgautam03)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 10:24pm UTC](https://discourse.julialang.org/t/broadcast-multiplication-on-custom-type/96728 "2023-03-28T22:24:13Z")

</div>

Hi I’ve created a custom struct named MyNum and want to create broadcast operations on this type, like a = MyNum(rand(3,2)) b = MyNum(rand(3,2)) c = a .\* b I can’t figure out how to do this. I’ve been able to do this…

---

## [How to parse EDT time zone?](https://discourse.julialang.org/t/how-to-parse-edt-time-zone/96824)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 0\
**Last updated:** [March 30, 2023, 5:46am UTC](https://discourse.julialang.org/t/how-to-parse-edt-time-zone/96824 "2023-03-30T05:46:56Z")

</div>

For example, I have the following time “2012-01-09 12:00:10 EDT”. How do I parse it to a ZonedDateTime using TimeZones.jl? “EDT” is not a standard time zone, and tz"EDT" fails to parse. The thing is I want to make it gen…

---

## [Encourage Using GitHub Copilot to Increase Julia Usage](https://discourse.julialang.org/t/encourage-using-github-copilot-to-increase-julia-usage/87405)

<div class="topic-metadata">

**Author:** [@NickW3101](https://discourse.julialang.org/u/NickW3101)\
**Replies:** 13\
**Last updated:** [March 30, 2023, 1:23am UTC](https://discourse.julialang.org/t/encourage-using-github-copilot-to-increase-julia-usage/87405 "2023-03-30T01:23:50Z")

</div>

I think the Julia community should actively encourage the use of GitHub Copilot to strengthen Julia, especially programmers from other languages. Copilot can shorten the learning curve of the language and speed up devel…

---

## [Repo corresponding to package in environment](https://discourse.julialang.org/t/repo-corresponding-to-package-in-environment/96791)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 5\
**Last updated:** [March 29, 2023, 11:39pm UTC](https://discourse.julialang.org/t/repo-corresponding-to-package-in-environment/96791 "2023-03-29T23:39:01Z")

</div>

Is there some way to go from the name of a package in the current environment, to the GitHub repo that it ultimately came from? I mean in the case of a package that is currently coming from a registry, not one that is ex…

---

## [Permissions error in ArtifactUtils.upload\_to\_gist](https://discourse.julialang.org/t/permissions-error-in-artifactutils-upload-to-gist/96469)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 7\
**Last updated:** [March 29, 2023, 9:59pm UTC](https://discourse.julialang.org/t/permissions-error-in-artifactutils-upload-to-gist/96469 "2023-03-29T21:59:49Z")

</div>

I am having the following issue with ArtifactUtils.upload\_to\_gist: julia\> gist = ArtifactUtils.upload\_to\_gist(artifact\_id) - Creating gist... ✓ Created gist Cloning into '.'... ERROR: Repository not found. fatal: Could …

---

## [Error when installing packages](https://discourse.julialang.org/t/error-when-installing-packages/96793)

<div class="topic-metadata">

**Author:** [@Jorge\_Luis\_Horta\_San](https://discourse.julialang.org/u/Jorge_Luis_Horta_San)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 8:54pm UTC](https://discourse.julialang.org/t/error-when-installing-packages/96793 "2023-03-29T20:54:53Z")

</div>

I am trying to install packages in a new installation of julia. I always get this error. ERROR: ArgumentError: “H:\\Temp\\Admin” is not a directory. The problem is that I don’t even have a hard disk H drive. I understan…

---

## [@SDconstraint not working](https://discourse.julialang.org/t/sdconstraint-not-working/96685)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 8:00pm UTC](https://discourse.julialang.org/t/sdconstraint-not-working/96685 "2023-03-29T20:00:18Z")

</div>

Hi, I’m new to Julia and this might be something very simple but I’m struggling to implement in JuMP. julia\> using JuMP julia\> using MosekTools julia\> model = Model(); julia\> @variable(model, x) x julia\> a = \[x 2x …

---

## [How to use "Callback" while solving differential equation with uncertain initial condition and uncertain parameters?](https://discourse.julialang.org/t/how-to-use-callback-while-solving-differential-equation-with-uncertain-initial-condition-and-uncertain-parameters/96801)

<div class="topic-metadata">

**Author:** [@Ashu](https://discourse.julialang.org/u/Ashu)\
**Replies:** 0\
**Last updated:** [March 29, 2023, 7:52pm UTC](https://discourse.julialang.org/t/how-to-use-callback-while-solving-differential-equation-with-uncertain-initial-condition-and-uncertain-parameters/96801 "2023-03-29T19:52:49Z")

</div>

Hello all, I am solving nonlinear differential equation using “ReachabilityAnalysis.jl” package (Example: Lotka-Volterra · ReachabilityAnalysis.jl). Both initial condition and parameters are uncertain, so I tool interva…

---

## [DebugDataWriter.jl: simple formatted writer of debug information](https://discourse.julialang.org/t/debugdatawriter-jl-simple-formatted-writer-of-debug-information/96800)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 0\
**Last updated:** [March 29, 2023, 7:36pm UTC](https://discourse.julialang.org/t/debugdatawriter-jl-simple-formatted-writer-of-debug-information/96800 "2023-03-29T19:36:00Z")

</div>

The package DebugDataWriter.jl provides writing of debug information into external files in a human readable format. @debug\_output path\_id file\_title data\_to\_be\_formatted If the output disabled, there is no overhead in…

---

## [Rounding solution output in JuMP](https://discourse.julialang.org/t/rounding-solution-output-in-jump/96786)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 5\
**Last updated:** [March 29, 2023, 7:32pm UTC](https://discourse.julialang.org/t/rounding-solution-output-in-jump/96786 "2023-03-29T19:32:55Z")

</div>

When I solve a problem in JuMP, my code ends with optimize!(model); @show value(m); end and then it prints the solution m to the problem–as directed by the @show value(m) line. But it prints many decimal places of m…

---

## [\[ANN\] AppleScriptingBridge.jl](https://discourse.julialang.org/t/ann-applescriptingbridge-jl/96798)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 0\
**Last updated:** [March 29, 2023, 7:22pm UTC](https://discourse.julialang.org/t/ann-applescriptingbridge-jl/96798 "2023-03-29T19:22:32Z")

</div>

Hi all, small announcement of an experimental package I made using the recently revamped ObjectiveC.jl called AppleScriptingBridge.jl. It’s not registered and probably won’t be due to it’s experimental status, but I’ve …

---

## [Set\_start\_value to reduce iterations](https://discourse.julialang.org/t/set-start-value-to-reduce-iterations/96760)

<div class="topic-metadata">

**Author:** [@Annaquest](https://discourse.julialang.org/u/Annaquest)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 6:27pm UTC](https://discourse.julialang.org/t/set-start-value-to-reduce-iterations/96760 "2023-03-29T18:27:54Z")

</div>

I have written an algorithm where I update a penalty parameter, ρ, if some conditions are not satisfied. Then I update the objective function with the new increased parameter and call optimize! Like this, ρ = ρ\*10 init…

---

## [Suppress error for infeasible problem in Jump](https://discourse.julialang.org/t/suppress-error-for-infeasible-problem-in-jump/96758)

<div class="topic-metadata">

**Author:** [@umbe](https://discourse.julialang.org/u/umbe)\
**Replies:** 5\
**Last updated:** [March 29, 2023, 5:51pm UTC](https://discourse.julialang.org/t/suppress-error-for-infeasible-problem-in-jump/96758 "2023-03-29T17:51:44Z")

</div>

Hello to everyone! I am trying to solve a series of optimizations using Jump and Gurobi. When a problem is found to be infeasible because of the impossibility to satisfy all the boundaries/constraints, Jump stops the p…

---

## [Dealing with views and cuda array wrappers](https://discourse.julialang.org/t/dealing-with-views-and-cuda-array-wrappers/96725)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 4:52pm UTC](https://discourse.julialang.org/t/dealing-with-views-and-cuda-array-wrappers/96725 "2023-03-29T16:52:18Z")

</div>

I’m working with an array wrapper that uses a CuArray under the hood. When I try to @view into it, I get a complicated SubArray that calls the Base.fill!() routine rather than the Cuda.fill!() routine (i.e. it’s scalar i…

---

## [Error with gradient function in quantum reinforcement learning algorithm](https://discourse.julialang.org/t/error-with-gradient-function-in-quantum-reinforcement-learning-algorithm/96787)

<div class="topic-metadata">

**Author:** [@SatvikDuddukuru](https://discourse.julialang.org/u/SatvikDuddukuru)\
**Replies:** 0\
**Last updated:** [March 29, 2023, 4:26pm UTC](https://discourse.julialang.org/t/error-with-gradient-function-in-quantum-reinforcement-learning-algorithm/96787 "2023-03-29T16:26:22Z")

</div>

Hello. I am trying to implement the REINFORCE algorithm with parametrized quantum circuits from this Python tutorial (Parametrized Quantum Circuits for Reinforcement Learning | TensorFlow Quantum). To do this, I’ve imp…

---

## [JumpProblem: controlling saving behavior](https://discourse.julialang.org/t/jumpproblem-controlling-saving-behavior/96716)

<div class="topic-metadata">

**Author:** [@lmshk](https://discourse.julialang.org/u/lmshk)\
**Replies:** 7\
**Last updated:** [March 29, 2023, 3:57pm UTC](https://discourse.julialang.org/t/jumpproblem-controlling-saving-behavior/96716 "2023-03-29T15:57:12Z")

</div>

I have a JumpProcesses.JumpProblem that I am stepping through piecewise (using integrator = init(...)/step!(integrator, dt, true)) and I would like to save states only during some of these intervals according to a fixed …

---

## [Asymptotically faster matrix-multiplication algorithms](https://discourse.julialang.org/t/asymptotically-faster-matrix-multiplication-algorithms/96710)

<div class="topic-metadata">

**Author:** [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Replies:** 13\
**Last updated:** [March 29, 2023, 3:48pm UTC](https://discourse.julialang.org/t/asymptotically-faster-matrix-multiplication-algorithms/96710 "2023-03-29T15:48:10Z")

</div>

Does there even exist an actual implementation?

---

## [Clamped View](https://discourse.julialang.org/t/clamped-view/96717)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 13\
**Last updated:** [March 29, 2023, 3:05pm UTC](https://discourse.julialang.org/t/clamped-view/96717 "2023-03-29T15:05:28Z")

</div>

I am trying to define a performant read-only view into an array where the index is clamped to lie within the array axis. The motivation for this is to apply stencils like finite differences and convolutions without needi…

---

## [Indexing symbolic arrays inside Differential Equation solution](https://discourse.julialang.org/t/indexing-symbolic-arrays-inside-differential-equation-solution/96764)

<div class="topic-metadata">

**Author:** [@Daniel\_Doyle](https://discourse.julialang.org/u/Daniel_Doyle)\
**Replies:** 4\
**Last updated:** [March 29, 2023, 2:34pm UTC](https://discourse.julialang.org/t/indexing-symbolic-arrays-inside-differential-equation-solution/96764 "2023-03-29T14:34:43Z")

</div>

Hello, I was running into an issue with indexing symbolic arrays from a solution and was wondering if anyone had some insight. Below is a simplified example: using ModelingToolkit, StochasticDiffEq using Plots @variab…

---

## [Using end variable in ranges passed to functions other than getindex?](https://discourse.julialang.org/t/using-end-variable-in-ranges-passed-to-functions-other-than-getindex/7591)

<div class="topic-metadata">

**Author:** [@tlnagy](https://discourse.julialang.org/u/tlnagy)\
**Replies:** 23\
**Last updated:** [March 29, 2023, 1:55pm UTC](https://discourse.julialang.org/t/using-end-variable-in-ranges-passed-to-functions-other-than-getindex/7591 "2023-03-29T13:55:47Z")

</div>

I expected the following to work: julia\> a = \[1,2,3,4,5\] 5-element Array{Int64,1}: 1 2 3 4 5 julia\> deleteat!(a, end-1:end) ERROR: syntax: unexpected "end" julia\> a\[end-1:end\] 2-element Array{Int64,1}: 4 5 I e…

---

## [Enlistment for corsairing the map function (in REPL/Main only)](https://discourse.julialang.org/t/enlistment-for-corsairing-the-map-function-in-repl-main-only/96768)

<div class="topic-metadata">

**Author:** [@martin.auer](https://discourse.julialang.org/u/martin.auer)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 1:51pm UTC](https://discourse.julialang.org/t/enlistment-for-corsairing-the-map-function-in-repl-main-only/96768 "2023-03-29T13:51:56Z")

</div>

Hi, I am toying with a module that end users are supposed to mainly be using via the Julia REPL, to leverage its piping capabilities. In this specific tool’s REPL context, I would like to find a (somewhat safe, somewha…

---

## [Error compiling package using JavaCall](https://discourse.julialang.org/t/error-compiling-package-using-javacall/96779)

<div class="topic-metadata">

**Author:** [@bvanderbeek](https://discourse.julialang.org/u/bvanderbeek)\
**Replies:** 3\
**Last updated:** [March 29, 2023, 1:47pm UTC](https://discourse.julialang.org/t/error-compiling-package-using-javacall/96779 "2023-03-29T13:47:43Z")

</div>

I’m trying to build a package that is dependent on the JavaCall package. The JavaCall package has some known issues with Mac which can be avoided by setting the environment variable ‘JULIA\_COPY\_STACKS=yes’ and starting J…

---

## [\[ANN\] EuclidGraphs.jl - Simple, lightweight, beautiful graph rendering in VSCode and SVG](https://discourse.julialang.org/t/ann-euclidgraphs-jl-simple-lightweight-beautiful-graph-rendering-in-vscode-and-svg/96780)

<div class="topic-metadata">

**Author:** [@JuliaMLTools](https://discourse.julialang.org/u/JuliaMLTools)\
**Replies:** 0\
**Last updated:** [March 29, 2023, 1:23pm UTC](https://discourse.julialang.org/t/ann-euclidgraphs-jl-simple-lightweight-beautiful-graph-rendering-in-vscode-and-svg/96780 "2023-03-29T13:23:27Z")

</div>

Excited to release a new package for visualizing featured graphs in VSCode and in SVG: EuclidGraphs.jl is designed to allow quick visualization of input and output features for graph neural networks (such as GraphNets…

---

## [A pydoc but for julia?](https://discourse.julialang.org/t/a-pydoc-but-for-julia/96778)

<div class="topic-metadata">

**Author:** [@rye](https://discourse.julialang.org/u/rye)\
**Replies:** 3\
**Last updated:** [March 29, 2023, 1:21pm UTC](https://discourse.julialang.org/t/a-pydoc-but-for-julia/96778 "2023-03-29T13:21:43Z")

</div>

Hi, In python I have the handy pydoc executable to show me documentation on the fly (without needing lsp, but via a few vimscript functions handling import aliases still automatic). Is there something similar to pydoc f…

---

## [Add a row to dataframe, fill it with integers and sum the values](https://discourse.julialang.org/t/add-a-row-to-dataframe-fill-it-with-integers-and-sum-the-values/96774)

<div class="topic-metadata">

**Author:** [@CvR](https://discourse.julialang.org/u/CvR)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 12:57pm UTC](https://discourse.julialang.org/t/add-a-row-to-dataframe-fill-it-with-integers-and-sum-the-values/96774 "2023-03-29T12:57:38Z")

</div>

I’m writing a script where a user can add a row to a dataframe (df2) and fill in some integer values (1 through 9). What I have is this: n\_rows = nrow(df2) println("Give sores for", n\_rows, " rows: ") scores\_temp = read…

---

## [How to read GraphML with node and vertex metadata](https://discourse.julialang.org/t/how-to-read-graphml-with-node-and-vertex-metadata/96770)

<div class="topic-metadata">

**Author:** [@ArtHarg](https://discourse.julialang.org/u/ArtHarg)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 12:54pm UTC](https://discourse.julialang.org/t/how-to-read-graphml-with-node-and-vertex-metadata/96770 "2023-03-29T12:54:54Z")

</div>

Is there an efficient way to read a GraphML file and produce a MetaGraph? My use case: I have a file containing 210,157 vertices and 1,016,092 edges, all with metadata. I can succesfully read the graph using g = loadg…

---

## [Why does add-assign to Ref{Float64} allocate?](https://discourse.julialang.org/t/why-does-add-assign-to-ref-float64-allocate/96767)

<div class="topic-metadata">

**Author:** [@AlexanderNenninger](https://discourse.julialang.org/u/AlexanderNenninger)\
**Replies:** 3\
**Last updated:** [March 29, 2023, 12:50pm UTC](https://discourse.julialang.org/t/why-does-add-assign-to-ref-float64-allocate/96767 "2023-03-29T12:50:57Z")

</div>

While optimizing some ODE code, I noticed that += on Ref{Float64} allocates, while .+= on a vector slice doen’t. Why is that? I wasn’t able to reproduce the effect without DifferentialEquations, but I feel like it shoul…

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

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