# Latest

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

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

**Page:** 1811

---

## [Why julia exit from REPL?](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445)

<div class="topic-metadata">

**Author:** [@Darione](https://discourse.julialang.org/u/Darione)\
**Replies:** 15\
**Last updated:** [March 3, 2020, 11:20pm UTC](https://discourse.julialang.org/t/why-julia-exit-from-repl/35445 "2020-03-03T23:20:07Z")

</div>

Hi, an oddity in the early morning … I am in REPL (on windows 10). Julia exit from REPL … but why??? julia\> x = 1 1 julia\> x = \[1,2,3,4\] C:\\vmswap\\juliaPrj\\querere\> It exits ? … due to what ??? Did something break…

---

## [The REPL broke again](https://discourse.julialang.org/t/the-repl-broke-again/35489)

<div class="topic-metadata">

**Author:** [@Darione](https://discourse.julialang.org/u/Darione)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 11:15pm UTC](https://discourse.julialang.org/t/the-repl-broke-again/35489 "2020-03-03T23:15:25Z")

</div>

I can not believe it … the REPL broke again … I worked this time with Visual Studio Code and Julia in the afternoon and everything was fine, reboot tonight, and here you are again that the REPL does not work … this time …

---

## [Taro package ... what is this JULIA\_COPY\_STACKS?](https://discourse.julialang.org/t/taro-package-what-is-this-julia-copy-stacks/35417)

<div class="topic-metadata">

**Author:** [@Darione](https://discourse.julialang.org/u/Darione)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 11:11pm UTC](https://discourse.julialang.org/t/taro-package-what-is-this-julia-copy-stacks/35417 "2020-03-03T23:11:27Z")

</div>

Setting JULIA\_COPY\_STACKS 1 or yes, make Taro package working … but it breaks the REPL of Juno, that doesn’t load Julia … What is this JULIA\_COPY\_STACKS ? how can i use Taro package without breaking the juno REPL ? jul…

---

## [A thought on function chaining with constant Arguments](https://discourse.julialang.org/t/a-thought-on-function-chaining-with-constant-arguments/35396)

<div class="topic-metadata">

**Author:** [@FPGro](https://discourse.julialang.org/u/FPGro)\
**Replies:** 13\
**Last updated:** [March 3, 2020, 10:58pm UTC](https://discourse.julialang.org/t/a-thought-on-function-chaining-with-constant-arguments/35396 "2020-03-03T22:58:45Z")

</div>

Hello folks, and thanks for your oppinion in advance. First, I’m pretty new to Julia so you may forgive me the style if you will :slight\_smile: While learning the language and creating the first functionalities, I came…

---

## [Annotate data points in a y matrix with several series](https://discourse.julialang.org/t/annotate-data-points-in-a-y-matrix-with-several-series/35481)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 10:25pm UTC](https://discourse.julialang.org/t/annotate-data-points-in-a-y-matrix-with-several-series/35481 "2020-03-03T22:25:10Z")

</div>

Are there a way to do \[println($(a\[i,j\])) for i in 1:10, j in 1:3\]? a=zeros(10,3) \[println("$(a\[i,:\])") for i in 1:10\]#works \[println("$(a\[i,j\])") for i in 1:10, for j in 1:3\] #nope \[println("$(a\[i,j\])") for i in 1:10,…

---

## [Converting image files to svg?](https://discourse.julialang.org/t/converting-image-files-to-svg/35428)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 8\
**Last updated:** [March 3, 2020, 8:18pm UTC](https://discourse.julialang.org/t/converting-image-files-to-svg/35428 "2020-03-03T20:18:21Z")

</div>

Is there a way to convert image files to .svg? FileIO.jl seems to cover many of the file types I have (wmf, eps, png, bmp, bdf, etc.) with load and save. Any other package I can use? E.g., via savefig in Plots?

---

## [PhD position in fluorescence microscope/microscopy image processing](https://discourse.julialang.org/t/phd-position-in-fluorescence-microscope-microscopy-image-processing/35482)

<div class="topic-metadata">

**Author:** [@congUoM](https://discourse.julialang.org/u/congUoM)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 8:04pm UTC](https://discourse.julialang.org/t/phd-position-in-fluorescence-microscope-microscopy-image-processing/35482 "2020-03-03T20:04:49Z")

</div>

Hi all, My lab at the University of Memphis is looking for a PhD student working on fluorescence microscope (specifically structured illumination microscopy), for both the experimental (microscope/device) part and compu…

---

## [How to create a simple map with custom "base" shapefile + data to plot on a separate CSV file](https://discourse.julialang.org/t/how-to-create-a-simple-map-with-custom-base-shapefile-data-to-plot-on-a-separate-csv-file/34580)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [March 3, 2020, 6:26pm UTC](https://discourse.julialang.org/t/how-to-create-a-simple-map-with-custom-base-shapefile-data-to-plot-on-a-separate-csv-file/34580 "2020-03-03T18:26:15Z")

</div>

Hello, is it possible with Julia to plot a map based on a custom shapefile and a data file ? The simplest case is where we want to plot some “regional data” and the background colour represents the data, like in the atta…

---

## [Strange array calculation behaviour](https://discourse.julialang.org/t/strange-array-calculation-behaviour/35476)

<div class="topic-metadata">

**Author:** [@Bjorn\_De](https://discourse.julialang.org/u/Bjorn_De)\
**Replies:** 3\
**Last updated:** [March 3, 2020, 5:56pm UTC](https://discourse.julialang.org/t/strange-array-calculation-behaviour/35476 "2020-03-03T17:56:37Z")

</div>

Hi! I have two arrays, with both the same size. I want to do some simple calculations such as: arr = (arr1 ./ arr2) .\* 100 maximum(arr1) is 31.0 and maximum(arr2) is 48. So I assume that the highest value or arr shou…

---

## [Difficulties to convert Matlab (ODE45) -\> Julia](https://discourse.julialang.org/t/difficulties-to-convert-matlab-ode45-julia/34828)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 7\
**Last updated:** [March 3, 2020, 5:27pm UTC](https://discourse.julialang.org/t/difficulties-to-convert-matlab-ode45-julia/34828 "2020-03-03T17:27:22Z")

</div>

I’m sorry to interrupt your morning/afternoon/evenning, but I need some help to convert a code written in Matlab into Julia. However, I cannot figure out where/why/how is going wrong :sob: I have a code to my research w…

---

## [Updating a plot](https://discourse.julialang.org/t/updating-a-plot/35457)

<div class="topic-metadata">

**Author:** [@pjgorski](https://discourse.julialang.org/u/pjgorski)\
**Replies:** 3\
**Last updated:** [March 3, 2020, 4:49pm UTC](https://discourse.julialang.org/t/updating-a-plot/35457 "2020-03-03T16:49:47Z")

</div>

How to update an already created plot? Let’s say we have a plotting function returning a handle like this one: h=plot(x, y, seriestype:scatter) And, afterwards, we decided to change the scatter points to a solid line. …

---

## [Is that an issue in promote()?](https://discourse.julialang.org/t/is-that-an-issue-in-promote/35446)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 13\
**Last updated:** [March 3, 2020, 4:01pm UTC](https://discourse.julialang.org/t/is-that-an-issue-in-promote/35446 "2020-03-03T16:01:56Z")

</div>

julia\> promote(1,missing) ERROR: promotion of types Int64 and Missing failed to change any arguments Stacktrace: \[1\] error(::String, ::String, ::String) at ./error.jl:42 \[2\] sametype\_error(::Tuple{Int64,Missing}) at ./…

---

## [Dynamic name of DataFrames by iteration](https://discourse.julialang.org/t/dynamic-name-of-dataframes-by-iteration/35465)

<div class="topic-metadata">

**Author:** [@Alfre\_chile77](https://discourse.julialang.org/u/Alfre_chile77)\
**Replies:** 6\
**Last updated:** [March 3, 2020, 3:13pm UTC](https://discourse.julialang.org/t/dynamic-name-of-dataframes-by-iteration/35465 "2020-03-03T15:13:37Z")

</div>

Hi, I want to create seven different Data Frames with different names tbl1:tbl7 based on the iteration over groupby()\[i\] n1=7 for i in 1:n1 global “tbl$(i)” “tbl$(i)”= groupby(d4,:variable)\[i\] println(first(“tbl$(i…

---

## [Infeasibility](https://discourse.julialang.org/t/infeasibility/35456)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 2:48pm UTC](https://discourse.julialang.org/t/infeasibility/35456 "2020-03-03T14:48:32Z")

</div>

Is there a way to get some more information about why a JuMP.Model is infeasible, like e.g. Gurobi has?

---

## [Could not open file](https://discourse.julialang.org/t/could-not-open-file/16283)

<div class="topic-metadata">

**Author:** [@orhan\_abar](https://discourse.julialang.org/u/orhan_abar)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 2:29pm UTC](https://discourse.julialang.org/t/could-not-open-file/16283 "2020-03-03T14:29:48Z")

</div>

Hello, I just install julia yesterday and I am trying to run a .jl file but I keep getting “could not open file” error. I am checking the directory with pwd() and it is correct. My juliatest.jl file is there. But canno…

---

## [Intensive Julia workshop: "Zero2Hero"](https://discourse.julialang.org/t/intensive-julia-workshop-zero2hero/35461)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 7\
**Last updated:** [March 3, 2020, 2:17pm UTC](https://discourse.julialang.org/t/intensive-julia-workshop-zero2hero/35461 "2020-03-03T14:17:21Z")

</div>

Hi everyone, for a long time now I wanted to make a Julia workshop that had the following properties: It is intensive, and can be done in one day. I always prefer such intensive workshops, I think they are much more e…

---

## [MethodError: no method matching -(::VariableRef, ::Nothing)](https://discourse.julialang.org/t/methoderror-no-method-matching-variableref-nothing/35126)

<div class="topic-metadata">

**Author:** [@alkin](https://discourse.julialang.org/u/alkin)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 12:36pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-variableref-nothing/35126 "2020-03-03T12:36:35Z")

</div>

I am new to julia and I am still trying to learn about it. I tried to use a user-defined function in my constraint. Basically, the lookup function returns the value of the same index as the input in the array: functio…

---

## [Communicating Python and Julia](https://discourse.julialang.org/t/communicating-python-and-julia/35455)

<div class="topic-metadata">

**Author:** [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Replies:** 5\
**Last updated:** [March 3, 2020, 12:27pm UTC](https://discourse.julialang.org/t/communicating-python-and-julia/35455 "2020-03-03T12:27:59Z")

</div>

Hi everyone. For converting python code to C, we have Cython. Similarly, there is no such package to convert python to Julia(correct me if I’m wrong). Thus, I want my python code to communicate with Julia. I came throug…

---

## [After scaling the vector still not summing up to 1](https://discourse.julialang.org/t/after-scaling-the-vector-still-not-summing-up-to-1/35460)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 12:14pm UTC](https://discourse.julialang.org/t/after-scaling-the-vector-still-not-summing-up-to-1/35460 "2020-03-03T12:14:00Z")

</div>

a=\[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.000999000999000999, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, …

---

## [Best julia editor in windows, for a beginner?](https://discourse.julialang.org/t/best-julia-editor-in-windows-for-a-beginner/35448)

<div class="topic-metadata">

**Author:** [@Darione](https://discourse.julialang.org/u/Darione)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 12:10pm UTC](https://discourse.julialang.org/t/best-julia-editor-in-windows-for-a-beginner/35448 "2020-03-03T12:10:32Z")

</div>

I mainly work in windows 10 (but … on my desktop i also have a mac mini, with Catalina os). I am reinstalled Julia/Juno due to some strange behaviour … and i was thinking … … for a beginner, what is the best editor for…

---

## [Changing background color of "Plots" Tab in Juno](https://discourse.julialang.org/t/changing-background-color-of-plots-tab-in-juno/35453)

<div class="topic-metadata">

**Author:** [@yordiak](https://discourse.julialang.org/u/yordiak)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 11:15am UTC](https://discourse.julialang.org/t/changing-background-color-of-plots-tab-in-juno/35453 "2020-03-03T11:15:13Z")

</div>

Hello, recently I switched from julia-vscode to Juno. What I like about it is the “workspace”, “documentation” and “plots” tabs. However, I would like to change the background of the “plot” tab , such that plots match m…

---

## [Calculated type parameter warntype](https://discourse.julialang.org/t/calculated-type-parameter-warntype/35440)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 6\
**Last updated:** [March 3, 2020, 7:37am UTC](https://discourse.julialang.org/t/calculated-type-parameter-warntype/35440 "2020-03-03T07:37:49Z")

</div>

in the following, I’m trying to put some calculated values as type parameters: julia\> struct A{Plus, Minus} A(x, y) = new{x + y, x - y}() end julia\> A(2, 3) A{5,-1}() julia\> @code\_warntype A(2, 3) Va…

---

## [Change the order of the rows Array](https://discourse.julialang.org/t/change-the-order-of-the-rows-array/35449)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 10:04am UTC](https://discourse.julialang.org/t/change-the-order-of-the-rows-array/35449 "2020-03-03T10:04:18Z")

</div>

This code works, but my iterator is part of a large array and I am looking for any simplest way to scroll tables rows than with hat like below? (for any event rows to move to end ) julia\> lista 5×1 Array{Int64,2}: 1 …

---

## [How to solve error while compiling custom package that uses Turing with Revise](https://discourse.julialang.org/t/how-to-solve-error-while-compiling-custom-package-that-uses-turing-with-revise/34745)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 10\
**Last updated:** [March 3, 2020, 10:25am UTC](https://discourse.julialang.org/t/how-to-solve-error-while-compiling-custom-package-that-uses-turing-with-revise/34745 "2020-03-03T10:25:49Z")

</div>

Hi, I have a custom package named MyPkg and it contains a function named test\_fun() as follows, that copied and modified from Turing documentation. function test\_fun() # Set the true probability of heads in a coin.…

---

## [Size function does not work with pairs(::NamedTuple)](https://discourse.julialang.org/t/size-function-does-not-work-with-pairs-namedtuple/35451)

<div class="topic-metadata">

**Author:** [@ravi.joshi](https://discourse.julialang.org/u/ravi.joshi)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 10:11am UTC](https://discourse.julialang.org/t/size-function-does-not-work-with-pairs-namedtuple/35451 "2020-03-03T10:11:18Z")

</div>

The size function works as expected for pairs(::Array), but throws an error for pairs(::NamedTuple). Is it expected or a bug? Shouldn’t the functions on Pairs work uniformly for all underlying containers? If it is a bug…

---

## [How to parallelize the computation of a minimum](https://discourse.julialang.org/t/how-to-parallelize-the-computation-of-a-minimum/34307)

<div class="topic-metadata">

**Author:** [@lesshaste](https://discourse.julialang.org/u/lesshaste)\
**Replies:** 10\
**Last updated:** [March 3, 2020, 9:55am UTC](https://discourse.julialang.org/t/how-to-parallelize-the-computation-of-a-minimum/34307 "2020-03-03T09:55:26Z")

</div>

Consider the following code: function hamming4(bits1::Integer, bits2::Integer) return count\_ones(bits1 ⊻ bits2) end function random\_strings2(n, N) mask = UInt128(1) \<\< n - 1 return \[rand(UInt128) & mask for…

---

## [Uncaught Error: Pty seems to have been killed already](https://discourse.julialang.org/t/uncaught-error-pty-seems-to-have-been-killed-already/35447)

<div class="topic-metadata">

**Author:** [@Eric\_Chen](https://discourse.julialang.org/u/Eric_Chen)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 9:53am UTC](https://discourse.julialang.org/t/uncaught-error-pty-seems-to-have-been-killed-already/35447 "2020-03-03T09:53:52Z")

</div>

Uncaught Error: Pty seems to have been killed already In Atom + Juno 0.12, I have some error during 2 cases: 1. When I read a large CSV file CSV.read(xxx) |\> DataFrame Then REPL is frozen, does not accept any interrup…

---

## [Assignment to size zero array, \[in-place assign bug\]?](https://discourse.julialang.org/t/assignment-to-size-zero-array-in-place-assign-bug/35312)

<div class="topic-metadata">

**Author:** [@dehann](https://discourse.julialang.org/u/dehann)\
**Replies:** 5\
**Last updated:** [March 3, 2020, 9:42am UTC](https://discourse.julialang.org/t/assignment-to-size-zero-array-in-place-assign-bug/35312 "2020-03-03T09:42:55Z")

</div>

Hi, just came across this. Should assigning to a zero size array not perhaps produce an error: julia\> a = zeros(0,1) julia\> a\[:,1\] .= \[1\] 0-element view(::Array{Float64,2}, :, 1) with eltype Float64 Regular behavior d…

---

## [Warning in 1.0 +?](https://discourse.julialang.org/t/warning-in-1-0/35281)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 28\
**Last updated:** [March 3, 2020, 9:20am UTC](https://discourse.julialang.org/t/warning-in-1-0/35281 "2020-03-03T09:20:49Z")

</div>

Is possible switch ON Warnings: in Julia 1.0 and higher like was in 0.7 ? : julia\> sum(rand(10,10),1) ┌ Warning: \`sum(a::AbstractArray, dims)\` is deprecated, use \`sum(a, dims=dims)\` instead. │ caller = top-level sco…

---

## [GraphPlot: calling gplot() inside function does often not work (in Atom)](https://discourse.julialang.org/t/graphplot-calling-gplot-inside-function-does-often-not-work-in-atom/35086)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 8:01am UTC](https://discourse.julialang.org/t/graphplot-calling-gplot-inside-function-does-often-not-work-in-atom/35086 "2020-03-03T08:01:55Z")

</div>

Dear community, I observe a strange behavior when plotting graphs with GraphPlot. In most cases it refuses to plot the input graph if I call gplot() via a function. However, sometimes (in rare cases) it works. Calling g…

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

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