# Latest

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

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

**Page:** 1855

---

## [Legend entries ordered horizontally with pyplot()](https://discourse.julialang.org/t/legend-entries-ordered-horizontally-with-pyplot/32770)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 1\
**Last updated:** [December 29, 2019, 1:58am UTC](https://discourse.julialang.org/t/legend-entries-ordered-horizontally-with-pyplot/32770 "2019-12-29T01:58:18Z")

</div>

Hi, Is there a way to list the legend entries horizontally, next to each other, instead of one under each other? Thanks

---

## [\[ANN\] Yao v0.6: High Performance Differentiable Programming on Quantum Circuits](https://discourse.julialang.org/t/ann-yao-v0-6-high-performance-differentiable-programming-on-quantum-circuits/32771)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 0\
**Last updated:** [December 29, 2019, 12:24am UTC](https://discourse.julialang.org/t/ann-yao-v0-6-high-performance-differentiable-programming-on-quantum-circuits/32771 "2019-12-29T00:24:22Z")

</div>

I’m happy to announce our major release v0.6 of Yao by the new year. This new version starts to support automatic differentiation and symbolic computation. and we have a new website now: http://yaoquantum.org/ and a pape…

---

## [Interact.jl + Mux.jl + Plots.jl dynamic updating plots memory leak](https://discourse.julialang.org/t/interact-jl-mux-jl-plots-jl-dynamic-updating-plots-memory-leak/22390)

<div class="topic-metadata">

**Author:** [@jesseventura](https://discourse.julialang.org/u/jesseventura)\
**Replies:** 1\
**Last updated:** [December 28, 2019, 11:26pm UTC](https://discourse.julialang.org/t/interact-jl-mux-jl-plots-jl-dynamic-updating-plots-memory-leak/22390 "2019-12-28T23:26:09Z")

</div>

with scripts running in background, i open a browser and see the plot updating, after i close the browser window, memory starts increasing. gc’s not work(see the code) the following shows the problem with Blink(electro…

---

## [How to deploy a secure (\`wss\`) websocket server?](https://discourse.julialang.org/t/how-to-deploy-a-secure-wss-websocket-server/32583)

<div class="topic-metadata">

**Author:** [@1115](https://discourse.julialang.org/u/1115)\
**Replies:** 1\
**Last updated:** [December 28, 2019, 11:23pm UTC](https://discourse.julialang.org/t/how-to-deploy-a-secure-wss-websocket-server/32583 "2019-12-28T23:23:10Z")

</div>

Hi, I am following this example to setup a websocket service, https://github.com/JuliaWeb/WebSockets.jl/blob/master/examples/minimal\_server.jl This example shows how to handle a URI request like ws://.... However, in …

---

## [(fast) sparse solve on GPU](https://discourse.julialang.org/t/fast-sparse-solve-on-gpu/32297)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 7\
**Last updated:** [December 28, 2019, 9:25pm UTC](https://discourse.julialang.org/t/fast-sparse-solve-on-gpu/32297 "2019-12-28T21:25:30Z")

</div>

Hi, I would like to solve sparse linear systems on the GPU. But when I try the tests example of CuArrays, the GPU version seems way slower than the CPU one. Is it expected? Additionnally, say I have a LU factorisation …

---

## [Authenticate not working](https://discourse.julialang.org/t/authenticate-not-working/32762)

<div class="topic-metadata">

**Author:** [@Varghese](https://discourse.julialang.org/u/Varghese)\
**Replies:** 1\
**Last updated:** [December 28, 2019, 8:43pm UTC](https://discourse.julialang.org/t/authenticate-not-working/32762 "2019-12-28T20:43:10Z")

</div>

I installed juliapro. pressed enter. typed \]. typed up. html pane is blank. but repl shows please authenticate. what is wrong? how do i get the htmlpane to show sign in options

---

## [Question about how method signatures are encoded in \`Docs.Meta\`](https://discourse.julialang.org/t/question-about-how-method-signatures-are-encoded-in-docs-meta/32666)

<div class="topic-metadata">

**Author:** [@jonathan-laurent](https://discourse.julialang.org/u/jonathan-laurent)\
**Replies:** 2\
**Last updated:** [December 28, 2019, 5:06pm UTC](https://discourse.julialang.org/t/question-about-how-method-signatures-are-encoded-in-docs-meta/32666 "2019-12-28T17:06:35Z")

</div>

Hi, I am trying to debug a surprising behavior in Documenter.jl and had to look at how docstrings are stored and represented internally. I am confused by the encoding that is used to represent method signatures that inv…

---

## [Installed ClusterManagers Package Code (slurm.jl) Inconsistent with Latest Repository Version (v0.3.2)](https://discourse.julialang.org/t/installed-clustermanagers-package-code-slurm-jl-inconsistent-with-latest-repository-version-v0-3-2/32765)

<div class="topic-metadata">

**Author:** [@littleK](https://discourse.julialang.org/u/littleK)\
**Replies:** 0\
**Last updated:** [December 28, 2019, 4:33pm UTC](https://discourse.julialang.org/t/installed-clustermanagers-package-code-slurm-jl-inconsistent-with-latest-repository-version-v0-3-2/32765 "2019-12-28T16:33:26Z")

</div>

I’m testing a few different “Hello World” examples using the ClusterManagers package for a small SLURM cluster, and it appears that my ClusterManagers slurm.jl file is outdated, despite showing the most recent version. T…

---

## [Plots.jl title greek letter error](https://discourse.julialang.org/t/plots-jl-title-greek-letter-error/32758)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 1\
**Last updated:** [December 28, 2019, 4:24pm UTC](https://discourse.julialang.org/t/plots-jl-title-greek-letter-error/32758 "2019-12-28T16:24:58Z")

</div>

using Plots plot(1,1, title="ρ") gives It turns out to be a problem with unicode, and can be worked around with LaTeX input. plot(1,1, title="\\\\rho")

---

## [How do I draw a 3d square in Plots.jl?](https://discourse.julialang.org/t/how-do-i-draw-a-3d-square-in-plots-jl/32756)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 0\
**Last updated:** [December 28, 2019, 2:28pm UTC](https://discourse.julialang.org/t/how-do-i-draw-a-3d-square-in-plots-jl/32756 "2019-12-28T14:28:00Z")

</div>

I want to draw a square in 3d space defined by the points \[ -20 0 0; -20 0 40; 20 0 0; 20 0 40\] How to do that?

---

## [Does there exist a comprehensive manual for an overview of the functions and features provided in Gtk.jl?](https://discourse.julialang.org/t/does-there-exist-a-comprehensive-manual-for-an-overview-of-the-functions-and-features-provided-in-gtk-jl/28119)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 9\
**Last updated:** [December 28, 2019, 1:57pm UTC](https://discourse.julialang.org/t/does-there-exist-a-comprehensive-manual-for-an-overview-of-the-functions-and-features-provided-in-gtk-jl/28119 "2019-12-28T13:57:20Z")

</div>

I am looking at examples of code developing UIs with Gtk.jl, but occasionally (if not frequently) encounter functions that I do not know what they actually do. If I run the examples, I can then piece together what I beli…

---

## [How to tell if a Task is blocked?](https://discourse.julialang.org/t/how-to-tell-if-a-task-is-blocked/32392)

<div class="topic-metadata">

**Author:** [@hwjsnc](https://discourse.julialang.org/u/hwjsnc)\
**Replies:** 1\
**Last updated:** [December 28, 2019, 1:12pm UTC](https://discourse.julialang.org/t/how-to-tell-if-a-task-is-blocked/32392 "2019-12-28T13:12:47Z")

</div>

I have a Task executed with @async. This task writes to a Channel multiple times (it is not known exactly how often), then reads from another Channel once. This should repeat until some condition is met. The main thread …

---

## [\[video,36c3\] "Mathematical diseases in climate models and how to cure them" ( Why Julia? )](https://discourse.julialang.org/t/video-36c3-mathematical-diseases-in-climate-models-and-how-to-cure-them-why-julia/32751)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 1\
**Last updated:** [December 28, 2019, 1:04pm UTC](https://discourse.julialang.org/t/video-36c3-mathematical-diseases-in-climate-models-and-how-to-cure-them-why-julia/32751 "2019-12-28T13:04:07Z")

</div>

36c3: “Mathematical diseases in climate models and how to cure them” ( Why Julia? ) ( Ali Ramadhan and Valentin Churavy ; 2019-12-27 ; video 49min ) https://media.ccc.de/v/36c3-11155-mathematical\_diseases\_in\_climate\_…

---

## [Encoding categorical variables within a matrix](https://discourse.julialang.org/t/encoding-categorical-variables-within-a-matrix/32628)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 3\
**Last updated:** [December 28, 2019, 1:13am UTC](https://discourse.julialang.org/t/encoding-categorical-variables-within-a-matrix/32628 "2019-12-28T01:13:24Z")

</div>

I have a question about encoding categorical variables when constructing matrices to feed to ML models. Consider this MWE: julia\> rawdata = DataFrame(make=\["honda", "ford", "subaru"\], mpg=\[33,29,31\], price=\[30000,25000…

---

## [Type-stable Array of NamedTuples](https://discourse.julialang.org/t/type-stable-array-of-namedtuples/32743)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 12\
**Last updated:** [December 27, 2019, 9:21pm UTC](https://discourse.julialang.org/t/type-stable-array-of-namedtuples/32743 "2019-12-27T21:21:57Z")

</div>

I often want to do the following for a large n where I perform some calculations and return a tuple of values with the result of each iteration: function f(n::Int) v = Vector() for i in 1:n ... push!(v, (a=…

---

## [Plot xlabel and ylabel fontsize and fontweight](https://discourse.julialang.org/t/plot-xlabel-and-ylabel-fontsize-and-fontweight/32739)

<div class="topic-metadata">

**Author:** [@imrankhan\_juliaLang](https://discourse.julialang.org/u/imrankhan_juliaLang)\
**Replies:** 2\
**Last updated:** [December 27, 2019, 9:16pm UTC](https://discourse.julialang.org/t/plot-xlabel-and-ylabel-fontsize-and-fontweight/32739 "2019-12-27T21:16:38Z")

</div>

how can i change fontsize and fontweight in xlabel and ylabel

---

## ["Please Authenticate" in Command Line](https://discourse.julialang.org/t/please-authenticate-in-command-line/32746)

<div class="topic-metadata">

**Author:** [@martinelli](https://discourse.julialang.org/u/martinelli)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 7:55pm UTC](https://discourse.julialang.org/t/please-authenticate-in-command-line/32746 "2019-12-27T19:55:16Z")

</div>

I’m trying to add a package in a new installation, but I got stuck when it asks for authentication: It’s a remote serve with no GUI. What should I do? Thanks!

---

## [Using pycall from threads](https://discourse.julialang.org/t/using-pycall-from-threads/32742)

<div class="topic-metadata">

**Author:** [@drhouse82](https://discourse.julialang.org/u/drhouse82)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 5:14pm UTC](https://discourse.julialang.org/t/using-pycall-from-threads/32742 "2019-12-27T17:14:41Z")

</div>

I have a potentially stupid question: Is it possible to use pycall / pyplot from several threads at the same time? I would guess it is not, but I want to be sure… (I could imagine having a python instance per thread so…

---

## [Sampling from posterior predictive distribution](https://discourse.julialang.org/t/sampling-from-posterior-predictive-distribution/32738)

<div class="topic-metadata">

**Author:** [@kirtsar](https://discourse.julialang.org/u/kirtsar)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 4:32pm UTC](https://discourse.julialang.org/t/sampling-from-posterior-predictive-distribution/32738 "2019-12-27T16:32:38Z")

</div>

I’m completely new to Bayesian Inference stuff, now I’m reading “Statistical Rethinking” book chap. 3. There is a concept of “posterior predictive distribution” when I take the “sum” of weighted distributions according t…

---

## [Fetch images from a NOIR camera on a Raspberry Pi](https://discourse.julialang.org/t/fetch-images-from-a-noir-camera-on-a-raspberry-pi/31054)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 2:17pm UTC](https://discourse.julialang.org/t/fetch-images-from-a-noir-camera-on-a-raspberry-pi/31054 "2019-12-27T14:17:09Z")

</div>

The title… Does anyone know how I can grab images from a NOIR camera on an RPI?

---

## [Workflow for converting Python scripts](https://discourse.julialang.org/t/workflow-for-converting-python-scripts/32737)

<div class="topic-metadata">

**Author:** [@drhouse82](https://discourse.julialang.org/u/drhouse82)\
**Replies:** 4\
**Last updated:** [December 27, 2019, 1:48pm UTC](https://discourse.julialang.org/t/workflow-for-converting-python-scripts/32737 "2019-12-27T13:48:47Z")

</div>

Hi, I have a rather vague question about your typical workflows to convert python scripts to Julia. First off all, I’m amazed how nice and performant PyCall works and this has really made converting (and comparing) som…

---

## [Histogram bars become line when many observations?](https://discourse.julialang.org/t/histogram-bars-become-line-when-many-observations/32639)

<div class="topic-metadata">

**Author:** [@pearlzli](https://discourse.julialang.org/u/pearlzli)\
**Replies:** 6\
**Last updated:** [December 27, 2019, 1:26pm UTC](https://discourse.julialang.org/t/histogram-bars-become-line-when-many-observations/32639 "2019-12-27T13:26:46Z")

</div>

I noticed that when there are a lot of (e.g. 10 million) observations, histogram produces a line plot instead of a bar plot: using Distributions, StatsPlots x = rand(Normal(), 1\_000\_000) histogram(x, bins = -5:0.2:5, la…

---

## [Solves the linear system using CuArrays.jl](https://discourse.julialang.org/t/solves-the-linear-system-using-cuarrays-jl/32692)

<div class="topic-metadata">

**Author:** [@FujiwaraTakumiEH](https://discourse.julialang.org/u/FujiwaraTakumiEH)\
**Replies:** 3\
**Last updated:** [December 27, 2019, 1:18pm UTC](https://discourse.julialang.org/t/solves-the-linear-system-using-cuarrays-jl/32692 "2019-12-27T13:18:58Z")

</div>

I am new to GPU parallel computing. With my knowledge of CUSOLVER and CUSPARSE, I am sure that I can complete my task through them: Solving large linear sparse equations in parallel. I have read the documentation of CUD…

---

## [Help implementing the Elo Rating System in Julia?](https://discourse.julialang.org/t/help-implementing-the-elo-rating-system-in-julia/32721)

<div class="topic-metadata">

**Author:** [@PseudoCodeNerd](https://discourse.julialang.org/u/PseudoCodeNerd)\
**Replies:** 3\
**Last updated:** [December 26, 2019, 8:49pm UTC](https://discourse.julialang.org/t/help-implementing-the-elo-rating-system-in-julia/32721 "2019-12-26T20:49:43Z")

</div>

Hello There ! I recently thought out to implement the Elo Rating System in Julia. Elo rating system - Wikipedia More information about this. The function should take an array of pre-ratings and returns an array contai…

---

## [Advice for simple (mildly large) Turing model](https://discourse.julialang.org/t/advice-for-simple-mildly-large-turing-model/32719)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 9\
**Last updated:** [December 26, 2019, 10:00pm UTC](https://discourse.julialang.org/t/advice-for-simple-mildly-large-turing-model/32719 "2019-12-26T22:00:13Z")

</div>

I have a simple Turing model I’ve been trying to implement, but I’ve been running into problems actually running it. I say simple, but my actual problem is not “small”, parameter-wise. I have about 18 groups, with about …

---

## [Learning JuMP and Julia through Kaggle](https://discourse.julialang.org/t/learning-jump-and-julia-through-kaggle/32709)

<div class="topic-metadata">

**Author:** [@tog](https://discourse.julialang.org/u/tog)\
**Replies:** 1\
**Last updated:** [December 26, 2019, 6:03pm UTC](https://discourse.julialang.org/t/learning-jump-and-julia-through-kaggle/32709 "2019-12-26T18:03:36Z")

</div>

Hi All I am learning Julia & JuMP by trying to solve the Kaggle Santa Klaus problem of the year. My current model of the problem is posted below. It does not seem fully legit. My question is to understand how I can mix …

---

## [Simplify MINLP problem to speed up results](https://discourse.julialang.org/t/simplify-minlp-problem-to-speed-up-results/32522)

<div class="topic-metadata">

**Author:** [@Hector\_Esteban](https://discourse.julialang.org/u/Hector_Esteban)\
**Replies:** 5\
**Last updated:** [December 26, 2019, 6:41pm UTC](https://discourse.julialang.org/t/simplify-minlp-problem-to-speed-up-results/32522 "2019-12-26T18:41:31Z")

</div>

Hey people, I want to optimize the path of a vehicle consisting on an array/vector of states of the form \[x\_i,y\_i,theta\_i\] and my control inputs are \[kappa\_i,dS\_i\]. As I am dealing with a MINLP problem (MI because I per…

---

## [Changing the lower bound of a JuMp Model](https://discourse.julialang.org/t/changing-the-lower-bound-of-a-jump-model/32395)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 4\
**Last updated:** [December 26, 2019, 6:39pm UTC](https://discourse.julialang.org/t/changing-the-lower-bound-of-a-jump-model/32395 "2019-12-26T18:39:46Z")

</div>

i want to change the lower bound of a model from a zero array to take the value of the elements of another array here’s the function that i’m having using JuMP using Clp function scan\_maker(A) m = JuMP.Model(solver=…

---

## [Libopenspecfun.dll could not be found error](https://discourse.julialang.org/t/libopenspecfun-dll-could-not-be-found-error/32649)

<div class="topic-metadata">

**Author:** [@Xentios](https://discourse.julialang.org/u/Xentios)\
**Replies:** 3\
**Last updated:** [December 26, 2019, 6:38pm UTC](https://discourse.julialang.org/t/libopenspecfun-dll-could-not-be-found-error/32649 "2019-12-26T18:38:03Z")

</div>

ERROR: LoadError: InitError: could not load library “C:\\Users\\Xentios.julia\\artifacts\\e062344a002c2afdfcf57091b975e56fd80de418\\bin\\libopenspecfun.dll” The specified module could not be found. I am using Gurobi with JuM…

---

## [What to do after a PR is merged?](https://discourse.julialang.org/t/what-to-do-after-a-pr-is-merged/32720)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 2\
**Last updated:** [December 26, 2019, 6:33pm UTC](https://discourse.julialang.org/t/what-to-do-after-a-pr-is-merged/32720 "2019-12-26T18:33:48Z")

</div>

I have successfully submitted a PR to a small project. To do so, I first forked the repository, cloned is locally, made a new branch, made some changes, pushed changes back to my forked copy, and submitted the PR. What …

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

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