# Latest

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

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

**Page:** 1331

---

## [Create Template without version control](https://discourse.julialang.org/t/create-template-without-version-control/64450)

<div class="topic-metadata">

**Author:** [@Dustin\_Hess](https://discourse.julialang.org/u/Dustin_Hess)\
**Replies:** 10\
**Last updated:** [July 15, 2021, 3:22am UTC](https://discourse.julialang.org/t/create-template-without-version-control/64450 "2021-07-15T03:22:19Z")

</div>

I read through the doc for PkgTemplates and cannot figure out how to create a package that dose not have a .git folder. I need this way because because I am using Bitbucket and packages are private. Bitbucket will create…

---

## [Unable to save and load model (or parameters) with BSON either on GPU or CPU](https://discourse.julialang.org/t/unable-to-save-and-load-model-or-parameters-with-bson-either-on-gpu-or-cpu/64582)

<div class="topic-metadata">

**Author:** [@sguns](https://discourse.julialang.org/u/sguns)\
**Replies:** 2\
**Last updated:** [July 15, 2021, 2:17am UTC](https://discourse.julialang.org/t/unable-to-save-and-load-model-or-parameters-with-bson-either-on-gpu-or-cpu/64582 "2021-07-15T02:17:50Z")

</div>

Hi, I’m training a model on GPU and trying to save intermediate states to disk as described in the Flux docs. Unfortunately it seems like the information about saving GPU models (in the blue box) is wrong - although I c…

---

## [Matlab versus Julia](https://discourse.julialang.org/t/matlab-versus-julia/64469)

<div class="topic-metadata">

**Author:** [@asaretto](https://discourse.julialang.org/u/asaretto)\
**Replies:** 33\
**Last updated:** [July 15, 2021, 1:43am UTC](https://discourse.julialang.org/t/matlab-versus-julia/64469 "2021-07-15T01:43:06Z")

</div>

Hi guys, I am new to Julia. I have been using Matlab for many years. I have been told that Julia can offer great improvements in terms of performance. After doing a very preliminary intro course on Julia I started hackin…

---

## [The best way to define two or more arrays, similar to a given one](https://discourse.julialang.org/t/the-best-way-to-define-two-or-more-arrays-similar-to-a-given-one/64519)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 10\
**Last updated:** [July 15, 2021, 1:07am UTC](https://discourse.julialang.org/t/the-best-way-to-define-two-or-more-arrays-similar-to-a-given-one/64519 "2021-07-15T01:07:00Z")

</div>

Is there a method to avoid repeating similar(u) in the code below? To be more precise, I define a parameterized surface (u,v)-\>(f(u,v), g(u,v), h(u,v)) with parameters in a rectangle \[a, b\] x \[c,d\]: ru = a:0.1:b rv = …

---

## [How to Embed Gifs into Weave HTML Documents?](https://discourse.julialang.org/t/how-to-embed-gifs-into-weave-html-documents/64211)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 3\
**Last updated:** [July 15, 2021, 12:07am UTC](https://discourse.julialang.org/t/how-to-embed-gifs-into-weave-html-documents/64211 "2021-07-15T00:07:10Z")

</div>

Hi all, How do I embed gifs into HTML documents outputted from weave? Say I have the following Julia Markdown file here: --- title : Javis with Weave, Earth Venus Cosmic Dance author : Ved Mahajan --- \`\`\`julia using …

---

## [Can I distribute several tasks over several workers?](https://discourse.julialang.org/t/can-i-distribute-several-tasks-over-several-workers/64659)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 4\
**Last updated:** [July 14, 2021, 11:54pm UTC](https://discourse.julialang.org/t/can-i-distribute-several-tasks-over-several-workers/64659 "2021-07-14T23:54:08Z")

</div>

Hello, How can I distribute several tasks on several workers? Such as there are three tasks below (in this case , the three tasks are writing on the same variable Y): x1=\[1 3 4 5\]; x2=\[1 3 4 5\]; x3=\[1 3 4 5\]; Y=zeros(4…

---

## [\[ANN\] Announcing NumPyArrays.jl](https://discourse.julialang.org/t/ann-announcing-numpyarrays-jl/64467)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 3\
**Last updated:** [July 14, 2021, 10:04pm UTC](https://discourse.julialang.org/t/ann-announcing-numpyarrays-jl/64467 "2021-07-14T22:04:00Z")

</div>

Synposis I am pleased to announce NumPyArrays.jl at version v0.1.1. Initial registration is in the general registry is in process. This package facilitates the conversion of certain Julia SubArrays, Base.ReinterpretedAr…

---

## [Weave.jl: order of text and plots](https://discourse.julialang.org/t/weave-jl-order-of-text-and-plots/64656)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 4\
**Last updated:** [July 14, 2021, 9:51pm UTC](https://discourse.julialang.org/t/weave-jl-order-of-text-and-plots/64656 "2021-07-14T21:51:28Z")

</div>

Weaving a .jmd file like this within a \`\`\`julia code block: println("line 1") println("line 2") display(plot(rand(10))) println("line 3") println("line 4") gives this both in html and pdf output: Is there a way t…

---

## [How to redirect IO to a string?](https://discourse.julialang.org/t/how-to-redirect-io-to-a-string/64661)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 2\
**Last updated:** [July 14, 2021, 9:54pm UTC](https://discourse.julialang.org/t/how-to-redirect-io-to-a-string/64661 "2021-07-14T21:54:21Z")

</div>

For example, the built-in versioninfo() function accepts arguments versioninfo(io::IO=stdout; verbose::Bool=false) The return result of this function is nothing. How can I get the output not as IO printing but as a str…

---

## [X === nothing vs x isa Nothing](https://discourse.julialang.org/t/x-nothing-vs-x-isa-nothing/64546)

<div class="topic-metadata">

**Author:** [@dpkwhan](https://discourse.julialang.org/u/dpkwhan)\
**Replies:** 14\
**Last updated:** [July 14, 2021, 9:44pm UTC](https://discourse.julialang.org/t/x-nothing-vs-x-isa-nothing/64546 "2021-07-14T21:44:48Z")

</div>

Which one is preferred? Why?

---

## [\[ANN\] ODBC.jl Overhaul and 1.0 Release](https://discourse.julialang.org/t/ann-odbc-jl-overhaul-and-1-0-release/40493)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 7\
**Last updated:** [July 14, 2021, 9:23pm UTC](https://discourse.julialang.org/t/ann-odbc-jl-overhaul-and-1-0-release/40493 "2021-07-14T21:23:20Z")

</div>

I’m happy to announce a package overhaul and 1.0 release of the ODBC.jl package. In addition to being one of the oldest Julia packages (over 7 years old!), it was also my first Julia package that lured me into Julia deve…

---

## [Optimization with JuMP and KNITRO](https://discourse.julialang.org/t/optimization-with-jump-and-knitro/64644)

<div class="topic-metadata">

**Author:** [@Mario\_mushroom](https://discourse.julialang.org/u/Mario_mushroom)\
**Replies:** 2\
**Last updated:** [July 14, 2021, 8:55pm UTC](https://discourse.julialang.org/t/optimization-with-jump-and-knitro/64644 "2021-07-14T20:55:58Z")

</div>

Hey everyone, I was trying to do a non-linear optimization problem with KNITRO. The JuMP model seems fine: A JuMP Model Minimization problem with: Variables: 270 Objective function type: GenericQuadExpr{Float64,Variable…

---

## [Versioning, versioning, and tags?](https://discourse.julialang.org/t/versioning-versioning-and-tags/64657)

<div class="topic-metadata">

**Author:** [@orome](https://discourse.julialang.org/u/orome)\
**Replies:** 0\
**Last updated:** [July 14, 2021, 8:06pm UTC](https://discourse.julialang.org/t/versioning-versioning-and-tags/64657 "2021-07-14T20:06:01Z")

</div>

Perhaps a dumb (or ill-formed) question; but what, if anything is the relationship between the version in Project.toml and the version associated with documentation (e.g. using tags)? More generally, I’m trying to bette…

---

## [Inverse of Cross Correlation?](https://discourse.julialang.org/t/inverse-of-cross-correlation/64357)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 17\
**Last updated:** [July 14, 2021, 7:28pm UTC](https://discourse.julialang.org/t/inverse-of-cross-correlation/64357 "2021-07-14T19:28:33Z")

</div>

Hi all. I have a signal that is a cross correlation between to signals: X=crosscor(A,B) But in my case I get X and I can compute B… any idea how to make the inverse of the cross correlation so that I get: A=icrosscor…

---

## [Difference between collect(x) and Array(x)?](https://discourse.julialang.org/t/difference-between-collect-x-and-array-x/64652)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [July 14, 2021, 6:02pm UTC](https://discourse.julialang.org/t/difference-between-collect-x-and-array-x/64652 "2021-07-14T18:02:04Z")

</div>

Is there any difference in the behavior of collect(x) vs Array(x)? collect(element\_type, collection) Return an Array with the given element type of all items in a collection or iterable. The result has the same sh…

---

## [Find most specific type](https://discourse.julialang.org/t/find-most-specific-type/64528)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 4\
**Last updated:** [July 14, 2021, 5:37pm UTC](https://discourse.julialang.org/t/find-most-specific-type/64528 "2021-07-14T17:37:12Z")

</div>

given a collection of type tupels. Like \[Tuple{Int, Int}, Tuple{Integer, Integer}, Tuple{T, T} where T\<: Real\] how can I find which is the most specific? I assume julia has a fast way of doing this since this is what…

---

## [Why not always use Revise?](https://discourse.julialang.org/t/why-not-always-use-revise/64589)

<div class="topic-metadata">

**Author:** [@orome](https://discourse.julialang.org/u/orome)\
**Replies:** 13\
**Last updated:** [July 14, 2021, 5:24pm UTC](https://discourse.julialang.org/t/why-not-always-use-revise/64589 "2021-07-14T17:24:46Z")

</div>

Is there any reason not to always be use-ing Revise? If so, what are the risks or drawbacks?

---

## [\[ANN\] AWSBraket.jl - REST API wrapper for AWS Quantum Computing Service in native Julia](https://discourse.julialang.org/t/ann-awsbraket-jl-rest-api-wrapper-for-aws-quantum-computing-service-in-native-julia/64608)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 2\
**Last updated:** [July 14, 2021, 5:24pm UTC](https://discourse.julialang.org/t/ann-awsbraket-jl-rest-api-wrapper-for-aws-quantum-computing-service-in-native-julia/64608 "2021-07-14T17:24:26Z")

</div>

I’m pleased to announce the AWS braket REST API wrapper in native Julia based on its official implementation in braket. This is a component of the coming YaoLang.jl package, which will be the recommended way of using …

---

## [Efficient rounding of multiplication by irrational numbers](https://discourse.julialang.org/t/efficient-rounding-of-multiplication-by-irrational-numbers/64647)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 0\
**Last updated:** [July 14, 2021, 5:07pm UTC](https://discourse.julialang.org/t/efficient-rounding-of-multiplication-by-irrational-numbers/64647 "2021-07-14T17:07:00Z")

</div>

I have a small Julia package for quantum computing - performing simple qubit calculations (I know that there are other, high quality, quantum computations for Julia, but I like to use my package which is tailored for my …

---

## [Display banner when executing julia from cmd?](https://discourse.julialang.org/t/display-banner-when-executing-julia-from-cmd/64601)

<div class="topic-metadata">

**Author:** [@fredih](https://discourse.julialang.org/u/fredih)\
**Replies:** 2\
**Last updated:** [July 14, 2021, 4:36pm UTC](https://discourse.julialang.org/t/display-banner-when-executing-julia-from-cmd/64601 "2021-07-14T16:36:50Z")

</div>

I would like the welcome banner that is displayed when you enter the REPL to be printed when I execute something like julia myCode.jl in Window’s cmd. Is there a way to do so?

---

## [Animation bug](https://discourse.julialang.org/t/animation-bug/60982)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 1\
**Last updated:** [July 14, 2021, 4:05pm UTC](https://discourse.julialang.org/t/animation-bug/60982 "2021-07-14T16:05:48Z")

</div>

Hi, I am trying to get into animations using the Plots package. I am following this tutorial: Animations · Plots However when trying to execute the program I get the following error: ERROR: LoadError: failed process: …

---

## [How does environment stacking work?](https://discourse.julialang.org/t/how-does-environment-stacking-work/64635)

<div class="topic-metadata">

**Author:** [@orome](https://discourse.julialang.org/u/orome)\
**Replies:** 2\
**Last updated:** [July 14, 2021, 3:26pm UTC](https://discourse.julialang.org/t/how-does-environment-stacking-work/64635 "2021-07-14T15:26:14Z")

</div>

\> Julia environments are stacked. So just to be sure I understand this: If I activate X then I can using anything that’s added or deved in not just X but also anything that’s in the load path (so by default, anything up…

---

## [GalacticOptim: Locally running runtests.jl fails](https://discourse.julialang.org/t/galacticoptim-locally-running-runtests-jl-fails/64591)

<div class="topic-metadata">

**Author:** [@StefanMathis](https://discourse.julialang.org/u/StefanMathis)\
**Replies:** 6\
**Last updated:** [July 14, 2021, 12:49pm UTC](https://discourse.julialang.org/t/galacticoptim-locally-running-runtests-jl-fails/64591 "2021-07-14T12:49:37Z")

</div>

Hello all, I want to add constraint support to the FiniteDiff-backend of the GalacticOptim.jl package. However, after creating a local repository of the package, I can’t get runtests.jl to work. All tests using the Ipo…

---

## [Reducing memory allocations when storing vectors to fields of a mutable type](https://discourse.julialang.org/t/reducing-memory-allocations-when-storing-vectors-to-fields-of-a-mutable-type/64623)

<div class="topic-metadata">

**Author:** [@LionMod](https://discourse.julialang.org/u/LionMod)\
**Replies:** 6\
**Last updated:** [July 14, 2021, 2:43pm UTC](https://discourse.julialang.org/t/reducing-memory-allocations-when-storing-vectors-to-fields-of-a-mutable-type/64623 "2021-07-14T14:43:53Z")

</div>

I have a mutable type called Data mutable struct Data data\_a::Vector{Int64} data\_b::Vector{Int64} end I get two vectors that are of type Vector{Float64} from a solution of an ODE and want to construct t…

---

## [How to install Python packages for PyCall?](https://discourse.julialang.org/t/how-to-install-python-packages-for-pycall/64560)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 10\
**Last updated:** [July 14, 2021, 1:02pm UTC](https://discourse.julialang.org/t/how-to-install-python-packages-for-pycall/64560 "2021-07-14T13:02:22Z")

</div>

How to install Python PKG in Julia using PyCall? For example,https://github.com/LucasBoTang/Optimal\_Classification\_Trees， How can it be used in Julia? Thank you very much!

---

## [3d medical app stencil](https://discourse.julialang.org/t/3d-medical-app-stencil/64019)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 6\
**Last updated:** [July 14, 2021, 12:14pm UTC](https://discourse.julialang.org/t/3d-medical-app-stencil/64019 "2021-07-14T12:14:43Z")

</div>

Hello I am trying to apply fantactic ParallelStencil.jl (https://github.com/omlins/ParallelStencil.jl) library to 3d medical imaging, as it seems ideal yet I have problems with application of code to my domain. For the…

---

## [Invoke a method from a particular world-age](https://discourse.julialang.org/t/invoke-a-method-from-a-particular-world-age/64526)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 1\
**Last updated:** [July 14, 2021, 12:02pm UTC](https://discourse.julialang.org/t/invoke-a-method-from-a-particular-world-age/64526 "2021-07-14T12:02:43Z")

</div>

Is there a way to invoke a method from a particular world age? I am defining automatically a ton of methods using metaprogramming. But for particular cases I would like to not hit the overload I have defined, but rath…

---

## [Meaning of \`pkgdir\`](https://discourse.julialang.org/t/meaning-of-pkgdir/64563)

<div class="topic-metadata">

**Author:** [@ThomasBreuer](https://discourse.julialang.org/u/ThomasBreuer)\
**Replies:** 1\
**Last updated:** [July 14, 2021, 11:56am UTC](https://discourse.julialang.org/t/meaning-of-pkgdir/64563 "2021-07-14T11:56:49Z")

</div>

Calling Pkg.activate (in Julia 1.5.3) seems to change the output of pkgdir. My situation is as follows. Two versions of a package X, say, are installed, a released one in ~/.julia/packages and a develop version in anot…

---

## [\[ANN\] EntropyHub.jl](https://discourse.julialang.org/t/ann-entropyhub-jl/64572)

<div class="topic-metadata">

**Author:** [@MattWillFlood](https://discourse.julialang.org/u/MattWillFlood)\
**Replies:** 11\
**Last updated:** [July 14, 2021, 11:46am UTC](https://discourse.julialang.org/t/ann-entropyhub-jl/64572 "2021-07-14T11:46:58Z")

</div>

This post is to announce the release of EntropyHub.jl - a package for estimating various information-theoretic entropy measures from time series and image data. EntropyHub.jl (v0.1) features functions for computing: s…

---

## [Zygote push forward unable to differentiate through generic broadcast](https://discourse.julialang.org/t/zygote-push-forward-unable-to-differentiate-through-generic-broadcast/64364)

<div class="topic-metadata">

**Author:** [@RynoLaubscher](https://discourse.julialang.org/u/RynoLaubscher)\
**Replies:** 10\
**Last updated:** [July 14, 2021, 11:44am UTC](https://discourse.julialang.org/t/zygote-push-forward-unable-to-differentiate-through-generic-broadcast/64364 "2021-07-14T11:44:43Z")

</div>

Good day all, I am struggling a bit with something simple, I hope. I would like to use Zygote.pushforward to AD neural network outputs wrt inputs. For standard fully connected nets everything works fine, but as soon as …

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

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