# Latest

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

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

**Page:** 1889

---

## [Assignments, Copies and Deepcop](https://discourse.julialang.org/t/assignments-copies-and-deepcop/30723)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 14\
**Last updated:** [November 5, 2019, 5:07pm UTC](https://discourse.julialang.org/t/assignments-copies-and-deepcop/30723 "2019-11-05T17:07:15Z")

</div>

This is a question regarding the use of “=” signs in Julia. I can do the following for-loop in MATLAB for ii = 1 : dt ηp1 = shallowwave1D(ηn,ηm1,r); ηm1 = ηn; ηn = ηp1; end Can the same be done in Julia? Or …

---

## [Blog post on Rust's new scheduler](https://discourse.julialang.org/t/blog-post-on-rusts-new-scheduler/29910)

<div class="topic-metadata">

**Author:** [@kevin.squire](https://discourse.julialang.org/u/kevin.squire)\
**Replies:** 1\
**Last updated:** [November 5, 2019, 4:25pm UTC](https://discourse.julialang.org/t/blog-post-on-rusts-new-scheduler/29910 "2019-11-05T16:25:26Z")

</div>

Rust is about to release a new version of its scheduler, and there’s an interesting (and detailed) blog post about it that I thought some people here might be interested in, especially with all of the great work going on…

---

## [Overlay plot with second plot with second y-axis to the right?](https://discourse.julialang.org/t/overlay-plot-with-second-plot-with-second-y-axis-to-the-right/6558)

<div class="topic-metadata">

**Author:** [@LotteVictor](https://discourse.julialang.org/u/LotteVictor)\
**Replies:** 9\
**Last updated:** [November 5, 2019, 4:12pm UTC](https://discourse.julialang.org/t/overlay-plot-with-second-plot-with-second-y-axis-to-the-right/6558 "2019-11-05T16:12:57Z")

</div>

Currently I’m using RCall, to plot in R, but I’m trying to switch to plotting directly in Julia (in Juno IDE, on Linux mint). I’m trying to overlay a plot I made with Plots.jl using the GR backend with a second plot with…

---

## [Error using JuliaPro behind corporate firewall](https://discourse.julialang.org/t/error-using-juliapro-behind-corporate-firewall/22653)

<div class="topic-metadata">

**Author:** [@nukebro](https://discourse.julialang.org/u/nukebro)\
**Replies:** 4\
**Last updated:** [November 5, 2019, 3:46pm UTC](https://discourse.julialang.org/t/error-using-juliapro-behind-corporate-firewall/22653 "2019-11-05T15:46:59Z")

</div>

I recently downloaded JuliaPro and started to use the REPL through atom, but I can’t import any packages. When I try to add anything, I get the following error, (v1.0) pkg\> add JuMP Resolving package versions... ERROR…

---

## [Solver iterates then declares model infeasible - what could explain this behaviour for a linear problem?](https://discourse.julialang.org/t/solver-iterates-then-declares-model-infeasible-what-could-explain-this-behaviour-for-a-linear-problem/27702)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 7\
**Last updated:** [November 5, 2019, 3:13pm UTC](https://discourse.julialang.org/t/solver-iterates-then-declares-model-infeasible-what-could-explain-this-behaviour-for-a-linear-problem/27702 "2019-11-05T15:13:11Z")

</div>

I’m solving a linear problem with JuMP and Gurobi, and for some formulations I end up getting the following behaviour: Academic license - for non-commercial use only Optimize a model with 6725 rows, 6346 columns and 172…

---

## [Implement a convenient interface to keep some parameter fix for optimization](https://discourse.julialang.org/t/implement-a-convenient-interface-to-keep-some-parameter-fix-for-optimization/30745)

<div class="topic-metadata">

**Author:** [@scheidan](https://discourse.julialang.org/u/scheidan)\
**Replies:** 2\
**Last updated:** [November 5, 2019, 1:07pm UTC](https://discourse.julialang.org/t/implement-a-convenient-interface-to-keep-some-parameter-fix-for-optimization/30745 "2019-11-05T13:07:38Z")

</div>

Hi all, First I have to apologize because I could not write this questions as concise as I’d like to. My goal is to implement an interface for optimisation/inference where the user can keep certain parameters fix (i.e.…

---

## [Being able to click through plots in the Plot Pane fills up RAM](https://discourse.julialang.org/t/being-able-to-click-through-plots-in-the-plot-pane-fills-up-ram/30710)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 1\
**Last updated:** [November 5, 2019, 11:33am UTC](https://discourse.julialang.org/t/being-able-to-click-through-plots-in-the-plot-pane-fills-up-ram/30710 "2019-11-05T11:33:17Z")

</div>

Hey everyone, I have encountered recently that the plotting pane can take up a lot of RAM, when I generate many Plots (nothing too crazy, maybe 50, but then Julia + Atom need 3 GB of RAM). It gets to the point where Ato…

---

## [Expectations met](https://discourse.julialang.org/t/expectations-met/30741)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 0\
**Last updated:** [November 5, 2019, 10:56am UTC](https://discourse.julialang.org/t/expectations-met/30741 "2019-11-05T10:56:27Z")

</div>

I added packages A , B and C and it just worked! :heart:

---

## [Typed equality comparison](https://discourse.julialang.org/t/typed-equality-comparison/30736)

<div class="topic-metadata">

**Author:** [@phg](https://discourse.julialang.org/u/phg)\
**Replies:** 1\
**Last updated:** [November 5, 2019, 10:18am UTC](https://discourse.julialang.org/t/typed-equality-comparison/30736 "2019-11-05T10:18:36Z")

</div>

Is there any existing function (in Base or standard libraries) to do essentially the following: ≅(x::T, y::T) where {T} = x == y ≅(x, y) = false ?

---

## [\`getproperty\` with other types than \`Symbol\`](https://discourse.julialang.org/t/getproperty-with-other-types-than-symbol/30729)

<div class="topic-metadata">

**Author:** [@phg](https://discourse.julialang.org/u/phg)\
**Replies:** 3\
**Last updated:** [November 5, 2019, 9:51am UTC](https://discourse.julialang.org/t/getproperty-with-other-types-than-symbol/30729 "2019-11-05T09:51:26Z")

</div>

I noticed that one can overload getproperty with String, not only Symbol (PyCall does this): julia\> struct Foo end julia\> import Base: getproperty julia\> getproperty(::Foo, x::Symbol) = x getproperty (generic function…

---

## [Version of a new package (\["master"\] has no known version)](https://discourse.julialang.org/t/version-of-a-new-package-master-has-no-known-version/30731)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 2\
**Last updated:** [November 5, 2019, 9:22am UTC](https://discourse.julialang.org/t/version-of-a-new-package-master-has-no-known-version/30731 "2019-11-05T09:22:31Z")

</div>

I have two packages under development, the second, X3872.jl, depends on the first ThreeBodyDecay.jl. While there is no specific requirement for the version of the first package, the Pkg system cannot resolve the depe…

---

## [Suppress Plot Window when output to animation](https://discourse.julialang.org/t/suppress-plot-window-when-output-to-animation/30724)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 3\
**Last updated:** [November 5, 2019, 7:16am UTC](https://discourse.julialang.org/t/suppress-plot-window-when-output-to-animation/30724 "2019-11-05T07:16:54Z")

</div>

Hi! I’m creating an animation of several dozen to a hundred or so frames. However, for each frame I want to push to the animation there is a popup window that flashes open and then closes. Is there a way to get rid of…

---

## [Same types have different hash](https://discourse.julialang.org/t/same-types-have-different-hash/30725)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [November 5, 2019, 6:41am UTC](https://discourse.julialang.org/t/same-types-have-different-hash/30725 "2019-11-05T06:41:50Z")

</div>

EDIT: Also posted as Bug report at https://github.com/JuliaLang/julia/issues/33766 Just stumbled over inconsistent == and hash for Tuple types: while Tuple{Array} == (Tuple{Array{T}} where T) we have hash(Tuple{Array…

---

## [Is it possible to improve the readdir function](https://discourse.julialang.org/t/is-it-possible-to-improve-the-readdir-function/30624)

<div class="topic-metadata">

**Author:** [@Yan](https://discourse.julialang.org/u/Yan)\
**Replies:** 3\
**Last updated:** [November 5, 2019, 4:13am UTC](https://discourse.julialang.org/t/is-it-possible-to-improve-the-readdir-function/30624 "2019-11-05T04:13:57Z")

</div>

To improve the following syntax: filter(x → occursin(r"(?i).jpg|.png", x), readdir()) into readdir(.jpg|.png)

---

## [Question on semantics of loops, maps, and broadcast](https://discourse.julialang.org/t/question-on-semantics-of-loops-maps-and-broadcast/30706)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 6\
**Last updated:** [November 5, 2019, 3:10am UTC](https://discourse.julialang.org/t/question-on-semantics-of-loops-maps-and-broadcast/30706 "2019-11-05T03:10:00Z")

</div>

I’ve been playing with writing things in different forms, for example the following: function f\_by\_loop!(data,x) @inbounds for i in eachindex(data) data\[i\] = min(x,data\[i\]) end end vs data .= min.(x,dat…

---

## [Define a variable that depends on a previously defined variable in JuMP](https://discourse.julialang.org/t/define-a-variable-that-depends-on-a-previously-defined-variable-in-jump/30572)

<div class="topic-metadata">

**Author:** [@Jayzyu](https://discourse.julialang.org/u/Jayzyu)\
**Replies:** 4\
**Last updated:** [November 5, 2019, 2:00am UTC](https://discourse.julialang.org/t/define-a-variable-that-depends-on-a-previously-defined-variable-in-jump/30572 "2019-11-05T02:00:28Z")

</div>

Hello all, I am trying to define a variable that is dependent on a previously defined variable. A close example is as follows: N=10 nodes = 1:N model=Model() @variable(model,is\_not\_damaged\_nodes\[i in nodes\], Bin) @vari…

---

## [How to export Julia data to a .CSV](https://discourse.julialang.org/t/how-to-export-julia-data-to-a-csv/30535)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 14\
**Last updated:** [November 5, 2019, 1:50am UTC](https://discourse.julialang.org/t/how-to-export-julia-data-to-a-csv/30535 "2019-11-05T01:50:55Z")

</div>

I created an empty DataFrame and would like to export the data I got with the model solution I compiled for the DataFrame. I am doing so, and still showing error. df = CSV.read("//arquivo.csv") for i ∈ 1:3 df = Ju…

---

## [Error on running tests for a self-written package](https://discourse.julialang.org/t/error-on-running-tests-for-a-self-written-package/30705)

<div class="topic-metadata">

**Author:** [@peterlane](https://discourse.julialang.org/u/peterlane)\
**Replies:** 4\
**Last updated:** [November 4, 2019, 10:23pm UTC](https://discourse.julialang.org/t/error-on-running-tests-for-a-self-written-package/30705 "2019-11-04T22:23:14Z")

</div>

I have written a package along with some unit tests, which I would like to be able to run once the package is added to Julia. But I get an error: pkg\> add gitlink-to-PackageName pkg\> test PackageName ERROR: LoadError: A…

---

## [Finding the least norm solution of least squares problem with a sparse matrix](https://discourse.julialang.org/t/finding-the-least-norm-solution-of-least-squares-problem-with-a-sparse-matrix/30702)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 2\
**Last updated:** [November 4, 2019, 7:56pm UTC](https://discourse.julialang.org/t/finding-the-least-norm-solution-of-least-squares-problem-with-a-sparse-matrix/30702 "2019-11-04T19:56:10Z")

</div>

I have a matrix M which is the transpose of the Laplacian of a graph and a vector d that may or may not be in the range of M. I want to compute pinv(M)\*d. I assumed that qr(M)\\d does what I want, however it does it only…

---

## [Math-research programmer available for hire](https://discourse.julialang.org/t/math-research-programmer-available-for-hire/23056)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 4\
**Last updated:** [November 4, 2019, 7:31pm UTC](https://discourse.julialang.org/t/math-research-programmer-available-for-hire/23056 "2019-11-04T19:31:10Z")

</div>

Math-researcher working on the Grassmann-Clifford-Hestenes geometric algebra available for hire Please send me a private message if you are interested in hiring or know of any relevant opportunities You can also do…

---

## [Clipper.jl - execute\_pt() method for ClipperOffset](https://discourse.julialang.org/t/clipper-jl-execute-pt-method-for-clipperoffset/30711)

<div class="topic-metadata">

**Author:** [@Josiah\_Slack](https://discourse.julialang.org/u/Josiah_Slack)\
**Replies:** 0\
**Last updated:** [November 4, 2019, 7:16pm UTC](https://discourse.julialang.org/t/clipper-jl-execute-pt-method-for-clipperoffset/30711 "2019-11-04T19:16:52Z")

</div>

I’ve got a situation where I’d like to construct a PolyNode from a ClipperOffset object. Is there an execute\_pt() method waiting in the wings? Alternatively, is there a reasonable way of constructing a PolyNode from the …

---

## [Result changes depending on whether matrix is sparse or not](https://discourse.julialang.org/t/result-changes-depending-on-whether-matrix-is-sparse-or-not/30669)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 16\
**Last updated:** [November 4, 2019, 4:51pm UTC](https://discourse.julialang.org/t/result-changes-depending-on-whether-matrix-is-sparse-or-not/30669 "2019-11-04T16:51:51Z")

</div>

I get this weird bug (I assume) but I cannot reproduce it with another matrix. So this is the setup: A = sparse(\[1,2,1,3,3,4,5\], \[3,3,4,4,5,6,6,\], \[1,1,1,1,1,1,1\], 6, 6 ) A = convert(SparseMatrixCSC{Float64,Int64},A) …

---

## [GLM.jl Is posulbie to use lm() for two vectors without DataFrames?](https://discourse.julialang.org/t/glm-jl-is-posulbie-to-use-lm-for-two-vectors-without-dataframes/30703)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 2\
**Last updated:** [November 4, 2019, 4:35pm UTC](https://discourse.julialang.org/t/glm-jl-is-posulbie-to-use-lm-for-two-vectors-without-dataframes/30703 "2019-11-04T16:35:22Z")

</div>

Is posulbie to use lm() for two vectors" julia\>using GLM x=rand(10); julia\> y=rand(10); julia\> lm(x,y) ERROR: MethodError: no method matching... Just I cant to use DataFrames. Thanks, Paul

---

## [What to do when Julia crashes](https://discourse.julialang.org/t/what-to-do-when-julia-crashes/30690)

<div class="topic-metadata">

**Author:** [@PGS62](https://discourse.julialang.org/u/PGS62)\
**Replies:** 7\
**Last updated:** [November 4, 2019, 4:17pm UTC](https://discourse.julialang.org/t/what-to-do-when-julia-crashes/30690 "2019-11-04T16:17:16Z")

</div>

I’m working on porting an in-house library from R to Julia. On the plus side I’m seeing greatly improved performance - in the best case a 1,000 times speed up for code that performs an optimisation using LNopt versus R …

---

## [KNITRO on Jupyter notebook & Atom](https://discourse.julialang.org/t/knitro-on-jupyter-notebook-atom/30542)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 5\
**Last updated:** [November 4, 2019, 4:07pm UTC](https://discourse.julialang.org/t/knitro-on-jupyter-notebook-atom/30542 "2019-11-04T16:07:15Z")

</div>

Dear all, I am trying out KNITRO solver with a toy example: using JuMP, KNITRO model = JuMP.Model(with\_optimizer(KNITRO.Optimizer)) @variable(model, x1 \>= 0) @variable(model, x2 \>= 0) @constraint(model, -1.5 \* x1 + 2.0…

---

## [ReverseDiff.GradientTapes for functions of the form x -\> f(x, y) when gradient is to be calculated wrt x only?](https://discourse.julialang.org/t/reversediff-gradienttapes-for-functions-of-the-form-x-f-x-y-when-gradient-is-to-be-calculated-wrt-x-only/30668)

<div class="topic-metadata">

**Author:** [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Replies:** 2\
**Last updated:** [November 4, 2019, 2:20pm UTC](https://discourse.julialang.org/t/reversediff-gradienttapes-for-functions-of-the-form-x-f-x-y-when-gradient-is-to-be-calculated-wrt-x-only/30668 "2019-11-04T14:20:20Z")

</div>

Hello, I typically differentiate log-likelihood functions of the forms x → f(x, data) wrt x, where x is a multi-dimensional input, data is some fixed dataframe, f is a scalar-valued function. To do so, I typically use e…

---

## ["q" letter missing in unicode autocompletion mode](https://discourse.julialang.org/t/q-letter-missing-in-unicode-autocompletion-mode/30697)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [November 4, 2019, 2:25pm UTC](https://discourse.julialang.org/t/q-letter-missing-in-unicode-autocompletion-mode/30697 "2019-11-04T14:25:15Z")

</div>

Is there a reason q and Q are missing ?

---

## [Colored legend with Makie](https://discourse.julialang.org/t/colored-legend-with-makie/30691)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 2\
**Last updated:** [November 4, 2019, 2:07pm UTC](https://discourse.julialang.org/t/colored-legend-with-makie/30691 "2019-11-04T14:07:49Z")

</div>

A have a colored scatterplot (made with Makie) and would like to make a legend that explains what the colors mean. How should I modify the following example to achieve this? Tried the kwargs suggested by the docs of lege…

---

## [\[ANN\] PrettyTables.jl v0.6.0](https://discourse.julialang.org/t/ann-prettytables-jl-v0-6-0/29045)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 7\
**Last updated:** [November 4, 2019, 1:51pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-v0-6-0/29045 "2019-11-04T13:51:07Z")

</div>

Hi! I have just requested a new version of PrettyTables.jl to be tagged. The changes are: The format of the horizontal line in the table, which are drawn using the option hlines, can now be selected using the keyword h…

---

## [Cannot import some python packages due to CLIBCXX version mismatch](https://discourse.julialang.org/t/cannot-import-some-python-packages-due-to-clibcxx-version-mismatch/30695)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 0\
**Last updated:** [November 4, 2019, 1:34pm UTC](https://discourse.julialang.org/t/cannot-import-some-python-packages-due-to-clibcxx-version-mismatch/30695 "2019-11-04T13:34:54Z")

</div>

I’m using PyCall with python from my anaconda installation, i.e. ENV\["PYTHON"\] = "/home/aplavin/anaconda3/bin/python". Almost everything has been working fine, but I’m unable to load xgboost package: pyimport("xgboost") …

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

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