# Latest

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

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

**Page:** 1767

---

## [How to test plot recipes?](https://discourse.julialang.org/t/how-to-test-plot-recipes/2648)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 3:29pm UTC](https://discourse.julialang.org/t/how-to-test-plot-recipes/2648 "2020-04-24T15:29:29Z")

</div>

Plot recipes can reduce the test coverage considerably. For example, my coverage is currently at 76% and a big part of the remaining 24% is due to a plot recipe: Codecov How should I go about testing plot recipes? Is th…

---

## [How to optimize code without repeating similar part, based on the type of input argument?](https://discourse.julialang.org/t/how-to-optimize-code-without-repeating-similar-part-based-on-the-type-of-input-argument/38149)

<div class="topic-metadata">

**Author:** [@QUANG\_VU\_NGUY\_N\_PH\_M](https://discourse.julialang.org/u/QUANG_VU_NGUY_N_PH_M)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 3:12pm UTC](https://discourse.julialang.org/t/how-to-optimize-code-without-repeating-similar-part-based-on-the-type-of-input-argument/38149 "2020-04-24T15:12:37Z")

</div>

I have these 4 functions, which are almost similar. Based on the type of input argument, different Gaussline(i, j) will be given. Is there any way to shorten this code? function create\_gauss\_points(::Type{Bar2}) ga…

---

## [How to export a plot of Plots.jl with PGFPlotsX using font size and width of the LaTeX document?](https://discourse.julialang.org/t/how-to-export-a-plot-of-plots-jl-with-pgfplotsx-using-font-size-and-width-of-the-latex-document/38144)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 2:51pm UTC](https://discourse.julialang.org/t/how-to-export-a-plot-of-plots-jl-with-pgfplotsx-using-font-size-and-width-of-the-latex-document/38144 "2020-04-24T14:51:14Z")

</div>

Hi, I already have exported one plot from Plots.jl with the backend PGFPlotsX using savefig and editing the font size and width manually, but I was wondering if is it possible to export a plot of Plots.jl with PGFPlotsX…

---

## [Creating JuliaAcademy.com courses- An update and call for community support](https://discourse.julialang.org/t/creating-juliaacademy-com-courses-an-update-and-call-for-community-support/36956)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 2:05pm UTC](https://discourse.julialang.org/t/creating-juliaacademy-com-courses-an-update-and-call-for-community-support/36956 "2020-04-24T14:05:03Z")

</div>

Hey all! I hope everyone is doing well and staying inside/well during these trying times. I wanted to give a quick update and also put out a wider call for additional conversation/help on the JuliaAcademy front. Update…

---

## [Using IOStreams with Distributed parallelism](https://discourse.julialang.org/t/using-iostreams-with-distributed-parallelism/37966)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 1:38pm UTC](https://discourse.julialang.org/t/using-iostreams-with-distributed-parallelism/37966 "2020-04-24T13:38:57Z")

</div>

I’ve got a serial function: function serial\_mem(::Type{M}, input::DatastoreBuffer{\<:ReadDatastore}, count\_mode::CountMode, range::AbstractRange = 1:length(input)) where {M\<:AbstractMer} @info "\[Process: $(myid())\] C…

---

## [VS Code Run configurations](https://discourse.julialang.org/t/vs-code-run-configurations/38103)

<div class="topic-metadata">

**Author:** [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Replies:** 3\
**Last updated:** [April 24, 2020, 1:21pm UTC](https://discourse.julialang.org/t/vs-code-run-configurations/38103 "2020-04-24T13:21:44Z")

</div>

In VS Code, I see how to setup a run configuration in the launch.json for debugging. Something like { "type": "julia", "request": "launch", "name": "Run active Julia file", …

---

## [Follow up on the first ever Virtual Julia Hackathon](https://discourse.julialang.org/t/follow-up-on-the-first-ever-virtual-julia-hackathon/37911)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 9\
**Last updated:** [April 24, 2020, 1:20pm UTC](https://discourse.julialang.org/t/follow-up-on-the-first-ever-virtual-julia-hackathon/37911 "2020-04-24T13:20:49Z")

</div>

This past Friday, April 17th, the Julia Language hosted the first-ever Virtual Julia Hackathon. This post will serve as a brief summary of what we did and what we learned to hopefully help improve the process of hosting …

---

## [DataFramesMeta.jl and the state of the DataFrames ecosystem](https://discourse.julialang.org/t/dataframesmeta-jl-and-the-state-of-the-dataframes-ecosystem/36221)

<div class="topic-metadata">

**Author:** [@jmboehm](https://discourse.julialang.org/u/jmboehm)\
**Replies:** 36\
**Last updated:** [April 24, 2020, 1:18pm UTC](https://discourse.julialang.org/t/dataframesmeta-jl-and-the-state-of-the-dataframes-ecosystem/36221 "2020-04-24T13:18:34Z")

</div>

Hi all, I’m currently working on a small package that’s supposed to make data wrangling easier (i.e. providing macros for commonly-used operations). As part of that, I’ve found DataFramesMeta.jl quite useful (in particu…

---

## [Getting an error with the pgfplotsx backend for Plots.jl](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 12:05pm UTC](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136 "2020-04-24T12:05:08Z")

</div>

Hi, I´m getting the following error, when I try to use Plots.jl with the pgfplots backend. julia\> using Plots julia\> pgfplotsx() ERROR: UndefVarError: pgfplotsx not defined Note: I have installed Plots v0.27.1, PGFP…

---

## [How to import a pre-trained neural network into Flux.jl ?](https://discourse.julialang.org/t/how-to-import-a-pre-trained-neural-network-into-flux-jl/9659)

<div class="topic-metadata">

**Author:** [@Nirvan101](https://discourse.julialang.org/u/Nirvan101)\
**Replies:** 7\
**Last updated:** [April 24, 2020, 10:42am UTC](https://discourse.julialang.org/t/how-to-import-a-pre-trained-neural-network-into-flux-jl/9659 "2020-04-24T10:42:37Z")

</div>

I’m using the Flux library in Julia. How can I import an Inception neural network into it? I’ve seen that the following can be done in Mocha.jl to import a pre-trained net. using HDF5 h5open("model/bvlc\_reference\_caff…

---

## [Dynamic Time Warping in Julia](https://discourse.julialang.org/t/dynamic-time-warping-in-julia/13426)

<div class="topic-metadata">

**Author:** [@Moses](https://discourse.julialang.org/u/Moses)\
**Replies:** 7\
**Last updated:** [April 24, 2020, 10:35am UTC](https://discourse.julialang.org/t/dynamic-time-warping-in-julia/13426 "2020-04-24T10:35:42Z")

</div>

Hello everybody. I hope, I am in the right domain for this question. I am looking for an implemantation of dynamic time warping in julia. Obviously, there has been some work on this already: here and here. However, bot…

---

## [Macro for binary data deserialization into tuples of variable types](https://discourse.julialang.org/t/macro-for-binary-data-deserialization-into-tuples-of-variable-types/38088)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 9\
**Last updated:** [April 24, 2020, 10:34am UTC](https://discourse.julialang.org/t/macro-for-binary-data-deserialization-into-tuples-of-variable-types/38088 "2020-04-24T10:34:08Z")

</div>

Can somebody help with this case? ## I've started with reinterpreting some complex types from a binary stream: bytevec = UInt8\[0x01, 0x02, 0x00, 0x03, 0x00, 0x00, 0x00\] reinterpret(Tuple{Int8, Int16, Int32}, bytevec) #…

---

## [An exemple in order to save figures generated by PGFPlotsX](https://discourse.julialang.org/t/an-exemple-in-order-to-save-figures-generated-by-pgfplotsx/38120)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 10:20am UTC](https://discourse.julialang.org/t/an-exemple-in-order-to-save-figures-generated-by-pgfplotsx/38120 "2020-04-24T10:20:53Z")

</div>

Julia 1.4.1 \*Kubuntu 18.04 LST \* LaTeX + textlive-full (including LuaLaTeX) + ImageMagik Documentation: PGFPlotsX.jl by Kristoffer Carlsson Hello dear all, Say that I am using an elementary code as follows, extracte…

---

## [ANN: LightGraphs 1.3.2 - the release we hoped we wouldn't have to make](https://discourse.julialang.org/t/ann-lightgraphs-1-3-2-the-release-we-hoped-we-wouldnt-have-to-make/38095)

<div class="topic-metadata">

**Author:** [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Replies:** 1\
**Last updated:** [April 24, 2020, 8:48am UTC](https://discourse.julialang.org/t/ann-lightgraphs-1-3-2-the-release-we-hoped-we-wouldnt-have-to-make/38095 "2020-04-24T08:48:40Z")

</div>

Hi all, Due to a particularly nasty bug that turns out to have been present in pretty much every version of LightGraphs ever, I’ve created a new patch release on the 1.3 version track. We’re now up to 1.3.2 and this sho…

---

## [Unable to install Juno. Installation of Ink fails](https://discourse.julialang.org/t/unable-to-install-juno-installation-of-ink-fails/36698)

<div class="topic-metadata">

**Author:** [@Shashank](https://discourse.julialang.org/u/Shashank)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 8:39am UTC](https://discourse.julialang.org/t/unable-to-install-juno-installation-of-ink-fails/36698 "2020-04-24T08:39:37Z")

</div>

I am trying to install uber-juno package in atom and I keep getting the following error Installing ink to /home/shashank/.atom/packages ✗ ink@0.12.3 postinstall /tmp/apm-install-dir-120229-7769-1s3lozo.qhgw/node\_modu…

---

## [Xkcd: Garbage Math](https://discourse.julialang.org/t/xkcd-garbage-math/38113)

<div class="topic-metadata">

**Author:** [@AlfTetzlaff](https://discourse.julialang.org/u/AlfTetzlaff)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 8:27am UTC](https://discourse.julialang.org/t/xkcd-garbage-math/38113 "2020-04-24T08:27:39Z")

</div>

Is anybody interested in using julia’s advanced type system to implement this? I would definitely enjoy using it!

---

## [Is there a dictionary-based data structure where the keys are disjoint ranges, and indexing with an integer looks up the matching range?](https://discourse.julialang.org/t/is-there-a-dictionary-based-data-structure-where-the-keys-are-disjoint-ranges-and-indexing-with-an-integer-looks-up-the-matching-range/38125)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [April 24, 2020, 7:30am UTC](https://discourse.julialang.org/t/is-there-a-dictionary-based-data-structure-where-the-keys-are-disjoint-ranges-and-indexing-with-an-integer-looks-up-the-matching-range/38125 "2020-04-24T07:30:17Z")

</div>

For example, julia\> d = Dict(1:4=\>"abc",10:14=\>"def") Dict{UnitRange{Int64},String} with 2 entries: 10:14 =\> "def" 1:4 =\> "abc" # What I want julia\> d\[3\] "abc" julia\> d\[11\] "def" julia\> d\[5\] ERROR: KeyError: ke…

---

## [A question about the Matrix](https://discourse.julialang.org/t/a-question-about-the-matrix/38123)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 3:49am UTC](https://discourse.julialang.org/t/a-question-about-the-matrix/38123 "2020-04-24T03:49:48Z")

</div>

How do you define a matrix that doesn’t know how many rows and columns it has. thank you!

---

## [Difference between Type{T} and T when passing type variable inside generated function?](https://discourse.julialang.org/t/difference-between-type-t-and-t-when-passing-type-variable-inside-generated-function/38121)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 3:29am UTC](https://discourse.julialang.org/t/difference-between-type-t-and-t-when-passing-type-variable-inside-generated-function/38121 "2020-04-24T03:29:25Z")

</div>

Why passing type argument into @generated function changes its value from T into Type{T}? function type\_print(T) return :(println($T)) end macro type\_print(T) return :(println($T)) end @generated function type\_pri…

---

## [Generate faa di bruno matrix](https://discourse.julialang.org/t/generate-faa-di-bruno-matrix/38059)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 9\
**Last updated:** [April 24, 2020, 2:25am UTC](https://discourse.julialang.org/t/generate-faa-di-bruno-matrix/38059 "2020-04-24T02:25:31Z")

</div>

I am trying to implement the funcion A(x1, x2, x3, ..xn) Such that \[A\]\_{m,j} = B\_{m,j} , where B\_{m,j} corresponds to the incomplete bell polynomial. The thing is, that I don’t want to have to construct that matrix ev…

---

## [What is the best way to require exactly 1 of 2 keyword arguments when writing a function?](https://discourse.julialang.org/t/what-is-the-best-way-to-require-exactly-1-of-2-keyword-arguments-when-writing-a-function/38039)

<div class="topic-metadata">

**Author:** [@Rainbow-Anthony\_Lili](https://discourse.julialang.org/u/Rainbow-Anthony_Lili)\
**Replies:** 10\
**Last updated:** [April 24, 2020, 1:09am UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-require-exactly-1-of-2-keyword-arguments-when-writing-a-function/38039 "2020-04-24T01:09:15Z")

</div>

I have a function “counts” that divides a sorted array of floats into subarrays based off a specified maximum value and an integer number of divisions, and then counts the length of each subarray, returning an array of l…

---

## [Is there a difference under the hood between running code via a .jl file and running code via \`test name\_of\_pkg\`?](https://discourse.julialang.org/t/is-there-a-difference-under-the-hood-between-running-code-via-a-jl-file-and-running-code-via-test-name-of-pkg/38097)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 4\
**Last updated:** [April 24, 2020, 12:28am UTC](https://discourse.julialang.org/t/is-there-a-difference-under-the-hood-between-running-code-via-a-jl-file-and-running-code-via-test-name-of-pkg/38097 "2020-04-24T00:28:19Z")

</div>

Hey all, I am running into a weird issue. I have some code which I will arbitrarily say is: function z() z = 10 z += 100 end z() # This code will work, it's just an arbitrary example. When I have the above code…

---

## [Unexpected ")"](https://discourse.julialang.org/t/unexpected/38115)

<div class="topic-metadata">

**Author:** [@MJMB](https://discourse.julialang.org/u/MJMB)\
**Replies:** 3\
**Last updated:** [April 24, 2020, 12:14am UTC](https://discourse.julialang.org/t/unexpected/38115 "2020-04-24T00:14:27Z")

</div>

@constraint(Mod, Load\[t\], sum(P\[f, t\] for fin F, for t in T))==Demand(t) I got an error for that showing unexpected")" Can i get more explanation about the error

---

## [Why some operator symbols aren't allowed?](https://discourse.julialang.org/t/why-some-operator-symbols-arent-allowed/38104)

<div class="topic-metadata">

**Author:** [@Ronneesley](https://discourse.julialang.org/u/Ronneesley)\
**Replies:** 4\
**Last updated:** [April 23, 2020, 11:16pm UTC](https://discourse.julialang.org/t/why-some-operator-symbols-arent-allowed/38104 "2020-04-23T23:16:17Z")

</div>

Hello, Why some symbols aren’t allowed to create new operators? julia\> →(a, b) = a + b julia\> 1 → 2 3 julia\> ∠(a, b) = a + b julia\> 1 ∠ 2 ERROR: syntax: extra token "∠" after end of expression Stacktrace: \[1\] top-lev…

---

## [How to calculate the the minimum value in a vector(array) of vectors](https://discourse.julialang.org/t/how-to-calculate-the-the-minimum-value-in-a-vector-array-of-vectors/38111)

<div class="topic-metadata">

**Author:** [@robo360](https://discourse.julialang.org/u/robo360)\
**Replies:** 6\
**Last updated:** [April 23, 2020, 10:05pm UTC](https://discourse.julialang.org/t/how-to-calculate-the-the-minimum-value-in-a-vector-array-of-vectors/38111 "2020-04-23T22:05:33Z")

</div>

I am trying to find the minimum on a vector of vectors. Is there an easy way of finding it? Thanks

---

## [SIGKILL from Gurobi.jl?](https://discourse.julialang.org/t/sigkill-from-gurobi-jl/38099)

<div class="topic-metadata">

**Author:** [@mlhetland](https://discourse.julialang.org/u/mlhetland)\
**Replies:** 5\
**Last updated:** [April 23, 2020, 8:26pm UTC](https://discourse.julialang.org/t/sigkill-from-gurobi-jl/38099 "2020-04-23T20:26:30Z")

</div>

One of my JuMP models seem to be too much for Gurobi/Gurobi.jl – after a while, it kills Julia with SIGKILL. Other models of similar structure work just fine; I suspect the reason is that they are smaller, and that I’m r…

---

## [Appending to a multidimensional array](https://discourse.julialang.org/t/appending-to-a-multidimensional-array/8425)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 7\
**Last updated:** [April 23, 2020, 8:21pm UTC](https://discourse.julialang.org/t/appending-to-a-multidimensional-array/8425 "2020-04-23T20:21:30Z")

</div>

So I am generating a sequence of Nxd arrays, which are trajectories in d-diemsnional space. I would like to append them to one another. In the case d=1, I can do this with append! Is there a generalization to the d-di…

---

## [DataFrame vs. Pandas (vs. Excel...), e.g. to refer to previous row](https://discourse.julialang.org/t/dataframe-vs-pandas-vs-excel-e-g-to-refer-to-previous-row/38094)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 6\
**Last updated:** [April 23, 2020, 7:30pm UTC](https://discourse.julialang.org/t/dataframe-vs-pandas-vs-excel-e-g-to-refer-to-previous-row/38094 "2020-04-23T19:30:03Z")

</div>

Hi, A. Is there any tutorial to not just DataFrames, but the whole ecosystem around it, e.g. for those coming from Python/Pandas? Or maybe just some cheatsheet? B. I have a specific problem, in Excel it’s simple to …

---

## [PyPlot plot window does not pop up in Atom](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435)

<div class="topic-metadata">

**Author:** [@Sam](https://discourse.julialang.org/u/Sam)\
**Replies:** 4\
**Last updated:** [April 23, 2020, 6:11pm UTC](https://discourse.julialang.org/t/pyplot-plot-window-does-not-pop-up-in-atom/17435 "2020-04-23T18:11:39Z")

</div>

I am using Julia 1.0.0 and PyPlot for plotting. My problem is that when I run PyPlot.plot() from Atom the plot window does not pop up (this has worked before, but it doesn’t work currently). However, plotting figures usi…

---

## ["command not found: julia" when running a UNIX executable](https://discourse.julialang.org/t/command-not-found-julia-when-running-a-unix-executable/38096)

<div class="topic-metadata">

**Author:** [@themadprogramer](https://discourse.julialang.org/u/themadprogramer)\
**Replies:** 3\
**Last updated:** [April 23, 2020, 6:17pm UTC](https://discourse.julialang.org/t/command-not-found-julia-when-running-a-unix-executable/38096 "2020-04-23T18:17:06Z")

</div>

Recently I’ve really been trying to get into Genie. To launch a Genie app, you either have to memorize a long command or just run one of 4 executables located in the bin directory. I noticed I was getting an error “co…

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

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