# Latest

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

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

**Page:** 1621

---

## [Why can't I generate a function with multiple arguments using Symbol("arg1,arg2")?](https://discourse.julialang.org/t/why-cant-i-generate-a-function-with-multiple-arguments-using-symbol-arg1-arg2/47254)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 12:05pm UTC](https://discourse.julialang.org/t/why-cant-i-generate-a-function-with-multiple-arguments-using-symbol-arg1-arg2/47254 "2020-09-25T12:05:53Z")

</div>

I’m not sure what’s going on here, and I’m not sure if this is a valid use of Symbols either. julia\> for TA in \[Symbol("a,b")\] @eval f($TA) = a + b end julia\> methods(f) # 1 method for generic function "f…

---

## [Question about VS code extension crash](https://discourse.julialang.org/t/question-about-vs-code-extension-crash/45769)

<div class="topic-metadata">

**Author:** [@Jian\_Zhao](https://discourse.julialang.org/u/Jian_Zhao)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 11:52am UTC](https://discourse.julialang.org/t/question-about-vs-code-extension-crash/45769 "2020-09-25T11:52:50Z")

</div>

when I run println(“Hello world”), it works. However, when I want to plot something or run 1+1, it shows there is a code entension crash. I can run this on Jupyter, and can’t do it on VS code. Does anyone know why? t…

---

## [I have doubts about using Pots.jl](https://discourse.julialang.org/t/i-have-doubts-about-using-pots-jl/47252)

<div class="topic-metadata">

**Author:** [@adeil](https://discourse.julialang.org/u/adeil)\
**Replies:** 7\
**Last updated:** [September 25, 2020, 10:41am UTC](https://discourse.julialang.org/t/i-have-doubts-about-using-pots-jl/47252 "2020-09-25T10:41:31Z")

</div>

I’m trying to plot this function x = 0.2 \* cos (2 \* t + π) but there is something wrong with the definition of t. " using Pkg Pkg.add(“Plots”) using Plots t=range(0,stop=10, length=100) #0:0.01:2π y = 0.2cos.(2\*t…

---

## [Why is this code run-time dispatch/slow?](https://discourse.julialang.org/t/why-is-this-code-run-time-dispatch-slow/47178)

<div class="topic-metadata">

**Author:** [@JamesK](https://discourse.julialang.org/u/JamesK)\
**Replies:** 16\
**Last updated:** [September 25, 2020, 10:34am UTC](https://discourse.julialang.org/t/why-is-this-code-run-time-dispatch-slow/47178 "2020-09-25T10:34:29Z")

</div>

I made a minimum reproducible example for a performance issue I am having with my code: mutable struct Array\_container array\_field::Array{Float64} end function foo(a::Array\_container, b::Array\_container) a.arra…

---

## [Explain the results of ceiling Dates?](https://discourse.julialang.org/t/explain-the-results-of-ceiling-dates/44553)

<div class="topic-metadata">

**Author:** [@bigdataman2015](https://discourse.julialang.org/u/bigdataman2015)\
**Replies:** 3\
**Last updated:** [September 25, 2020, 10:17am UTC](https://discourse.julialang.org/t/explain-the-results-of-ceiling-dates/44553 "2020-09-25T10:17:49Z")

</div>

julia\> using Dates julia\> ceil(DateTime(2013, 2, 13, 0, 31, 24), Dates.Minute(15)) 2013-02-13T00:45:00 julia\> ceil(DateTime(2013, 2, 13, 0, 31, 24), Dates.Minute(16)) 2013-02-13T00:32:00 julia\> ceil(DateTime(2013, 2…

---

## [Understanding and avoiding allocations with StructArrays](https://discourse.julialang.org/t/understanding-and-avoiding-allocations-with-structarrays/46880)

<div class="topic-metadata">

**Author:** [@touste](https://discourse.julialang.org/u/touste)\
**Replies:** 16\
**Last updated:** [September 25, 2020, 9:42am UTC](https://discourse.julialang.org/t/understanding-and-avoiding-allocations-with-structarrays/46880 "2020-09-25T09:42:15Z")

</div>

Hi all, I’m working on a piece of code where I have triangles which are made of points. Each point has a number of properties such as position, velocity, force… In some part of the code I need to calculate the force fo…

---

## [\[ANN\] JSON3.jl 1.0 Release + new StructTypes.jl Package](https://discourse.julialang.org/t/ann-json3-jl-1-0-release-new-structtypes-jl-package/34700)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 1\
**Last updated:** [September 25, 2020, 9:17am UTC](https://discourse.julialang.org/t/ann-json3-jl-1-0-release-new-structtypes-jl-package/34700 "2020-09-25T09:17:00Z")

</div>

Just tagged a 1.0 release for JSON3.jl. Highlights include: Moving the core StructType trait into a separate package StructTypes.jl, to allow further integration/re-use by other packages; what this means is that instea…

---

## [Plotting over ssh without X11](https://discourse.julialang.org/t/plotting-over-ssh-without-x11/47247)

<div class="topic-metadata">

**Author:** [@Niclas\_Wiberg](https://discourse.julialang.org/u/Niclas_Wiberg)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 9:05am UTC](https://discourse.julialang.org/t/plotting-over-ssh-without-x11/47247 "2020-09-25T09:05:19Z")

</div>

I am running Julia over ssh in VSCode. What plotting options are there? I don’t have X11. VSCode can display images from the remote file system, so in principle it should be possible to plot to a file, and then show it …

---

## [Revise package does not seem to work for me](https://discourse.julialang.org/t/revise-package-does-not-seem-to-work-for-me/44453)

<div class="topic-metadata">

**Author:** [@pixel](https://discourse.julialang.org/u/pixel)\
**Replies:** 9\
**Last updated:** [September 25, 2020, 8:22am UTC](https://discourse.julialang.org/t/revise-package-does-not-seem-to-work-for-me/44453 "2020-09-25T08:22:19Z")

</div>

Hi there I have just tried to install Revise and the usage example given in Home · Revise.jl does not seem to work as expected. I was wondering if someone could point out what I am doing wrong? The full list of what I …

---

## [Functional Programming Meetup](https://discourse.julialang.org/t/functional-programming-meetup/47248)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [September 25, 2020, 8:09am UTC](https://discourse.julialang.org/t/functional-programming-meetup/47248 "2020-09-25T08:09:36Z")

</div>

https://www.meetup.com/Explore-Functional-Programming/ Can we get a Julia speaker for the first meeting maybe?

---

## [How to convert an array to a dataframe?](https://discourse.julialang.org/t/how-to-convert-an-array-to-a-dataframe/47233)

<div class="topic-metadata">

**Author:** [@DShiu](https://discourse.julialang.org/u/DShiu)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 7:05am UTC](https://discourse.julialang.org/t/how-to-convert-an-array-to-a-dataframe/47233 "2020-09-25T07:05:48Z")

</div>

column = rand(Int64, 10) DataFrame(column, \[:col1\]) This gives: ERROR: ArgumentError: columns argument must be a vector of AbstractVector objects

---

## [Package development with or without own environment?](https://discourse.julialang.org/t/package-development-with-or-without-own-environment/47192)

<div class="topic-metadata">

**Author:** [@Jon\_Norberg](https://discourse.julialang.org/u/Jon_Norberg)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 5:43am UTC](https://discourse.julialang.org/t/package-development-with-or-without-own-environment/47192 "2020-09-25T05:43:29Z")

</div>

I find it a bit hard to understand environments in relation to package development. If I develop a fairly simple package and mostly want others to just clone (may register later) and use it, is there any reason to have i…

---

## [How can I use Zygote to get the gradient](https://discourse.julialang.org/t/how-can-i-use-zygote-to-get-the-gradient/47237)

<div class="topic-metadata">

**Author:** [@Yoobi](https://discourse.julialang.org/u/Yoobi)\
**Replies:** 6\
**Last updated:** [September 25, 2020, 5:30am UTC](https://discourse.julialang.org/t/how-can-i-use-zygote-to-get-the-gradient/47237 "2020-09-25T05:30:44Z")

</div>

Hello, I am new here and i just add the pkg Zygote to find the gradient of the function (2+2\*alpha-3)^2, i want to get the value of alpha how can i do that

---

## [Why is Tuple Covariant / NamedTuple is not?](https://discourse.julialang.org/t/why-is-tuple-covariant-namedtuple-is-not/47236)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 2:19am UTC](https://discourse.julialang.org/t/why-is-tuple-covariant-namedtuple-is-not/47236 "2020-09-25T02:19:33Z")

</div>

Hello everyone, Here is my situation when you work … WITH TUPLE A = (:a, (2,3)) B = (:b, (2,3,4)) using Test @test typeof(A) !== typeof(B) # but, you can catch them with vararg T = Tuple{Symbol, NTuple{N,Int} where…

---

## [How to call cuda functions that are not implemented in CUDA.jl?](https://discourse.julialang.org/t/how-to-call-cuda-functions-that-are-not-implemented-in-cuda-jl/47219)

<div class="topic-metadata">

**Author:** [@cuchxq](https://discourse.julialang.org/u/cuchxq)\
**Replies:** 8\
**Last updated:** [September 25, 2020, 1:20am UTC](https://discourse.julialang.org/t/how-to-call-cuda-functions-that-are-not-implemented-in-cuda-jl/47219 "2020-09-25T01:20:26Z")

</div>

If there is a function in CUDA, but have not been implemented in CUDA.jl, is it possible to call that function using ccall? I am trying it with a call to dgemm ( gemm is available through CUDA.jl, but I want to try a fu…

---

## [Julia for Data Science book](https://discourse.julialang.org/t/julia-for-data-science-book/45313)

<div class="topic-metadata">

**Author:** [@Episki](https://discourse.julialang.org/u/Episki)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 12:58am UTC](https://discourse.julialang.org/t/julia-for-data-science-book/45313 "2020-09-25T00:58:37Z")

</div>

Hi all, Is the book “Julia for Data Science” by @davidanthoff (“Julia for Data Science · Julia for Data Science”) being worked on? As a newcomer it would be a game changer, the same way the book “R for Data Science” wa…

---

## [Why my plot looks weired and different from others'?](https://discourse.julialang.org/t/why-my-plot-looks-weired-and-different-from-others/39536)

<div class="topic-metadata">

**Author:** [@DShiu](https://discourse.julialang.org/u/DShiu)\
**Replies:** 15\
**Last updated:** [September 24, 2020, 10:19pm UTC](https://discourse.julialang.org/t/why-my-plot-looks-weired-and-different-from-others/39536 "2020-09-24T22:19:12Z")

</div>

I used the code from Quantecon to create a plot. It looks weird with thick lines and its background. I guess the issue is with my computer because both Jupyter notebook and Juno gave the same result.

---

## [Sparse high dimensional array support einsum?](https://discourse.julialang.org/t/sparse-high-dimensional-array-support-einsum/47222)

<div class="topic-metadata">

**Author:** [@yupbank](https://discourse.julialang.org/u/yupbank)\
**Replies:** 6\
**Last updated:** [September 24, 2020, 9:51pm UTC](https://discourse.julialang.org/t/sparse-high-dimensional-array-support-einsum/47222 "2020-09-24T21:51:30Z")

</div>

Hello there, I’m wondering if there is any effort in high dimensional sparse tensors with einsum support? For example, I’m working on something that can be abstracted into high dimensional tensors and i need to perform…

---

## [Seccomp-bpf failure in syscall 0230](https://discourse.julialang.org/t/seccomp-bpf-failure-in-syscall-0230/47172)

<div class="topic-metadata">

**Author:** [@gkshenaut](https://discourse.julialang.org/u/gkshenaut)\
**Replies:** 3\
**Last updated:** [September 24, 2020, 9:40pm UTC](https://discourse.julialang.org/t/seccomp-bpf-failure-in-syscall-0230/47172 "2020-09-24T21:40:00Z")

</div>

Hi, I just installed JuliaPro on a new 20.04 LTS Ubuntu system. When I run the Launch\_JuliaPro script, I get the following message three times: ../../sandbox/linux/seccomp-bpf-helpers/sigsys\_handlers.cc:\*\*CRASHING\*\*:sec…

---

## [Complementarity in MOI wrappers](https://discourse.julialang.org/t/complementarity-in-moi-wrappers/47225)

<div class="topic-metadata">

**Author:** [@mrt](https://discourse.julialang.org/u/mrt)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 8:51pm UTC](https://discourse.julialang.org/t/complementarity-in-moi-wrappers/47225 "2020-09-24T20:51:09Z")

</div>

I’m writing a MathOptInterface wrapper for a solver, and have been trying to implement complementarity. How do I define the problem attribute for the optimizer? If I naively attempt e.g. : comp::Vector{ConstraintInfo{MO…

---

## [Evaluating a SyntaxTree.genfun within a function](https://discourse.julialang.org/t/evaluating-a-syntaxtree-genfun-within-a-function/46744)

<div class="topic-metadata">

**Author:** [@Jhall7529](https://discourse.julialang.org/u/Jhall7529)\
**Replies:** 6\
**Last updated:** [September 23, 2020, 9:30pm UTC](https://discourse.julialang.org/t/evaluating-a-syntaxtree-genfun-within-a-function/46744 "2020-09-23T21:30:08Z")

</div>

Im trying to evaluate a string as a function within a function. I have made good progress: using SyntaxTree function Evaluate(some\_function::String ; variables = \[:x\]) g = genfun(Meta.parse(some\_function), variables…

---

## [Syntax Idea, automated argument composition](https://discourse.julialang.org/t/syntax-idea-automated-argument-composition/46130)

<div class="topic-metadata">

**Author:** [@dehann](https://discourse.julialang.org/u/dehann)\
**Replies:** 3\
**Last updated:** [September 24, 2020, 7:13pm UTC](https://discourse.julialang.org/t/syntax-idea-automated-argument-composition/46130 "2020-09-24T19:13:30Z")

</div>

Hi, I was wondering about a possible syntax extension “automated argument composition” and if something like this already exists in Julia’s dispatch? The closest I could find is function composition and negation but it’…

---

## [Dispatch on Unicode categories](https://discourse.julialang.org/t/dispatch-on-unicode-categories/47220)

<div class="topic-metadata">

**Author:** [@sean-bennett112](https://discourse.julialang.org/u/sean-bennett112)\
**Replies:** 3\
**Last updated:** [September 24, 2020, 5:59pm UTC](https://discourse.julialang.org/t/dispatch-on-unicode-categories/47220 "2020-09-24T17:59:27Z")

</div>

Hi, I’ve been using Python for a long time and am starting to learn Julia a bit by going through the MIT course as well as Exercism exercises. I recently came across a simple ROT13 exercise in Exercism. As part of the s…

---

## [Making gif out of graphs](https://discourse.julialang.org/t/making-gif-out-of-graphs/47143)

<div class="topic-metadata">

**Author:** [@Codzilla](https://discourse.julialang.org/u/Codzilla)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 5:47pm UTC](https://discourse.julialang.org/t/making-gif-out-of-graphs/47143 "2020-09-24T17:47:43Z")

</div>

Hi, I’m teaching an undergraduate class in algorithmics and I would like to make some nice visualization of algorithms on graphs. To do so I would like to make gifs out of plots of graphs. I would very much like to use…

---

## [PyPlot warning](https://discourse.julialang.org/t/pyplot-warning/32553)

<div class="topic-metadata">

**Author:** [@zwwi](https://discourse.julialang.org/u/zwwi)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 5:37pm UTC](https://discourse.julialang.org/t/pyplot-warning/32553 "2020-09-24T17:37:31Z")

</div>

I am using PyPlot to make a plot with subplots of different sizes. using PyPlot fig=figure(constrained\_layout=false, figsize=(5, 4)) heights = \[1, 2\] spec = fig.add\_gridspec(ncols=1, nrows=2, height\_ratios=heights, hs…

---

## [Fixing problems with my plot](https://discourse.julialang.org/t/fixing-problems-with-my-plot/47209)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 3:14pm UTC](https://discourse.julialang.org/t/fixing-problems-with-my-plot/47209 "2020-09-24T15:14:30Z")

</div>

Hello! I have a plot which currently looks like: There are something I would like to change about it, which I cannot figure out how to do: Make x and y axis “intersect”, so it does not say “0” twice Make it a “squa…

---

## [Global / local scope warnings in 1.5](https://discourse.julialang.org/t/global-local-scope-warnings-in-1-5/44566)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 4\
**Last updated:** [September 24, 2020, 4:04pm UTC](https://discourse.julialang.org/t/global-local-scope-warnings-in-1-5/44566 "2020-09-24T16:04:19Z")

</div>

As of 1.5 I’m getting the new warning about global / local scope: ┌ Warning: Assignment to \`#s262\` in soft scope is ambiguous because a global variable by the same name exists: \`#s262\` will be treated as a new local. Di…

---

## [How to configure which port workers listen](https://discourse.julialang.org/t/how-to-configure-which-port-workers-listen/46759)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 8\
**Last updated:** [September 24, 2020, 3:49pm UTC](https://discourse.julialang.org/t/how-to-configure-which-port-workers-listen/46759 "2020-09-24T15:49:10Z")

</div>

I’m trying to use ClusterManagers.jl to distribute jobs on an LSF cluster but I have ran into issues as the ports used by workers (9000-10000?) are not open. Is it possible to specify a port range when the --worker argu…

---

## [Is there a way to "grep" inside REPL?](https://discourse.julialang.org/t/is-there-a-way-to-grep-inside-repl/47216)

<div class="topic-metadata">

**Author:** [@HiroIshida](https://discourse.julialang.org/u/HiroIshida)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 3:31pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-grep-inside-repl/47216 "2020-09-24T15:31:46Z")

</div>

Inside the REPL, for example, when I do methods(HomogenousMesh) from GeometryTypes.jl, I will get the following list of many signatures: julia\> methods(HomogenousMesh) # 15 methods for type constructor: \[1\] (::Type{Homo…

---

## [Any difference between : or , in the SubString() method?](https://discourse.julialang.org/t/any-difference-between-or-in-the-substring-method/47215)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 3:21pm UTC](https://discourse.julialang.org/t/any-difference-between-or-in-the-substring-method/47215 "2020-09-24T15:21:49Z")

</div>

introduction = "Hello World" standard\_greeting = SubString(introduction, 1:5) println(standard\_greeting) # Will print Hello. standard\_greeting = SubString(introduction, 1,5) println(standard\_greeting) # Will print Hell…

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

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