# Latest

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

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

**Page:** 1571

---

## [Julia Pkg Update Stalls on Update in Docker - us-east-ci registry](https://discourse.julialang.org/t/julia-pkg-update-stalls-on-update-in-docker-us-east-ci-registry/50313)

<div class="topic-metadata">

**Author:** [@Tim\_Wheeler](https://discourse.julialang.org/u/Tim_Wheeler)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 6:51pm UTC](https://discourse.julialang.org/t/julia-pkg-update-stalls-on-update-in-docker-us-east-ci-registry/50313 "2020-11-17T18:51:09Z")

</div>

We are using Julia in a CI workflow. For the last 24 hours our CI workflow has been hanging on Pkg.update. After digging in, it looks like the docker can’t wget https://pkg.julialang.org/registries: root@whatever:~# wge…

---

## [Add @scalar macro to Base?](https://discourse.julialang.org/t/add-scalar-macro-to-base/50255)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 8\
**Last updated:** [November 17, 2020, 5:54pm UTC](https://discourse.julialang.org/t/add-scalar-macro-to-base/50255 "2020-11-17T17:54:00Z")

</div>

Would it be useful if Base exported an @scalar macro? The usage of @scalar would be to declare that a struct behaves as a scalar for broadcasting. So this @scalar struct A end would be re-written to this: struct A end…

---

## [BifurcationKit.jl: Automatic Bifurcation Diagrams in Julia](https://discourse.julialang.org/t/bifurcationkit-jl-automatic-bifurcation-diagrams-in-julia/42192)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 3\
**Last updated:** [November 17, 2020, 4:52pm UTC](https://discourse.julialang.org/t/bifurcationkit-jl-automatic-bifurcation-diagrams-in-julia/42192 "2020-11-17T16:52:04Z")

</div>

Dear All, I am writing this post to report about my package BifurcationKit.jl. First, this is a new name for an old package :wink: The focus of this new version is automatic bifurcation diagram (aBD) computation for PD…

---

## [Parallel programing with Distributed Arrays](https://discourse.julialang.org/t/parallel-programing-with-distributed-arrays/50305)

<div class="topic-metadata">

**Author:** [@hyacykcharel](https://discourse.julialang.org/u/hyacykcharel)\
**Replies:** 0\
**Last updated:** [November 17, 2020, 3:59pm UTC](https://discourse.julialang.org/t/parallel-programing-with-distributed-arrays/50305 "2020-11-17T15:59:12Z")

</div>

Hello, I’m trying to run this code, but why I’m I getting these 2 rows in the Middle with 00000, can someone help me, to get that fixed, please? using Distributed #Bereitstellung der Bibliothekee zur Parallelen Programi…

---

## [Scatter3d and pyplot backend in Plots.jl](https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238)

<div class="topic-metadata">

**Author:** [@keithjlee](https://discourse.julialang.org/u/keithjlee)\
**Replies:** 4\
**Last updated:** [November 17, 2020, 3:43pm UTC](https://discourse.julialang.org/t/scatter3d-and-pyplot-backend-in-plots-jl/50238 "2020-11-17T15:43:46Z")

</div>

Hello! I’m having a very strange issue trying to visualize a 3D scatterplot using the pyplot backend in Plots.jl. The Z-axis position of my inputted coordinates do not seem to register, and only stays on the 0 value, whi…

---

## [DifferentialEquations - Derivatives in ODE function/ nesting AD](https://discourse.julialang.org/t/differentialequations-derivatives-in-ode-function-nesting-ad/50100)

<div class="topic-metadata">

**Author:** [@Andreas\_Schlaginhauf](https://discourse.julialang.org/u/Andreas_Schlaginhauf)\
**Replies:** 6\
**Last updated:** [November 17, 2020, 2:57pm UTC](https://discourse.julialang.org/t/differentialequations-derivatives-in-ode-function-nesting-ad/50100 "2020-11-17T14:57:21Z")

</div>

If the ODE function of a neural ODE includes the gradient f’(x) of a neural network f(x), we need to calculate second order gradients of f(x) in the backward pass. For me this led to all sorts of problems when the AD met…

---

## [Is it necessary to use "global" with try/catch inside a function?](https://discourse.julialang.org/t/is-it-necessary-to-use-global-with-try-catch-inside-a-function/50300)

<div class="topic-metadata">

**Author:** [@Jacob\_Stevens](https://discourse.julialang.org/u/Jacob_Stevens)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 1:44pm UTC](https://discourse.julialang.org/t/is-it-necessary-to-use-global-with-try-catch-inside-a-function/50300 "2020-11-17T13:44:36Z")

</div>

I’m running a simple find\_zero(), and to help me identify errors the core of the function being solved is inside a try/catch circuit: function getA(input) # then main simulation println("Running 1982 onwa…

---

## [Is there a continuous range type in julia?](https://discourse.julialang.org/t/is-there-a-continuous-range-type-in-julia/50298)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 1:29pm UTC](https://discourse.julialang.org/t/is-there-a-continuous-range-type-in-julia/50298 "2020-11-17T13:29:49Z")

</div>

Hi, I was wondering if there exists a continuous range type. The idea would be to be able to have something like 0.5 in CRange(0,1) to return true. The interest is mostly syntactic I guess, but since continuous ranges…

---

## [JuMP.set\_objective\_coefficient performance](https://discourse.julialang.org/t/jump-set-objective-coefficient-performance/50283)

<div class="topic-metadata">

**Author:** [@omicron](https://discourse.julialang.org/u/omicron)\
**Replies:** 3\
**Last updated:** [November 17, 2020, 1:27pm UTC](https://discourse.julialang.org/t/jump-set-objective-coefficient-performance/50283 "2020-11-17T13:27:38Z")

</div>

Hi, I’m using JuMP to build LP-problems and later I want to update the objective coefficients with the function set\_objective\_coefficient instead of building the whole LP again. Below are the functions I defined and the …

---

## [How to solve error while generating random number inside kernel?](https://discourse.julialang.org/t/how-to-solve-error-while-generating-random-number-inside-kernel/50289)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 4\
**Last updated:** [November 17, 2020, 1:25pm UTC](https://discourse.julialang.org/t/how-to-solve-error-while-generating-random-number-inside-kernel/50289 "2020-11-17T13:25:04Z")

</div>

Hi, I am a newbie to CUDA and I am trying to generate random number inside a gpu kernel using the following commands, using CUDA using Random function kernel(cu\_status) idx = threadIdx().x unif = CUDA.rand(1) …

---

## [Is their any clear documentation that outlines what == and === does?](https://discourse.julialang.org/t/is-their-any-clear-documentation-that-outlines-what-and-does/50232)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 7\
**Last updated:** [November 17, 2020, 1:18pm UTC](https://discourse.julialang.org/t/is-their-any-clear-documentation-that-outlines-what-and-does/50232 "2020-11-17T13:18:29Z")

</div>

I’ve searched the documentation but was unable to find it. I found this answer on SO, however does any documentation exist that explains it?

---

## [Help on converting a plot animated](https://discourse.julialang.org/t/help-on-converting-a-plot-animated/50017)

<div class="topic-metadata">

**Author:** [@Amirrezz94](https://discourse.julialang.org/u/Amirrezz94)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 1:01pm UTC](https://discourse.julialang.org/t/help-on-converting-a-plot-animated/50017 "2020-11-17T13:01:03Z")

</div>

Hi, I have a set of data as results of running an MPC on a plant. I Can plot them with different backends but all of them are kind of static and I want to have the plot somehow animated in a way that all the values send…

---

## [Colorbar cutoff in Plots.jl with pyplot](https://discourse.julialang.org/t/colorbar-cutoff-in-plots-jl-with-pyplot/48178)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 12:47pm UTC](https://discourse.julialang.org/t/colorbar-cutoff-in-plots-jl-with-pyplot/48178 "2020-11-17T12:47:06Z")

</div>

I’ve got the following issue (see attached figure), where, with my font selections, the colorbar tick labels are cutoff. How do I expand the figure to include them or shrink the width of the colorbar?

---

## [Boundary value is not what I defined](https://discourse.julialang.org/t/boundary-value-is-not-what-i-defined/50290)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 0\
**Last updated:** [November 17, 2020, 11:12am UTC](https://discourse.julialang.org/t/boundary-value-is-not-what-i-defined/50290 "2020-11-17T11:12:49Z")

</div>

Hello all, I started using DifferentialEquations package to solve a transit convection-diffusion equation with reaction, but the result looks strange. Firstly, I define a du/dt = -usg du/dx + Deg d^2u/dx the boundary …

---

## [\`norm\` function error on CuDeviceArray](https://discourse.julialang.org/t/norm-function-error-on-cudevicearray/50273)

<div class="topic-metadata">

**Author:** [@HaoxuanGuo](https://discourse.julialang.org/u/HaoxuanGuo)\
**Replies:** 1\
**Last updated:** [November 17, 2020, 7:12am UTC](https://discourse.julialang.org/t/norm-function-error-on-cudevicearray/50273 "2020-11-17T07:12:21Z")

</div>

This code will get an error about norm function using CUDA using Adapt using LinearAlgebra struct TestType{T\<:AbstractArray} a::T b::T c::Float32 end Adapt.adapt\_structure(to, x::TestType) = TestType(adapt…

---

## [In-place orthogonal/unitary transforms?](https://discourse.julialang.org/t/in-place-orthogonal-unitary-transforms/50111)

<div class="topic-metadata">

**Author:** [@pkairys](https://discourse.julialang.org/u/pkairys)\
**Replies:** 12\
**Last updated:** [November 17, 2020, 10:46am UTC](https://discourse.julialang.org/t/in-place-orthogonal-unitary-transforms/50111 "2020-11-17T10:46:43Z")

</div>

Say I want to perform a unitary/orthogonal transformation of an operator: U^\\dagger A U Is there a way to do this without allocating a new array? I see that there is a method for lmul!(A,B) that will do AB and place t…

---

## [I'm not able to use Gadfly + Weave](https://discourse.julialang.org/t/im-not-able-to-use-gadfly-weave/47810)

<div class="topic-metadata">

**Author:** [@conditionality](https://discourse.julialang.org/u/conditionality)\
**Replies:** 6\
**Last updated:** [November 17, 2020, 9:39am UTC](https://discourse.julialang.org/t/im-not-able-to-use-gadfly-weave/47810 "2020-11-17T09:39:45Z")

</div>

I have a very simple .jmd file \\\`\`\`julia using Gadfly x = range(0, step=0.1, stop=2\*pi) println(x) Gadfly.plot(x = x, y = sin.(x)) \\\`\`\` (I had to escape the backticks when composing this message). When calling weave on…

---

## [How to create, run and then debug a basic Julia project?](https://discourse.julialang.org/t/how-to-create-run-and-then-debug-a-basic-julia-project/50252)

<div class="topic-metadata">

**Author:** [@acycliq](https://discourse.julialang.org/u/acycliq)\
**Replies:** 1\
**Last updated:** [November 17, 2020, 8:54am UTC](https://discourse.julialang.org/t/how-to-create-run-and-then-debug-a-basic-julia-project/50252 "2020-11-17T08:54:44Z")

</div>

Hi Is there any source to explain how to create a Julia project, preferably in VSCode. I try to lean my first steps and I still havent figured out how to do a basic toy project with a few functions on their own ,jl file…

---

## [Random walks inside a model](https://discourse.julialang.org/t/random-walks-inside-a-model/49994)

<div class="topic-metadata">

**Author:** [@Camilo1704](https://discourse.julialang.org/u/Camilo1704)\
**Replies:** 4\
**Last updated:** [November 17, 2020, 8:49am UTC](https://discourse.julialang.org/t/random-walks-inside-a-model/49994 "2020-11-17T08:49:02Z")

</div>

Hi guys, I’m wondering if there is a way to include a variable which is a random walk in a model. Particularly, if inside my model I have the lines of code shown below, is there a walk around to do it more efficiently? …

---

## [Are there any way to copy a Union Array to GPU with CUDA.jl?](https://discourse.julialang.org/t/are-there-any-way-to-copy-a-union-array-to-gpu-with-cuda-jl/50272)

<div class="topic-metadata">

**Author:** [@HaoxuanGuo](https://discourse.julialang.org/u/HaoxuanGuo)\
**Replies:** 1\
**Last updated:** [November 17, 2020, 7:13am UTC](https://discourse.julialang.org/t/are-there-any-way-to-copy-a-union-array-to-gpu-with-cuda-jl/50272 "2020-11-17T07:13:41Z")

</div>

Look at this example abstract type AbstractTest end struct ATest \<: AbstractTest end struct BTest \<: AbstractTest end struct CTest{T \<: AbstractTest} a::T end using CUDA CuArray(\[CTest(ATest()), CTest(BTest())\]) …

---

## [Are there any way to copy a Dict or a custom datatype which contains an Array to GPU by CUDA?](https://discourse.julialang.org/t/are-there-any-way-to-copy-a-dict-or-a-custom-datatype-which-contains-an-array-to-gpu-by-cuda/50217)

<div class="topic-metadata">

**Author:** [@HaoxuanGuo](https://discourse.julialang.org/u/HaoxuanGuo)\
**Replies:** 6\
**Last updated:** [November 17, 2020, 7:13am UTC](https://discourse.julialang.org/t/are-there-any-way-to-copy-a-dict-or-a-custom-datatype-which-contains-an-array-to-gpu-by-cuda/50217 "2020-11-17T07:13:01Z")

</div>

I want to use the LinearAlgebra library to simplify my programming. So, I warp some Arrays in an struct. But I find I can not copy it to GPU because it is a non-bitstype. Similarly, I want to look up some tables which i…

---

## [Closures and Let Blocks](https://discourse.julialang.org/t/closures-and-let-blocks/50197)

<div class="topic-metadata">

**Author:** [@nucklass](https://discourse.julialang.org/u/nucklass)\
**Replies:** 4\
**Last updated:** [November 17, 2020, 6:48am UTC](https://discourse.julialang.org/t/closures-and-let-blocks/50197 "2020-11-17T06:48:07Z")

</div>

Anyone have any basic examples of when to use/what the effects are of having a let block along with a closure? I’ve been looking to learn more about functional programming in Julia and reading through the manual, but I …

---

## [Really small plot picture](https://discourse.julialang.org/t/really-small-plot-picture/18247)

<div class="topic-metadata">

**Author:** [@muriloasouza](https://discourse.julialang.org/u/muriloasouza)\
**Replies:** 8\
**Last updated:** [November 17, 2020, 5:48am UTC](https://discourse.julialang.org/t/really-small-plot-picture/18247 "2020-11-17T05:48:42Z")

</div>

I’m trying to plot a groupedbar graphic using Statsplots, but i’m getting a really small image, like this: Is there anyway i can plot another groupedbar graphic in this same image? Like above or below that one?

---

## [Request for comments: filenames with metadata](https://discourse.julialang.org/t/request-for-comments-filenames-with-metadata/50266)

<div class="topic-metadata">

**Author:** [@alhirzel](https://discourse.julialang.org/u/alhirzel)\
**Replies:** 1\
**Last updated:** [November 17, 2020, 3:05am UTC](https://discourse.julialang.org/t/request-for-comments-filenames-with-metadata/50266 "2020-11-17T03:05:12Z")

</div>

When managing some bills using a toy framework I’m developing in Julia, I am finding it’s useful to embed some metadata in the filename. I wanted to share an example here for comments: does anyone know of a library in an…

---

## [How to make a command with brackets in it](https://discourse.julialang.org/t/how-to-make-a-command-with-brackets-in-it/50268)

<div class="topic-metadata">

**Author:** [@scone](https://discourse.julialang.org/u/scone)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 1:38am UTC](https://discourse.julialang.org/t/how-to-make-a-command-with-brackets-in-it/50268 "2020-11-17T01:38:42Z")

</div>

Hi everyone, this is very simple and frutrating. I just want to make this into a command that I can run: for x = 4:2:10 y = \[4 5.5 7\] run( \`surfaceTransformPoints -translate '( $x $y 0 )' file.stl file\_temp.st…

---

## [Using Julia in GitHub Actions](https://discourse.julialang.org/t/using-julia-in-github-actions/27805)

<div class="topic-metadata">

**Author:** [@SaschaMann](https://discourse.julialang.org/u/SaschaMann)\
**Replies:** 24\
**Last updated:** [November 16, 2020, 11:04pm UTC](https://discourse.julialang.org/t/using-julia-in-github-actions/27805 "2020-11-16T23:04:40Z")

</div>

Hey everyone, I’ve created a GitHub Action that sets up a Julia environment as a base for CI and other automation tasks. The action lets you setup 32- and 64-bit Julia environments on all supported OSes (Windows Server…

---

## [Makie 3D mesh plot is not as good as before](https://discourse.julialang.org/t/makie-3d-mesh-plot-is-not-as-good-as-before/39808)

<div class="topic-metadata">

**Author:** [@yusri-dh](https://discourse.julialang.org/u/yusri-dh)\
**Replies:** 6\
**Last updated:** [November 16, 2020, 11:16pm UTC](https://discourse.julialang.org/t/makie-3d-mesh-plot-is-not-as-good-as-before/39808 "2020-11-16T23:16:24Z")

</div>

In the Makie v0.10.0, plotting 3D mesh is not as good as before. Here is minimal working example using Makie v0.10.0, shell\> wget https://github.com/libigl/libigl-tutorial-data/raw/master/bumpy-cube.obj using Makie, Fi…

---

## [Readstring encoding](https://discourse.julialang.org/t/readstring-encoding/4245)

<div class="topic-metadata">

**Author:** [@merl-dev](https://discourse.julialang.org/u/merl-dev)\
**Replies:** 8\
**Last updated:** [November 16, 2020, 10:55pm UTC](https://discourse.julialang.org/t/readstring-encoding/4245 "2020-11-16T22:55:17Z")

</div>

Just got a project with quite a few iso8859-1 encoded files. Is there a concise way to readstring a given file in Julia that is not utf-8? UPDATED: forgot about StringEncodings.jl

---

## [Order of arguments in Differential Equations functions](https://discourse.julialang.org/t/order-of-arguments-in-differential-equations-functions/28096)

<div class="topic-metadata">

**Author:** [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Replies:** 21\
**Last updated:** [November 16, 2020, 10:45pm UTC](https://discourse.julialang.org/t/order-of-arguments-in-differential-equations-functions/28096 "2020-11-16T22:45:48Z")

</div>

I am going through the documentation of DifferentialEquation and found this in the tutorial. The function is defined as parameterized\_lorenz(du,u,p,t) but when the arguments are supplied in a different order as prob = …

---

## [How to mix Markdown and Interact.jl?](https://discourse.julialang.org/t/how-to-mix-markdown-and-interact-jl/50248)

<div class="topic-metadata">

**Author:** [@Jojo\_Dad](https://discourse.julialang.org/u/Jojo_Dad)\
**Replies:** 1\
**Last updated:** [November 16, 2020, 10:33pm UTC](https://discourse.julialang.org/t/how-to-mix-markdown-and-interact-jl/50248 "2020-11-16T22:33:41Z")

</div>

I tried my first steps on WebIO + Interact.jl by function app(req) mymarkdown = md""" # Hello, Markdown! ## Lorem ipsum \* Point 1 \* Point 2 Cauchy-Schwartz inequality: $$\\left(\\sum\_{k=1}^n a\_k b\_k \\right)^2 \\leq …

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

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