# Latest

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

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

**Page:** 1744

---

## [Generic code over stored/cached value or value computed on-the-fly](https://discourse.julialang.org/t/generic-code-over-stored-cached-value-or-value-computed-on-the-fly/39743)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 7:23am UTC](https://discourse.julialang.org/t/generic-code-over-stored-cached-value-or-value-computed-on-the-fly/39743 "2020-05-19T07:23:58Z")

</div>

Sorry in advance for a convoluted question. I struggled to come up with a concise example to illustrate what I’m after. I’m trying to write some code that is generic over whether some values are eagerly computed, or sho…

---

## [Removing redundant inequalities from a linear system of linear inequalities](https://discourse.julialang.org/t/removing-redundant-inequalities-from-a-linear-system-of-linear-inequalities/39742)

<div class="topic-metadata">

**Author:** [@KiriaKasis](https://discourse.julialang.org/u/KiriaKasis)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 6:49am UTC](https://discourse.julialang.org/t/removing-redundant-inequalities-from-a-linear-system-of-linear-inequalities/39742 "2020-05-19T06:49:02Z")

</div>

I have a satisfiable system of inequalities Ax ≤ b or equivalently a\_i · x ≤ b\_i for 1 ≤ i ≤ n. I would like to find all indexes i such that the i\\text{-th} inequality is redundant. For example in \\begin{aligned} x + …

---

## [Run julia programs like python](https://discourse.julialang.org/t/run-julia-programs-like-python/38788)

<div class="topic-metadata">

**Author:** [@catosp](https://discourse.julialang.org/u/catosp)\
**Replies:** 7\
**Last updated:** [May 19, 2020, 6:33am UTC](https://discourse.julialang.org/t/run-julia-programs-like-python/38788 "2020-05-19T06:33:31Z")

</div>

Hi there ! I have a question: In python if I double click on python file then the file run. How can I make this to happen on julia? Thank you in advance!

---

## [Pkg fails to clone with ssh](https://discourse.julialang.org/t/pkg-fails-to-clone-with-ssh/39524)

<div class="topic-metadata">

**Author:** [@ethomag](https://discourse.julialang.org/u/ethomag)\
**Replies:** 13\
**Last updated:** [May 19, 2020, 6:04am UTC](https://discourse.julialang.org/t/pkg-fails-to-clone-with-ssh/39524 "2020-05-19T06:04:46Z")

</div>

Not sure if this is Julia related, but I have run out of options In our company we use gerrit for git access, but I have random problems retrieving packets from within julia package manager (sometimes it works just fine…

---

## [Plot seriestype volume](https://discourse.julialang.org/t/plot-seriestype-volume/26301)

<div class="topic-metadata">

**Author:** [@milesf](https://discourse.julialang.org/u/milesf)\
**Replies:** 4\
**Last updated:** [May 19, 2020, 3:26am UTC](https://discourse.julialang.org/t/plot-seriestype-volume/26301 "2020-05-19T03:26:40Z")

</div>

Is there an example for how to use the seriestype=:volume recipe? Found the recipe listed in the documentation here, but I am clearly using it incorrectly: Overview · Plots I am attempting to render a 3d rectangular bo…

---

## [Beginners question: how to formulate this assignment/scheduling problem?](https://discourse.julialang.org/t/beginners-question-how-to-formulate-this-assignment-scheduling-problem/39681)

<div class="topic-metadata">

**Author:** [@scheidan](https://discourse.julialang.org/u/scheidan)\
**Replies:** 5\
**Last updated:** [May 19, 2020, 1:38am UTC](https://discourse.julialang.org/t/beginners-question-how-to-formulate-this-assignment-scheduling-problem/39681 "2020-05-19T01:38:22Z")

</div>

Hi all, I’m quite new to mathematical programming. I try to solve this seemingly simple problem: I have N speakers and M \> N slots for talks. Each slot can hold a single talk. Other constrains may be added. How should…

---

## [How to capture standard input from a piped command?](https://discourse.julialang.org/t/how-to-capture-standard-input-from-a-piped-command/39509)

<div class="topic-metadata">

**Author:** [@Marc\_Sevaux](https://discourse.julialang.org/u/Marc_Sevaux)\
**Replies:** 8\
**Last updated:** [May 18, 2020, 10:14pm UTC](https://discourse.julialang.org/t/how-to-capture-standard-input-from-a-piped-command/39509 "2020-05-18T22:14:37Z")

</div>

Apologizes if this has already been answered. I heavily use command line scripts and combination of piped commands to generate list of numbers that I want to “statistically” analyze by piping them to a julia script. To…

---

## [Generate Juputer notebook from docs build?](https://discourse.julialang.org/t/generate-juputer-notebook-from-docs-build/39721)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 9:56pm UTC](https://discourse.julialang.org/t/generate-juputer-notebook-from-docs-build/39721 "2020-05-18T21:56:53Z")

</div>

Is it possible to generate Jupyter notebooks from tutorials written for a documentation build? I’d like to have downloadable Jupyter notebooks, which get updated when I update certain tutorial pages in a documentation b…

---

## [Expaning Juno result](https://discourse.julialang.org/t/expaning-juno-result/39596)

<div class="topic-metadata">

**Author:** [@Ginter](https://discourse.julialang.org/u/Ginter)\
**Replies:** 4\
**Last updated:** [May 18, 2020, 9:40pm UTC](https://discourse.julialang.org/t/expaning-juno-result/39596 "2020-05-18T21:40:29Z")

</div>

Is there a shortcut or a way of setting up a shortcut to expand the inline results that juno provides? Having to manually click the little arrow is getting tedious. I see that it can be configured to show result in the R…

---

## [Artifacts vs datadeps](https://discourse.julialang.org/t/artifacts-vs-datadeps/32960)

<div class="topic-metadata">

**Author:** [@denizyuret](https://discourse.julialang.org/u/denizyuret)\
**Replies:** 4\
**Last updated:** [May 18, 2020, 8:59pm UTC](https://discourse.julialang.org/t/artifacts-vs-datadeps/32960 "2020-05-18T20:59:37Z")

</div>

I want to update Knet model/data downloading code. Is there an advantage to using DataDeps.jl instead of Artifacts.toml? What is the suggested location for Artifacts.toml – package root directory like Project/Manife…

---

## [NoiseFunction in DifferentialEquations.jl](https://discourse.julialang.org/t/noisefunction-in-differentialequations-jl/39716)

<div class="topic-metadata">

**Author:** [@fernandoduarte](https://discourse.julialang.org/u/fernandoduarte)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 8:50pm UTC](https://discourse.julialang.org/t/noisefunction-in-differentialequations-jl/39716 "2020-05-18T20:50:21Z")

</div>

I am getting the error “NoiseFunction has no field t” when I try to define my own noise process using NoiseFunction in DifferentialEquations.jl following the example in the documentation here. Here is the code using Di…

---

## [Trying to optimize system of SDE's](https://discourse.julialang.org/t/trying-to-optimize-system-of-sdes/39648)

<div class="topic-metadata">

**Author:** [@Ignacio\_Perez\_Ipina](https://discourse.julialang.org/u/Ignacio_Perez_Ipina)\
**Replies:** 6\
**Last updated:** [May 18, 2020, 8:34pm UTC](https://discourse.julialang.org/t/trying-to-optimize-system-of-sdes/39648 "2020-05-18T20:34:41Z")

</div>

Hello! I’ve been introduced to Julia very recently, and I’ve been trying to adapt my already tested system of equations, with additive noise, based on a Takens-Bogdanov bifurcation. I’ve got this far trying to impro…

---

## [Animation slower than plotting separately](https://discourse.julialang.org/t/animation-slower-than-plotting-separately/39622)

<div class="topic-metadata">

**Author:** [@dirypan](https://discourse.julialang.org/u/dirypan)\
**Replies:** 4\
**Last updated:** [May 18, 2020, 8:29pm UTC](https://discourse.julialang.org/t/animation-slower-than-plotting-separately/39622 "2020-05-18T20:29:05Z")

</div>

Hi, I want to plot animation of the graph in which the width of every edge changes over time but the node location is given. Here is the code generating one plot, given a simple graph G, the location dictionary of every…

---

## [GraphBLAS standard in Julia](https://discourse.julialang.org/t/graphblas-standard-in-julia/36147)

<div class="topic-metadata">

**Author:** [@pao](https://discourse.julialang.org/u/pao)\
**Replies:** 8\
**Last updated:** [May 18, 2020, 8:07pm UTC](https://discourse.julialang.org/t/graphblas-standard-in-julia/36147 "2020-05-18T20:07:25Z")

</div>

Hello guys, I am a big fan of GraphBLAS the standard approach to graph algorithms with Linear Algebra and sparse matrices. In my research, I’m actually starting using it for cellular complexes (CAD, solid modeling, gra…

---

## [Artificial line exists when plot a shape with fill command](https://discourse.julialang.org/t/artificial-line-exists-when-plot-a-shape-with-fill-command/39664)

<div class="topic-metadata">

**Author:** [@Ruizhi\_Yang](https://discourse.julialang.org/u/Ruizhi_Yang)\
**Replies:** 4\
**Last updated:** [May 18, 2020, 5:23pm UTC](https://discourse.julialang.org/t/artificial-line-exists-when-plot-a-shape-with-fill-command/39664 "2020-05-18T17:23:17Z")

</div>

Hello, I was trying to plot some shape with filled area with pyplot backend, for example using Plots pyplot() x = \[1,2,3,2,1\] y = \[1,0,1,2,1\] p = plot(x,y, fill=true) savefig(p,"tmp.eps") It works as expected and sho…

---

## [Saving VegaLite Plots as SVG on Centos 6.1](https://discourse.julialang.org/t/saving-vegalite-plots-as-svg-on-centos-6-1/39460)

<div class="topic-metadata">

**Author:** [@Rudi79](https://discourse.julialang.org/u/Rudi79)\
**Replies:** 15\
**Last updated:** [May 18, 2020, 5:00pm UTC](https://discourse.julialang.org/t/saving-vegalite-plots-as-svg-on-centos-6-1/39460 "2020-05-18T17:00:20Z")

</div>

Hi, I am trying to get VegaLite (v2.1.3) to work on CentOS 6.1. Unfortunately, with no avail. I can produce plots fine, but saving them does not work. using VegaLite p = @vlplot(:line, y = rand(10)); save("test.svg", p…

---

## [MILP optimization using Gurobi gives error related to Attribute MathOptInterface](https://discourse.julialang.org/t/milp-optimization-using-gurobi-gives-error-related-to-attribute-mathoptinterface/39700)

<div class="topic-metadata">

**Author:** [@mamuniut09](https://discourse.julialang.org/u/mamuniut09)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 3:32pm UTC](https://discourse.julialang.org/t/milp-optimization-using-gurobi-gives-error-related-to-attribute-mathoptinterface/39700 "2020-05-18T15:32:48Z")

</div>

Hello all, I was trying to optimize an MILP problem using Gurobi. However, I am getting the below error. MathOptInterface.UnsupportedAttribute{MathOptInterface.NLPBlock}: Attribute MathOptInterface.NLPBlock() is not su…

---

## [Fast in.(x, Ref(y))](https://discourse.julialang.org/t/fast-in-x-ref-y/39701)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 4\
**Last updated:** [May 18, 2020, 3:26pm UTC](https://discourse.julialang.org/t/fast-in-x-ref-y/39701 "2020-05-18T15:26:50Z")

</div>

I often want to filter a large Dataframe by checking whether the values of a column are elements of another large vector. Naively broadcasting in across the first vector is very slow: julia\> n = 10^5; @time in.(rand(1:…

---

## [Best practices for implicit function parameters](https://discourse.julialang.org/t/best-practices-for-implicit-function-parameters/39699)

<div class="topic-metadata">

**Author:** [@hessammehr](https://discourse.julialang.org/u/hessammehr)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 2:55pm UTC](https://discourse.julialang.org/t/best-practices-for-implicit-function-parameters/39699 "2020-05-18T14:55:04Z")

</div>

Often packages require passing callbacks with a fixed signature f(x) where my implementation of f will need to refer to an auxiliary variable in the surrounding context called a. Given how the use of global variables is …

---

## [\[CfP\] DLS 2020 - Dynamic Languages Symposium, submission deadline July 9th](https://discourse.julialang.org/t/cfp-dls-2020-dynamic-languages-symposium-submission-deadline-july-9th/39697)

<div class="topic-metadata">

**Author:** [@mflatt](https://discourse.julialang.org/u/mflatt)\
**Replies:** 0\
**Last updated:** [May 18, 2020, 2:41pm UTC](https://discourse.julialang.org/t/cfp-dls-2020-dynamic-languages-symposium-submission-deadline-july-9th/39697 "2020-05-18T14:41:51Z")

</div>

The 16th Dynamic Languages Symposium (DLS) at SPLASH 2020 is the premier forum for researchers and practitioners to share research and experience on all aspects on dynamic languages. DLS 2020 invites high quality pape…

---

## [Iterating over and slicing a multidimensional array](https://discourse.julialang.org/t/iterating-over-and-slicing-a-multidimensional-array/39683)

<div class="topic-metadata">

**Author:** [@apbraun](https://discourse.julialang.org/u/apbraun)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 12:02pm UTC](https://discourse.julialang.org/t/iterating-over-and-slicing-a-multidimensional-array/39683 "2020-05-18T12:02:57Z")

</div>

Is it possible to iterate over a multidimensional array and slice the different dimensions in a loop? For example instead of julia\> a = zeros(2,2) 2×2 Array{Float64,2}: 0.0 0.0 0.0 0.0 julia\> for i in 1:2 …

---

## [\[JuMP\] Connecting JuMP to custom Solver Simplex](https://discourse.julialang.org/t/jump-connecting-jump-to-custom-solver-simplex/39623)

<div class="topic-metadata">

**Author:** [@RaulBritto](https://discourse.julialang.org/u/RaulBritto)\
**Replies:** 7\
**Last updated:** [May 18, 2020, 11:22am UTC](https://discourse.julialang.org/t/jump-connecting-jump-to-custom-solver-simplex/39623 "2020-05-18T11:22:21Z")

</div>

Hello, I’m new in Julia Language and I’m currently coding the Simplex algorithm and I would like to use JuMP to write the optimization models to my solver. My ideia is write the models using JuMP and call my solver or Ju…

---

## [Help make my ideal gas simulation ideally fast](https://discourse.julialang.org/t/help-make-my-ideal-gas-simulation-ideally-fast/39141)

<div class="topic-metadata">

**Author:** [@jgreener64](https://discourse.julialang.org/u/jgreener64)\
**Replies:** 13\
**Last updated:** [May 18, 2020, 11:10am UTC](https://discourse.julialang.org/t/help-make-my-ideal-gas-simulation-ideally-fast/39141 "2020-05-18T11:10:04Z")

</div>

I have been meaning to speed up some of the non-bonded force calculation in Molly.jl and I had a play with it today, but found I hit a ceiling. I have extracted a simplistic molecular dynamics simulation of a Lennard Jo…

---

## [Julia method error](https://discourse.julialang.org/t/julia-method-error/39644)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 6\
**Last updated:** [May 18, 2020, 10:36am UTC](https://discourse.julialang.org/t/julia-method-error/39644 "2020-05-18T10:36:40Z")

</div>

I created a neural network using Flux library. My code is based on the paper “neural importance sampling”. I defined custom layers and custom loss function. Each layer returns two outputs. When I run my code, I receive t…

---

## [What should be an argument of this function?](https://discourse.julialang.org/t/what-should-be-an-argument-of-this-function/39660)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 3\
**Last updated:** [May 18, 2020, 9:13am UTC](https://discourse.julialang.org/t/what-should-be-an-argument-of-this-function/39660 "2020-05-18T09:13:15Z")

</div>

Here’e the code error. julia\> name(15) ERROR: MethodError: no method matching name(::Int64) Closest candidates are: name(::DataType) I tried also this: julia\> name(typeof(Int)) ERROR: MethodError: Cannot \`convert\` a…

---

## [Julia, Atom and Jupyter all-in-one installer for Windows](https://discourse.julialang.org/t/julia-atom-and-jupyter-all-in-one-installer-for-windows/39658)

<div class="topic-metadata">

**Author:** [@heetbeet](https://discourse.julialang.org/u/heetbeet)\
**Replies:** 6\
**Last updated:** [May 18, 2020, 8:53am UTC](https://discourse.julialang.org/t/julia-atom-and-jupyter-all-in-one-installer-for-windows/39658 "2020-05-18T08:53:03Z")

</div>

I started building this a few weeks ago as a script for my own use, and decided to make it more public: GitHub - heetbeet/juliawin: A portable Julia for Windows, bundled with VSCode, Pluto, Conda & PyCall, and more. Wha…

---

## [Is there a way to reference an arbitrary array-like object as 0-based array?](https://discourse.julialang.org/t/is-there-a-way-to-reference-an-arbitrary-array-like-object-as-0-based-array/39680)

<div class="topic-metadata">

**Author:** [@astrojhgu](https://discourse.julialang.org/u/astrojhgu)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 7:52am UTC](https://discourse.julialang.org/t/is-there-a-way-to-reference-an-arbitrary-array-like-object-as-0-based-array/39680 "2020-05-18T07:52:16Z")

</div>

There is such a customized indexing array in Julia, but its type is different from the built-in array type. It is annoying to handle different types so is it possible to (at least when writing a function argument list) …

---

## [Point wise operations on array of vectors](https://discourse.julialang.org/t/point-wise-operations-on-array-of-vectors/39611)

<div class="topic-metadata">

**Author:** [@bionicinnovations1](https://discourse.julialang.org/u/bionicinnovations1)\
**Replies:** 7\
**Last updated:** [May 18, 2020, 7:25am UTC](https://discourse.julialang.org/t/point-wise-operations-on-array-of-vectors/39611 "2020-05-18T07:25:04Z")

</div>

I have an array of vectors (of different lengths) and I want to perform a point wise operation on all values: a= \[\[1 2 3 4\], \[1 2 3 4 5\], \[1 2 3\]\] b = a .-1 This give me an error. MethodError: no method matching -(::…

---

## [Alternativa to softmax?](https://discourse.julialang.org/t/alternativa-to-softmax/39671)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 2:55am UTC](https://discourse.julialang.org/t/alternativa-to-softmax/39671 "2020-05-18T02:55:51Z")

</div>

alternativa to softmax? Would you suggest it? I don’t like softmax since softmax(const \* x) != softmax (x) . For instance softmax(\[0,0.2,0.05\]) = \[0.3,0.37,0.32\], so I can’t interpretare it as probability at all, bacu…

---

## [InexactError: trunc(Int64, NaN) while using theme(:mute) in plots](https://discourse.julialang.org/t/inexacterror-trunc-int64-nan-while-using-theme-mute-in-plots/39640)

<div class="topic-metadata">

**Author:** [@SarthakDsh](https://discourse.julialang.org/u/SarthakDsh)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 8:08pm UTC](https://discourse.julialang.org/t/inexacterror-trunc-int64-nan-while-using-theme-mute-in-plots/39640 "2020-05-17T20:08:41Z")

</div>

I have the following code using Plots gr() theme(:mute) x1 =200:0.1:300.0 plot(x1,rand(length(x1))) which produces the following error InexactError: trunc(Int64, NaN) Stacktrace: \[1\] trunc at .\\float.jl:703 \[inline…

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

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