# Latest

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

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

**Page:** 1262

---

## [Numerical analysis course with Julia](https://discourse.julialang.org/t/numerical-analysis-course-with-julia/34215)

<div class="topic-metadata">

**Author:** [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Replies:** 8\
**Last updated:** [September 20, 2021, 11:47am UTC](https://discourse.julialang.org/t/numerical-analysis-course-with-julia/34215 "2021-09-20T11:47:09Z")

</div>

In case it’s of interest, this semester I am teaching the undergraduate numerical analysis course (course code 18.330) at MIT, using Julia. Slides, notebooks and screen recordings are available at Comments are, of cou…

---

## [Difference between copy() and .= for two vectors](https://discourse.julialang.org/t/difference-between-copy-and-for-two-vectors/68429)

<div class="topic-metadata">

**Author:** [@vinicius\_de\_lima](https://discourse.julialang.org/u/vinicius_de_lima)\
**Replies:** 6\
**Last updated:** [September 20, 2021, 11:41am UTC](https://discourse.julialang.org/t/difference-between-copy-and-for-two-vectors/68429 "2021-09-20T11:41:43Z")

</div>

I need to copy the content of one vector to another that already exists, in this case is better to use .= instead of the copy() function?

---

## [How to use \`solve\_for()\` from \`Symbolics.jl\`?](https://discourse.julialang.org/t/how-to-use-solve-for-from-symbolics-jl/68445)

<div class="topic-metadata">

**Author:** [@wuxinyu](https://discourse.julialang.org/u/wuxinyu)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 8:42am UTC](https://discourse.julialang.org/t/how-to-use-solve-for-from-symbolics-jl/68445 "2021-09-20T08:42:33Z")

</div>

using Symbolics, Latexify copy\_to\_clipboard(true) @variables R Y X\_2 H\_1 G\_1 X\_1 G\_2 H\_2 G\_4 G\_3 F Symbolics.solve\_for(\[(R - Y - X\_2 \* H\_1) \* G\_1 ~ X\_1,(X\_1 - H\_2 \* Y) \* G\_2 ~ X\_2,X\_2 \* G\_3 + X\_1 \* G\_4 + F ~ Y\],\[X\_1,X\_2,…

---

## [Error with CompatHelper - Error Code 1](https://discourse.julialang.org/t/error-with-compathelper-error-code-1/68446)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 11:26am UTC](https://discourse.julialang.org/t/error-with-compathelper-error-code-1/68446 "2021-09-20T11:26:07Z")

</div>

Hello, I developed a package and I’m having issues with the CompatHelper. Recently I’ve changed my CI to GitHub Actions and noticed that the CompatHelper jobs are failing: I don’t know if this is connected with my n…

---

## [Speed up multidimensional code without Base.Cartesian](https://discourse.julialang.org/t/speed-up-multidimensional-code-without-base-cartesian/68328)

<div class="topic-metadata">

**Author:** [@stakaz](https://discourse.julialang.org/u/stakaz)\
**Replies:** 19\
**Last updated:** [September 20, 2021, 9:54am UTC](https://discourse.julialang.org/t/speed-up-multidimensional-code-without-base-cartesian/68328 "2021-09-20T09:54:20Z")

</div>

Hello, I wonder if someone could help me speeding up my arbitrary dimension code to run as fast as the explicit version but without using Base.Cartesian Consider the following examples using Random using BenchmarkTool…

---

## [Live/ Auto update of Julia core](https://discourse.julialang.org/t/live-auto-update-of-julia-core/68434)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 9:42am UTC](https://discourse.julialang.org/t/live-auto-update-of-julia-core/68434 "2021-09-20T09:42:57Z")

</div>

Does Julia has auto-update capability, like Firefox auto-update? My current approach is manual, i.e. download and extract from julialang.org. It may not necessary be auto-update, but something that can be triggered withi…

---

## [Participate in package/julia development without github account?](https://discourse.julialang.org/t/participate-in-package-julia-development-without-github-account/68441)

<div class="topic-metadata">

**Author:** [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 9:22am UTC](https://discourse.julialang.org/t/participate-in-package-julia-development-without-github-account/68441 "2021-09-20T09:22:01Z")

</div>

github.com belongs to Microsoft now and they have a rather loose attitude towards GDPR, DVSGO and some local law on user data reuse or user tracking. I’ve been pinged to enable F2A which is something i believe in and can…

---

## [Format date axis](https://discourse.julialang.org/t/format-date-axis/68352)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 9:06am UTC](https://discourse.julialang.org/t/format-date-axis/68352 "2021-09-20T09:06:57Z")

</div>

I only want to show the month and day like mm-01 for each month, excluding the year. How can I do that? using Dates, AlgebraOfGraphics let dates = Date(2010,1,1):Day(1):Date(2010,12,31) p = data((dates=dates, values=ra…

---

## [Best way to Continuous Integration and Automated Tests](https://discourse.julialang.org/t/best-way-to-continuous-integration-and-automated-tests/67838)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 6\
**Last updated:** [September 20, 2021, 9:04am UTC](https://discourse.julialang.org/t/best-way-to-continuous-integration-and-automated-tests/67838 "2021-09-20T09:04:58Z")

</div>

Hi, I have a package called NeuralFieldEq.jl and I’m having some troubles regarding the continuous integration and test automation. When I deployed the package I used Coveralls and Travis. However, when the v0.1.1 of t…

---

## [Inheritance and Dispatch with Restricted Type Parameters of Abstract Super Type](https://discourse.julialang.org/t/inheritance-and-dispatch-with-restricted-type-parameters-of-abstract-super-type/68444)

<div class="topic-metadata">

**Author:** [@manuelbb-upb](https://discourse.julialang.org/u/manuelbb-upb)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 8:20am UTC](https://discourse.julialang.org/t/inheritance-and-dispatch-with-restricted-type-parameters-of-abstract-super-type/68444 "2021-09-20T08:20:52Z")

</div>

Hi, I was confused by the dispatch behavior with a hierarchy of types with (restricted) type parameters. Now I want to know if I understand correctly why the following does not work as I initially expected: 1st Example …

---

## [How to better use pointers?](https://discourse.julialang.org/t/how-to-better-use-pointers/68433)

<div class="topic-metadata">

**Author:** [@Rratic](https://discourse.julialang.org/u/Rratic)\
**Replies:** 13\
**Last updated:** [September 20, 2021, 7:45am UTC](https://discourse.julialang.org/t/how-to-better-use-pointers/68433 "2021-09-20T07:45:33Z")

</div>

I love pointers, but there are limited functions in julia. C/C++ Julia p=&a p=pointer\_from\_objref(a) a=\*p a=unsafe\_pointer\_to\_objref(p) \*p=3 how? p-\>x=3 how? p-\>tab\["a"\]=3 how? etc.

---

## [Plotting bipartite graph](https://discourse.julialang.org/t/plotting-bipartite-graph/68443)

<div class="topic-metadata">

**Author:** [@sardinecan](https://discourse.julialang.org/u/sardinecan)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 7:43am UTC](https://discourse.julialang.org/t/plotting-bipartite-graph/68443 "2021-09-20T07:43:23Z")

</div>

Hi everyone! I would like to know if there is a way with GraphPlot and gplot() to make a simple bipartite graph representation (one “column” for each node category) ? Here is a small sample of my code bigraph = Met…

---

## [How to make GLMakie "open interactive windows" from Jupyter](https://discourse.julialang.org/t/how-to-make-glmakie-open-interactive-windows-from-jupyter/68299)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 7:33am UTC](https://discourse.julialang.org/t/how-to-make-glmakie-open-interactive-windows-from-jupyter/68299 "2021-09-20T07:33:22Z")

</div>

I am trying to reproduce a simple plot with a slider from the Makie docs. I read in the Makie basic tutorial To see the output of plotting commands when using CairoMakie, we recommend you either use an IDE which suppo…

---

## [How to make this plot interactive?](https://discourse.julialang.org/t/how-to-make-this-plot-interactive/68379)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 12\
**Last updated:** [September 20, 2021, 7:03am UTC](https://discourse.julialang.org/t/how-to-make-this-plot-interactive/68379 "2021-09-20T07:03:45Z")

</div>

Hi, The following is NOT a rant about Julia, or just a little bit about its state of documentation. I am doing the starter problems and struggling with the plotting. Coming from Matlab… plotting life was easy: close …

---

## [Downsides of using squash merging](https://discourse.julialang.org/t/downsides-of-using-squash-merging/68317)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 11\
**Last updated:** [September 20, 2021, 6:39am UTC](https://discourse.julialang.org/t/downsides-of-using-squash-merging/68317 "2021-09-20T06:39:24Z")

</div>

I keep wondering: are there any benefits to not use squash merging for projects hosted on GitHub or GitLab? To me, squashing makes the history much clearer, but I still see many projects using rebase

---

## [Loaderror: failed to precompile cairo \[159f3aea-2a34-519c-b102-8c37f9878175\] to c:\\users\\user\\.julia\\compiled\\v1.6\\cairo\\jl\_d1d4.tmp (windows 10)](https://discourse.julialang.org/t/loaderror-failed-to-precompile-cairo-159f3aea-2a34-519c-b102-8c37f9878175-to-c-users-user-julia-compiled-v1-6-cairo-jl-d1d4-tmp-windows-10/68437)

<div class="topic-metadata">

**Author:** [@shahla](https://discourse.julialang.org/u/shahla)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 6:36am UTC](https://discourse.julialang.org/t/loaderror-failed-to-precompile-cairo-159f3aea-2a34-519c-b102-8c37f9878175-to-c-users-user-julia-compiled-v1-6-cairo-jl-d1d4-tmp-windows-10/68437 "2021-09-20T06:36:54Z")

</div>

Hi i’m new in julia and when i want run code in vscode i see these errors, can you help me please??? \[ Info: Precompiling Cairo \[159f3aea-2a34-519c-b102-8c37f9878175\] ERROR: LoadError: LoadError: InitError: could not l…

---

## [Construct Plots.Plot object from a figure object of a backend, e.g., PlotlyJS.Plot](https://discourse.julialang.org/t/construct-plots-plot-object-from-a-figure-object-of-a-backend-e-g-plotlyjs-plot/68407)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 5:19am UTC](https://discourse.julialang.org/t/construct-plots-plot-object-from-a-figure-object-of-a-backend-e-g-plotlyjs-plot/68407 "2021-09-20T05:19:10Z")

</div>

Hi, I wonder if it’s possible to construct a Plots.Plot object from a PlotlyJS.Plot object or other backend’s Plot object :slight\_smile: For example, \_fig = PlotlyJS.Plot(...) fig = construct\_from\_plotlyjs(\_fig) # ty…

---

## [Julia Stopped working due to 2 deprecated methods](https://discourse.julialang.org/t/julia-stopped-working-due-to-2-deprecated-methods/59348)

<div class="topic-metadata">

**Author:** [@Tomas\_Rose](https://discourse.julialang.org/u/Tomas_Rose)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 4:54am UTC](https://discourse.julialang.org/t/julia-stopped-working-due-to-2-deprecated-methods/59348 "2021-09-20T04:54:09Z")

</div>

HI everyone, Maybe someone could help me out here. When I opened atom yesterday, there were two updates available. It has happened before that these updates must be installed or otherwise the program stops working. But …

---

## [Simpify type display in Pluto](https://discourse.julialang.org/t/simpify-type-display-in-pluto/68427)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 1:09am UTC](https://discourse.julialang.org/t/simpify-type-display-in-pluto/68427 "2021-09-20T01:09:16Z")

</div>

When I create some variables in Pluto, for example: I get always these Main.workspace2.. stuff before the actual types. Is it possible/easy to suppress that? Thanks.

---

## [Category-type axis in a scatter plot](https://discourse.julialang.org/t/category-type-axis-in-a-scatter-plot/68382)

<div class="topic-metadata">

**Author:** [@emchateau](https://discourse.julialang.org/u/emchateau)\
**Replies:** 2\
**Last updated:** [September 19, 2021, 10:40pm UTC](https://discourse.julialang.org/t/category-type-axis-in-a-scatter-plot/68382 "2021-09-19T22:40:25Z")

</div>

Hi, I would like to give a category-type in x-axis of a scatter plot. I’ve seen the xaxis discrete\_values attribute (cf. Axis Attributes · Plots) But I couldn’t find a way to use it nor any working exemple. Ex. using …

---

## [How create constant list of integers](https://discourse.julialang.org/t/how-create-constant-list-of-integers/68415)

<div class="topic-metadata">

**Author:** [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Replies:** 11\
**Last updated:** [September 19, 2021, 9:23pm UTC](https://discourse.julialang.org/t/how-create-constant-list-of-integers/68415 "2021-09-19T21:23:07Z")

</div>

Suppose I have a given positive integer n. What are simple ways to create a list of length n consisting of all zeros exactly, that is, filled with the integer 0? For example, if n has value 5, then I want to create \[0, …

---

## [Replace date year](https://discourse.julialang.org/t/replace-date-year/68301)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 22\
**Last updated:** [September 19, 2021, 9:21pm UTC](https://discourse.julialang.org/t/replace-date-year/68301 "2021-09-19T21:21:13Z")

</div>

d = Date(2010,01,01) How can I replace the year with 2011?

---

## [Pkg add vs update for installed package](https://discourse.julialang.org/t/pkg-add-vs-update-for-installed-package/68418)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [September 19, 2021, 8:50pm UTC](https://discourse.julialang.org/t/pkg-add-vs-update-for-installed-package/68418 "2021-09-19T20:50:34Z")

</div>

What is the difference between add Package and update Package, for a Package that has a version already installed?

---

## [Are \`const\` declarations required in Pluto?](https://discourse.julialang.org/t/are-const-declarations-required-in-pluto/68419)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 5\
**Last updated:** [September 19, 2021, 7:41pm UTC](https://discourse.julialang.org/t/are-const-declarations-required-in-pluto/68419 "2021-09-19T19:41:32Z")

</div>

Are const declaration necessary in Pluto? Since one cannot redefine the variables, I wander if everything is const (and thus type-stable) already (thus making the notebook cleaner). It is not clear to me, this for exam…

---

## [Color for each bar in a bar plot](https://discourse.julialang.org/t/color-for-each-bar-in-a-bar-plot/68420)

<div class="topic-metadata">

**Author:** [@ksamtsak](https://discourse.julialang.org/u/ksamtsak)\
**Replies:** 5\
**Last updated:** [September 19, 2021, 7:23pm UTC](https://discourse.julialang.org/t/color-for-each-bar-in-a-bar-plot/68420 "2021-09-19T19:23:42Z")

</div>

Hi! I want to plot a bar graph of a data frame with 1 column corresponding to the height of the bar and another to its color. For example: julia\> df= DataFrame("data"=\>rand(10), "color"=\>round.(Int,rand(10)\*9 .+ 1)) 10×…

---

## [Function on matrix transpose and performance](https://discourse.julialang.org/t/function-on-matrix-transpose-and-performance/20068)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 11\
**Last updated:** [September 19, 2021, 6:59pm UTC](https://discourse.julialang.org/t/function-on-matrix-transpose-and-performance/20068 "2021-09-19T18:59:08Z")

</div>

Here’s a quick example: foo(X::Matrix{Float64}) = maximum(X) bar(X::AbstractMatrix{Float64}) = maximum(X) X = randn(5000, 200); Xt = transpose(X); @btime foo($X) # 1 600.898 μs (0 allocations: 0 bytes) 4.6973555070913…

---

## [A particular function that modifies the input](https://discourse.julialang.org/t/a-particular-function-that-modifies-the-input/68387)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 4\
**Last updated:** [September 19, 2021, 5:55pm UTC](https://discourse.julialang.org/t/a-particular-function-that-modifies-the-input/68387 "2021-09-19T17:55:25Z")

</div>

I think I’m going to learn a lot whith this question. First, my principal goal is to transform any matrix according the following rule: For each column, find the first element equal to 1.1. Suposse the position of this…

---

## [Investigate slowness](https://discourse.julialang.org/t/investigate-slowness/68405)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 18\
**Last updated:** [September 19, 2021, 5:29pm UTC](https://discourse.julialang.org/t/investigate-slowness/68405 "2021-09-19T17:29:55Z")

</div>

This question is about how I should go about investigating why exactly my code is slow. The scenario is that I have a large-ish (10GB) Vector{Any} that I want to interate over, do some calculations, and insert into anot…

---

## [Plotting NUTS trace](https://discourse.julialang.org/t/plotting-nuts-trace/68324)

<div class="topic-metadata">

**Author:** [@amavrits](https://discourse.julialang.org/u/amavrits)\
**Replies:** 5\
**Last updated:** [September 19, 2021, 4:01pm UTC](https://discourse.julialang.org/t/plotting-nuts-trace/68324 "2021-09-19T16:01:19Z")

</div>

Hi all I am running the following model for Bayesian updating: using Turing, Distributions using StatsPlots (Script is reading the data here) @model function BayesLinearRegression(x, y) intercept ~ filldist(Norma…

---

## [Julia Gender Inclusive digital coffee meeting](https://discourse.julialang.org/t/julia-gender-inclusive-digital-coffee-meeting/68411)

<div class="topic-metadata">

**Author:** [@kimauth](https://discourse.julialang.org/u/kimauth)\
**Replies:** 0\
**Last updated:** [September 19, 2021, 2:51pm UTC](https://discourse.julialang.org/t/julia-gender-inclusive-digital-coffee-meeting/68411 "2021-09-19T14:51:01Z")

</div>

Dear all! Julia Gender Inclusive invites to another coffee meetup on Sunday, September 26th at 11AM EDT / 3pm UTC / 5pm CEST / 8:30 pm IST! The coffee meetups are meant to give a space for getting to know each other, d…

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

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