# Latest

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

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

**Page:** 1769

---

## [Juno execution with workers processes?](https://discourse.julialang.org/t/juno-execution-with-workers-processes/38033)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 4:07pm UTC](https://discourse.julialang.org/t/juno-execution-with-workers-processes/38033 "2020-04-22T16:07:11Z")

</div>

I’m not sure what to make of this, but it’s being a bit problematic. Don’t know how much is a Juno thing or Julia thing. If I create workers to execute work in parallel for an internal loop, I will occasionally find tha…

---

## [Fastest way to compute \`A^n \* x\` for large matrices \`A\` and vector \`x\`](https://discourse.julialang.org/t/fastest-way-to-compute-a-n-x-for-large-matrices-a-and-vector-x/37900)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 13\
**Last updated:** [April 22, 2020, 3:54pm UTC](https://discourse.julialang.org/t/fastest-way-to-compute-a-n-x-for-large-matrices-a-and-vector-x/37900 "2020-04-22T15:54:25Z")

</div>

I have the following two (functionally equivalent) functions function mul1(A, xin) x1 = copy(xin) x2 = A\*x1 for i in 1:20 x2 = A\*x1 x1, x2 = x2, x1 end return x1 end and function mu…

---

## [Profiling allocations?](https://discourse.julialang.org/t/profiling-allocations/38016)

<div class="topic-metadata">

**Author:** [@angelv](https://discourse.julialang.org/u/angelv)\
**Replies:** 8\
**Last updated:** [April 22, 2020, 3:02pm UTC](https://discourse.julialang.org/t/profiling-allocations/38016 "2020-04-22T15:02:06Z")

</div>

Hello, I wrote a simple function recursively and when testing it I found that it allocates a lot of memory. julia\> @time brute\_force(10,63) \[...\] 32.055675 seconds (392.13 M allocations: 8.765 GiB, 28.16% gc time) I …

---

## [Using JuliaWebAPI.jl for simple REST API](https://discourse.julialang.org/t/using-juliawebapi-jl-for-simple-rest-api/38008)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 4:45am UTC](https://discourse.julialang.org/t/using-juliawebapi-jl-for-simple-rest-api/38008 "2020-04-22T04:45:42Z")

</div>

I want to expose a function on a remote server that processes some data and returns a CSV file to a non-Julia client. Performance isn’t critical, so I thought a simple HTTP interface would work well. From the descripti…

---

## [Returning symbolic variable from modeul](https://discourse.julialang.org/t/returning-symbolic-variable-from-modeul/38023)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 1:55pm UTC](https://discourse.julialang.org/t/returning-symbolic-variable-from-modeul/38023 "2020-04-22T13:55:05Z")

</div>

The following code works if you run it directly in REPL module MyM using SymPy export beta, return\_beta beta = symbols("β") function return\_beta() return -beta end end MyM.return\_beta() But if you put MyM in a file…

---

## [Tables DataFrames package conflict](https://discourse.julialang.org/t/tables-dataframes-package-conflict/38024)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 1:43pm UTC](https://discourse.julialang.org/t/tables-dataframes-package-conflict/38024 "2020-04-22T13:43:06Z")

</div>

When I tried to install the latest package version of MySQL (apparently revamped) I got a dependency failure due to a conflict between the package ‘Tables’ and ‘DataFrames’: ERROR: Unsatisfiable requirements detected fo…

---

## [Starting a simple web server using HTTP.jl](https://discourse.julialang.org/t/starting-a-simple-web-server-using-http-jl/38012)

<div class="topic-metadata">

**Author:** [@Jasper\_Hall](https://discourse.julialang.org/u/Jasper_Hall)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 12:54pm UTC](https://discourse.julialang.org/t/starting-a-simple-web-server-using-http-jl/38012 "2020-04-22T12:54:41Z")

</div>

I am working through Adrian Salceanu’s book “Julia Programming Projects” and am having difficulties because the versions of modules he specifies in the book are not necessarily compatible as far as my package manager is …

---

## [Set the Window Size and Layout of Juno by a Configuration File](https://discourse.julialang.org/t/set-the-window-size-and-layout-of-juno-by-a-configuration-file/38020)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 11:28am UTC](https://discourse.julialang.org/t/set-the-window-size-and-layout-of-juno-by-a-configuration-file/38020 "2020-04-22T11:28:23Z")

</div>

I would like to set the size and the layout (Panes, etc…) of Juno by a configuration. At the moment Juno size matches the last size used yet I want each time I start it to have a predefined size. I also would like to s…

---

## [Rewriting map over Dict in julia 1.0](https://discourse.julialang.org/t/rewriting-map-over-dict-in-julia-1-0/13642)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 4\
**Last updated:** [April 22, 2020, 12:16pm UTC](https://discourse.julialang.org/t/rewriting-map-over-dict-in-julia-1-0/13642 "2020-04-22T12:16:39Z")

</div>

could I ask for help to translate this julia 0.6 statement to 1.0? julia\> mydict= Dict("One" =\> 1, "Two" =\> 2, "Three" =\> 3); julia\> map( x-\>(string(x\[1\], "S") =\> fill('\*', x\[2\])), mydict) Dict{String,Array{Char,1}} wi…

---

## [How to convert CartesianIndex to integer](https://discourse.julialang.org/t/how-to-convert-cartesianindex-to-integer/38017)

<div class="topic-metadata">

**Author:** [@hmemy](https://discourse.julialang.org/u/hmemy)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 9:30am UTC](https://discourse.julialang.org/t/how-to-convert-cartesianindex-to-integer/38017 "2020-04-22T09:30:54Z")

</div>

Hi, I am using findall function to create an array. but the results are in CartesianIndex as shown below. A = findall(x-\>x\>0, test) This results in 5-element Array{CartesianIndex{2},1}: CartesianIndex(1, 3) Cartesi…

---

## [Two level distributed / parallel execution](https://discourse.julialang.org/t/two-level-distributed-parallel-execution/21292)

<div class="topic-metadata">

**Author:** [@orenbenkiki](https://discourse.julialang.org/u/orenbenkiki)\
**Replies:** 4\
**Last updated:** [April 22, 2020, 6:57am UTC](https://discourse.julialang.org/t/two-level-distributed-parallel-execution/21292 "2020-04-22T06:57:34Z")

</div>

Given a complex, large scale computation that spans a non trivial amount of data (Tens of GBs), I wish to split the work between multiple processes across several hosts in a cluster. Each host has dozens of processors an…

---

## [Is is just me or](https://discourse.julialang.org/t/is-is-just-me-or/38003)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 2:41am UTC](https://discourse.julialang.org/t/is-is-just-me-or/38003 "2020-04-22T02:41:36Z")

</div>

…is 1.4 a lot snappier in a lot of ways. I am eyeballing and I time runs of something new I’m working on. Those timings are about 10% or more faster. I’ve improved the code a little, but I’ve also added some tricky fea…

---

## [Multiple subplots using StatsPlots](https://discourse.julialang.org/t/multiple-subplots-using-statsplots/37990)

<div class="topic-metadata">

**Author:** [@Balinus](https://discourse.julialang.org/u/Balinus)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 12:20am UTC](https://discourse.julialang.org/t/multiple-subplots-using-statsplots/37990 "2020-04-22T00:20:32Z")

</div>

Hello, splitting my hair around this and now I need some help. I’m sure it’s straightforward, but I can’t find the answer! Here’s a MWE. It’s a list of subplots that creates multiple qqplot over random values. using S…

---

## [How do I capture the output of @code\_llvm in a variable?](https://discourse.julialang.org/t/how-do-i-capture-the-output-of-code-llvm-in-a-variable/37994)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 11:55pm UTC](https://discourse.julialang.org/t/how-do-i-capture-the-output-of-code-llvm-in-a-variable/37994 "2020-04-21T23:55:12Z")

</div>

I want to capture it so I can open it in a pager: function more(content::AbstractString) run(pipeline(\`echo $(content)\`, \`less\`)) nothing end more(@code\_llvm sth())

---

## [Gadfly - non-logarithmic number format for axis in logarithmic scale](https://discourse.julialang.org/t/gadfly-non-logarithmic-number-format-for-axis-in-logarithmic-scale/37944)

<div class="topic-metadata">

**Author:** [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Replies:** 9\
**Last updated:** [April 21, 2020, 11:34pm UTC](https://discourse.julialang.org/t/gadfly-non-logarithmic-number-format-for-axis-in-logarithmic-scale/37944 "2020-04-21T23:34:54Z")

</div>

Something that I missed from Excel chart. Notice the y axis is logarithmic scale, but the number label is non logarithmic. Below is the best I got from Gadfly. The method to set axis limit is also not that friendly. C…

---

## [Free legend placing](https://discourse.julialang.org/t/free-legend-placing/37910)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 11:28pm UTC](https://discourse.julialang.org/t/free-legend-placing/37910 "2020-04-21T23:28:35Z")

</div>

Hi, is it possible to place the legend using an exact position and not being restricted to :top, :bottom etc with Plots.jl and the pyplot backend? MWE: plot(\[1,2,3\], legend = (2,2) ) Somethink similar for placing th…

---

## [Essential tools for neural network based PDE solvers](https://discourse.julialang.org/t/essential-tools-for-neural-network-based-pde-solvers/37149)

<div class="topic-metadata">

**Author:** [@leonexu](https://discourse.julialang.org/u/leonexu)\
**Replies:** 7\
**Last updated:** [April 21, 2020, 10:09pm UTC](https://discourse.julialang.org/t/essential-tools-for-neural-network-based-pde-solvers/37149 "2020-04-21T22:09:24Z")

</div>

Chris’s post The Essential Tools of Scientific Machine Learning discussed several tools that are “essential for scientific machine learning” including probabilistic programming, structured linear algebra, discretizing pa…

---

## [When will the original value be changed with the copied value?](https://discourse.julialang.org/t/when-will-the-original-value-be-changed-with-the-copied-value/37810)

<div class="topic-metadata">

**Author:** [@zxjroger](https://discourse.julialang.org/u/zxjroger)\
**Replies:** 8\
**Last updated:** [April 21, 2020, 9:05pm UTC](https://discourse.julialang.org/t/when-will-the-original-value-be-changed-with-the-copied-value/37810 "2020-04-21T21:05:17Z")

</div>

I find out that the following code will change the value of solution to \[1.1, 1.1, 1.1, 1.1\], although I don’t really want to change its value. It seems that the value of solution is changing with the value of solution\_t…

---

## [Yet another piping idea](https://discourse.julialang.org/t/yet-another-piping-idea/37597)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 3\
**Last updated:** [April 21, 2020, 8:27pm UTC](https://discourse.julialang.org/t/yet-another-piping-idea/37597 "2020-04-21T20:27:14Z")

</div>

With the upcoming DataFrames 1.0 release and the new select and transform functions, piping will become much idiomatic in basic DataFrames usage, i.e. using DataFrames, Lazy julia\> @\> df begin transform(:b =\> (x …

---

## [Benchmarking of PPL](https://discourse.julialang.org/t/benchmarking-of-ppl/37850)

<div class="topic-metadata">

**Author:** [@mystis](https://discourse.julialang.org/u/mystis)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 8:23pm UTC](https://discourse.julialang.org/t/benchmarking-of-ppl/37850 "2020-04-21T20:23:30Z")

</div>

Hi all, I’ve seen the perf benchmark or sampling for Turing vs Stan but I was wondering if we have benchmarks for Pyro, pymc3, tensorflow-probabiliy with one chain and with multiple chains (since tfp seems to benefit fro…

---

## [Help to remove type instability](https://discourse.julialang.org/t/help-to-remove-type-instability/37988)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 5\
**Last updated:** [April 21, 2020, 7:48pm UTC](https://discourse.julialang.org/t/help-to-remove-type-instability/37988 "2020-04-21T19:48:29Z")

</div>

Hi! I am trying to create a signal system for my package TextUserInterfaces.jl. As of now, I have the following kind of structure defining a signal that will be emitted when return is pressed: mutable struct Object …

---

## [NamedTuples with constant type](https://discourse.julialang.org/t/namedtuples-with-constant-type/37977)

<div class="topic-metadata">

**Author:** [@Isaia\_Nisoli](https://discourse.julialang.org/u/Isaia_Nisoli)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 6:43pm UTC](https://discourse.julialang.org/t/namedtuples-with-constant-type/37977 "2020-04-21T18:43:28Z")

</div>

Dear all, I’m defining a struct struct foo{S, T} val::NamedTuple{S} end where S is a tuple of Symbols and all the element of the NamedTuple are of type T. Essentially, if S=(:1, :2), what we are looking at is a …

---

## [How yo plot grid lines top of heatmap by using Plots.heatmap?](https://discourse.julialang.org/t/how-yo-plot-grid-lines-top-of-heatmap-by-using-plots-heatmap/37985)

<div class="topic-metadata">

**Author:** [@Peichao](https://discourse.julialang.org/u/Peichao)\
**Replies:** 0\
**Last updated:** [April 21, 2020, 6:39pm UTC](https://discourse.julialang.org/t/how-yo-plot-grid-lines-top-of-heatmap-by-using-plots-heatmap/37985 "2020-04-21T18:39:24Z")

</div>

I notice when I am using Plots.heatmap, the grid lines are covered by the heatmap. I am wondering how to show the grid lines on top of heatmap with specific line style, color, and thickness? Thanks in advance!

---

## [How to define a Sampler for an object?](https://discourse.julialang.org/t/how-to-define-a-sampler-for-an-object/37965)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 5\
**Last updated:** [April 21, 2020, 5:04pm UTC](https://discourse.julialang.org/t/how-to-define-a-sampler-for-an-object/37965 "2020-04-21T17:04:32Z")

</div>

Hey all, I am getting an error when trying to use the Rand function for my custom type. The error is: ERROR: LoadError: ArgumentError: Sampler for this object is not defined I read the docs here and here but it is n…

---

## [!isnan.() doesn't work](https://discourse.julialang.org/t/isnan-doesnt-work/37934)

<div class="topic-metadata">

**Author:** [@Jing\_Zhang](https://discourse.julialang.org/u/Jing_Zhang)\
**Replies:** 9\
**Last updated:** [April 21, 2020, 4:44pm UTC](https://discourse.julialang.org/t/isnan-doesnt-work/37934 "2020-04-21T16:44:23Z")

</div>

Dear Julia user, Why does isnan.(\[0 0/0\]) return a 1×2 BitArray{2}: false true, but !isnan.(\[0 0/0\]) return an error message: no method matching !(::BitArray{2})? Thanks a lot!

---

## [Fetching results from a DB - how to handle a textcursor](https://discourse.julialang.org/t/fetching-results-from-a-db-how-to-handle-a-textcursor/37902)

<div class="topic-metadata">

**Author:** [@Jasper\_Hall](https://discourse.julialang.org/u/Jasper_Hall)\
**Replies:** 3\
**Last updated:** [April 21, 2020, 4:38pm UTC](https://discourse.julialang.org/t/fetching-results-from-a-db-how-to-handle-a-textcursor/37902 "2020-04-21T16:38:18Z")

</div>

I am following along in the “Julia Programming Projects” book (by Adrain Salceanu). I have Julie 1.4.0 and have had to use some package versions that are obviously more recent than his (I tried using the packages/manife…

---

## [Struct & inner constructor](https://discourse.julialang.org/t/struct-inner-constructor/37971)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 4:07pm UTC](https://discourse.julialang.org/t/struct-inner-constructor/37971 "2020-04-21T16:07:16Z")

</div>

I’m trying to create a struct with an inner constructor to check some dimensions… Basic structure (let’s call it TEST) works: using Polynomials # struct TEST{T} N::Matrix{Poly{T}} D::Matrix{Poly{T}} end This works …

---

## [How to put a derivative into loss function?](https://discourse.julialang.org/t/how-to-put-a-derivative-into-loss-function/37961)

<div class="topic-metadata">

**Author:** [@vavrines](https://discourse.julialang.org/u/vavrines)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 3:58pm UTC](https://discourse.julialang.org/t/how-to-put-a-derivative-into-loss-function/37961 "2020-04-21T15:58:53Z")

</div>

Hi there, I wonder now if there is a convenient way to put the derivatives from AD into loss function directly. I tried the following code, but it failed with Zygote. using Flux m = Chain(Dense(1, 20, tanh), Dense(20…

---

## [Matrices with vectors in elements?](https://discourse.julialang.org/t/matrices-with-vectors-in-elements/37949)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 3:33pm UTC](https://discourse.julialang.org/t/matrices-with-vectors-in-elements/37949 "2020-04-21T15:33:46Z")

</div>

I’m a little puzzled about how to fill vectors into matrix elements… Consider the two attempts below: the first is unsuccessful, the second is successful. julia\> # Unsuccessful strategy julia\> a11 = \[1,2\]; julia\> a12 = …

---

## [Weave.jl: jmd -\> md -\> pdf](https://discourse.julialang.org/t/weave-jl-jmd-md-pdf/37970)

<div class="topic-metadata">

**Author:** [@dpo](https://discourse.julialang.org/u/dpo)\
**Replies:** 0\
**Last updated:** [April 21, 2020, 3:07pm UTC](https://discourse.julialang.org/t/weave-jl-jmd-md-pdf/37970 "2020-04-21T15:07:45Z")

</div>

I asked this question on Slack but no answer so far. I use Weave.jl to convert a jmd file to pandoc format. Julia code blocks end up being annotated with {.julia}. I then convert to PDF via \\LaTeX with the --listin…

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

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