# Latest

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

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

**Page:** 1782

---

## [Disable IOStream buffering or replace by unbuffered IO](https://discourse.julialang.org/t/disable-iostream-buffering-or-replace-by-unbuffered-io/36879)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 1\
**Last updated:** [April 7, 2020, 1:28pm UTC](https://discourse.julialang.org/t/disable-iostream-buffering-or-replace-by-unbuffered-io/36879 "2020-04-07T13:28:19Z")

</div>

I have a script written in Julia. It is written in Julia and not bash because: (1) the script will call Julia anyway, and I want to warm-start the JIT to avoid measuring compile time and to reduce the total time used by …

---

## [Getfield with Measurements -\> access to undefined reference](https://discourse.julialang.org/t/getfield-with-measurements-access-to-undefined-reference/37159)

<div class="topic-metadata">

**Author:** [@MartinOtter](https://discourse.julialang.org/u/MartinOtter)\
**Replies:** 1\
**Last updated:** [April 7, 2020, 1:24pm UTC](https://discourse.julialang.org/t/getfield-with-measurements-access-to-undefined-reference/37159 "2020-04-07T13:24:46Z")

</div>

In this test model, an unexpected error is raised from getfield(…) when applied on an uninitialized struct on a field of type Measurements, and I do not find the reason: module Test\_getfield using Measurements mutable…

---

## [Pkg add Distributions fails with Unable to automatically install 'Rmath'](https://discourse.julialang.org/t/pkg-add-distributions-fails-with-unable-to-automatically-install-rmath/37047)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 3\
**Last updated:** [April 7, 2020, 12:57pm UTC](https://discourse.julialang.org/t/pkg-add-distributions-fails-with-unable-to-automatically-install-rmath/37047 "2020-04-07T12:57:45Z")

</div>

This is on Julia1.3.1, Mac 10.14.5 Activating environment at \`~/myuser/...Project.toml\` \[587475ba\] Flux v0.10.3 \[e88e6eb3\] Zygote v0.4.10 julia\> Pkg.add("Distributions") Updating registry at \`~/.julia/registries/G…

---

## [Defining a type that behaves like a (const) function](https://discourse.julialang.org/t/defining-a-type-that-behaves-like-a-const-function/37162)

<div class="topic-metadata">

**Author:** [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Replies:** 3\
**Last updated:** [April 7, 2020, 12:45pm UTC](https://discourse.julialang.org/t/defining-a-type-that-behaves-like-a-const-function/37162 "2020-04-07T12:45:24Z")

</div>

Dear community, I’m trying to define a type that behaves as a function. The usual way is something like struct T z::Int end (t::T)(x) = x \* t.z Then, if t = T(2) we have t(3) == 6. However there is one way in w…

---

## [Solve a system of linear equations many times without allocating memory](https://discourse.julialang.org/t/solve-a-system-of-linear-equations-many-times-without-allocating-memory/36228)

<div class="topic-metadata">

**Author:** [@MartinOtter](https://discourse.julialang.org/u/MartinOtter)\
**Replies:** 18\
**Last updated:** [April 7, 2020, 11:28am UTC](https://discourse.julialang.org/t/solve-a-system-of-linear-equations-many-times-without-allocating-memory/36228 "2020-04-07T11:28:34Z")

</div>

I have the problem that during simulation a linear equation system A\*x=b is solved many times. The desired solution is to allocate memory for all arrays involved in the operation once before simulation starts and during …

---

## [Exponentiation operator for iterated functions?](https://discourse.julialang.org/t/exponentiation-operator-for-iterated-functions/36346)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 10\
**Last updated:** [April 7, 2020, 10:58am UTC](https://discourse.julialang.org/t/exponentiation-operator-for-iterated-functions/36346 "2020-04-07T10:58:31Z")

</div>

Would it make sense to define the ^ operator for iterated functions? Something like: ^(f::Function, n::Integer) = ∘(fill(f,n)...) Then we can do things like typeof(1.0) |\> supertype^3 Instead of typeof(1.0) |\> super…

---

## [Starship prompt now can now show the julia version (and that of julia packages)](https://discourse.julialang.org/t/starship-prompt-now-can-now-show-the-julia-version-and-that-of-julia-packages/37155)

<div class="topic-metadata">

**Author:** [@waldyrious](https://discourse.julialang.org/u/waldyrious)\
**Replies:** 0\
**Last updated:** [April 7, 2020, 9:42am UTC](https://discourse.julialang.org/t/starship-prompt-now-can-now-show-the-julia-version-and-that-of-julia-packages/37155 "2020-04-07T09:42:35Z")

</div>

Following a recent series of pull requests (#1030, #1036, #1055), the popular starship shell prompt is now able to display the julia version and the version of julia packages (if within such a directory). This is already…

---

## [Install of ThinkJulia.jl](https://discourse.julialang.org/t/install-of-thinkjulia-jl/36913)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 5\
**Last updated:** [April 7, 2020, 9:23am UTC](https://discourse.julialang.org/t/install-of-thinkjulia-jl/36913 "2020-04-07T09:23:18Z")

</div>

Hello, System: Kubuntu-18.04.4 LST Julia: JuliaPro\_v1.4.0-1 For my first steps in Julia, I am using Ben Lauwens book. I would like to install ThinkJulia using the command as suggested in the book, i.e: add https://g…

---

## [Reshape of numbers. Is it a bad idea?](https://discourse.julialang.org/t/reshape-of-numbers-is-it-a-bad-idea/37151)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [April 7, 2020, 9:13am UTC](https://discourse.julialang.org/t/reshape-of-numbers-is-it-a-bad-idea/37151 "2020-04-07T09:13:23Z")

</div>

I have a function when I want to be sure one parameter is a vector, even if it is given as number. I thought to use reshape(myInt,1) but notice reshape of numbers is not in Base. No problem, I can add a method to handl…

---

## [In Flux0.10.4 Warning: Zygote does not have CuArrays in its dependencies](https://discourse.julialang.org/t/in-flux0-10-4-warning-zygote-does-not-have-cuarrays-in-its-dependencies/37142)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 2\
**Last updated:** [April 7, 2020, 8:03am UTC](https://discourse.julialang.org/t/in-flux0-10-4-warning-zygote-does-not-have-cuarrays-in-its-dependencies/37142 "2020-04-07T08:03:11Z")

</div>

from a fresh Julia1.4, adding the new Flux 0.10.4, followed by adding Zygote, results in a warning Package Zygote does not have CuArrays in its dependencies …you may need to report an issue with Zygote. Is this som…

---

## [Unable to call a distributed array in a parallel subprocess](https://discourse.julialang.org/t/unable-to-call-a-distributed-array-in-a-parallel-subprocess/37131)

<div class="topic-metadata">

**Author:** [@Diego](https://discourse.julialang.org/u/Diego)\
**Replies:** 1\
**Last updated:** [April 7, 2020, 7:31am UTC](https://discourse.julialang.org/t/unable-to-call-a-distributed-array-in-a-parallel-subprocess/37131 "2020-04-07T07:31:33Z")

</div>

Dear Julia team, I am trying to edit a distributed array from a function running in a separate process. The problem is that from inside the function the distributed array is not defined (see below). I have also tried …

---

## [Model zoo housing.jl - out of date use of Flux.Tracker?](https://discourse.julialang.org/t/model-zoo-housing-jl-out-of-date-use-of-flux-tracker/37144)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 0\
**Last updated:** [April 7, 2020, 5:12am UTC](https://discourse.julialang.org/t/model-zoo-housing-jl-out-of-date-use-of-flux-tracker/37144 "2020-04-07T05:12:50Z")

</div>

The model-zoo/other/housing/ housing.jl is importing Flux.Tracker. Does this mean the example is out-of-date, or does Tracker still work with the current 0.10.x versions of Flux? (My impression was that Tracker does no…

---

## [After adding Flux package, why is it necessary to also add Zygote](https://discourse.julialang.org/t/after-adding-flux-package-why-is-it-necessary-to-also-add-zygote/36983)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 8\
**Last updated:** [April 7, 2020, 5:02am UTC](https://discourse.julialang.org/t/after-adding-flux-package-why-is-it-necessary-to-also-add-zygote/36983 "2020-04-07T05:02:16Z")

</div>

This is a beginner/tooling question about packages, but if I post it there people will not know the particular packages. The question: I want to use Zygote.@nograd, so I put using Zygote however this says that it is …

---

## [Help! how to remove all packages for Julia1.4?](https://discourse.julialang.org/t/help-how-to-remove-all-packages-for-julia1-4/37045)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 4\
**Last updated:** [April 7, 2020, 4:57am UTC](https://discourse.julialang.org/t/help-how-to-remove-all-packages-for-julia1-4/37045 "2020-04-07T04:57:17Z")

</div>

I installed Julia1.4 and was adding various needed packages, but CMake failed – it could not find wget/curl. In trying to fix this, I seemed to have broken things badly: following various rm/add/upgrade/etc, Pkg.build(…

---

## [IJulia notebook() Failed to Launch the IJulia Notebook in my Browser](https://discourse.julialang.org/t/ijulia-notebook-failed-to-launch-the-ijulia-notebook-in-my-browser/37078)

<div class="topic-metadata">

**Author:** [@KGregory](https://discourse.julialang.org/u/KGregory)\
**Replies:** 5\
**Last updated:** [April 7, 2020, 4:32am UTC](https://discourse.julialang.org/t/ijulia-notebook-failed-to-launch-the-ijulia-notebook-in-my-browser/37078 "2020-04-07T04:32:57Z")

</div>

I was previously using IJulia notebook (Jupyter) to run the FUND model. I have just upgraded to Julia v.1.4.0, connected my julia installation with the central Mimi registry of Mimi models, added Mimi, and added MimiFUN…

---

## [Vege-Lite encode :point shape and angle](https://discourse.julialang.org/t/vege-lite-encode-point-shape-and-angle/33327)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 4\
**Last updated:** [April 7, 2020, 3:36am UTC](https://discourse.julialang.org/t/vege-lite-encode-point-shape-and-angle/33327 "2020-04-07T03:36:04Z")

</div>

I want to draw a scatter plot but use different point shape and angles to show different orientations and directions. the stroke shape and arrow shape seems what I want, but I am have trouble to make it work function f…

---

## [\[ANN\] VegaLite.jl v2.1 released](https://discourse.julialang.org/t/ann-vegalite-jl-v2-1-released/37138)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 0\
**Last updated:** [April 7, 2020, 3:27am UTC](https://discourse.julialang.org/t/ann-vegalite-jl-v2-1-released/37138 "2020-04-07T03:27:32Z")

</div>

I just released VegaLite.jl v2.1. While this release just tracks what is happening upstream in the Vega-Lite project, there are some really nice feature additions. For all the details you can read through the release no…

---

## [Access nested dependency \`A.B\` without triggering \`A.\_\_init\_\_()\`](https://discourse.julialang.org/t/access-nested-dependency-a-b-without-triggering-a-init/37137)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 0\
**Last updated:** [April 7, 2020, 1:58am UTC](https://discourse.julialang.org/t/access-nested-dependency-a-b-without-triggering-a-init/37137 "2020-04-07T01:58:07Z")

</div>

Example: I have expressed a dependency on PyPlot, and I want to access PyCall (which is a dependency of PyPlot. I can do import PyPlot; PyPlot.PyCall, but that triggers PyPlot.\_\_init\_\_(). Is there a way to access PyCall …

---

## [Method Error using round on JuMP Variable](https://discourse.julialang.org/t/method-error-using-round-on-jump-variable/37136)

<div class="topic-metadata">

**Author:** [@Cyrus\_the\_man](https://discourse.julialang.org/u/Cyrus_the_man)\
**Replies:** 1\
**Last updated:** [April 7, 2020, 1:15am UTC](https://discourse.julialang.org/t/method-error-using-round-on-jump-variable/37136 "2020-04-07T01:15:37Z")

</div>

MethodError: no method matching round(::Type{Int64}, ::GenericAffExpr{Float64,VariableRef}) I’m using Julia 1.3.1 on Jupyter Notebooks and have encountered a method error using an Ipop solver. Within dynamic constraint…

---

## [Use Roots.Brent() in fzero Roots.jl](https://discourse.julialang.org/t/use-roots-brent-in-fzero-roots-jl/37126)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 3\
**Last updated:** [April 7, 2020, 12:00am UTC](https://discourse.julialang.org/t/use-roots-brent-in-fzero-roots-jl/37126 "2020-04-07T00:00:26Z")

</div>

Hello, I would like to use the method Brent-Dekker in Roots.jl without using the find\_zero wrapper since I will only do one run of root-finding for the function of interest. fzero seems to be the way to go, but I don’t …

---

## [I have an array of 31 arrays and would like to make it a DataFrame. Need some help](https://discourse.julialang.org/t/i-have-an-array-of-31-arrays-and-would-like-to-make-it-a-dataframe-need-some-help/37130)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 4\
**Last updated:** [April 6, 2020, 10:21pm UTC](https://discourse.julialang.org/t/i-have-an-array-of-31-arrays-and-would-like-to-make-it-a-dataframe-need-some-help/37130 "2020-04-06T22:21:17Z")

</div>

Hi how’s it going, I have an array of 31 arrays, each with 3 items in it. first two items are strings, third is a float. I just want to transform this into a Julia DataFrame and export to CSV. Just calling the DataFrame…

---

## [Extracting derivatives (du/dt) from an ODE problem](https://discourse.julialang.org/t/extracting-derivatives-du-dt-from-an-ode-problem/26514)

<div class="topic-metadata">

**Author:** [@Hossein\_Haghi](https://discourse.julialang.org/u/Hossein_Haghi)\
**Replies:** 24\
**Last updated:** [April 6, 2020, 11:28pm UTC](https://discourse.julialang.org/t/extracting-derivatives-du-dt-from-an-ode-problem/26514 "2020-04-06T23:28:28Z")

</div>

I have multiple ODE problems that I am solving. where I need the solutions (u) and derivative of the solutions (du). For smaller ODEs it is practical for me to do the following using DifferentialEquations function SB(d…

---

## [Error with modules sharing types](https://discourse.julialang.org/t/error-with-modules-sharing-types/37119)

<div class="topic-metadata">

**Author:** [@peterj](https://discourse.julialang.org/u/peterj)\
**Replies:** 4\
**Last updated:** [April 6, 2020, 11:19pm UTC](https://discourse.julialang.org/t/error-with-modules-sharing-types/37119 "2020-04-06T23:19:52Z")

</div>

The following code gives me an error with Julia v1.4 # M1.jl module M1 export M1Type struct M1Type data::Real end end # M2.jl module M2 using ..M1 export f function f(x::M1Type) …

---

## [\`@ref\` across files in Documenter.jl](https://discourse.julialang.org/t/ref-across-files-in-documenter-jl/37110)

<div class="topic-metadata">

**Author:** [@crinders](https://discourse.julialang.org/u/crinders)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 10:59pm UTC](https://discourse.julialang.org/t/ref-across-files-in-documenter-jl/37110 "2020-04-06T22:59:39Z")

</div>

I have split my module into multiple files. I want to cross reference across files. index.md: # A \`\`\`@autodocs Pages = \[ "A.jl" \] Modules = \[ MyModule \] \` \`\` # B \`\`\`@autodocs Pages = \[ "B.jl" \] Modules = \[ MyModule \]…

---

## [LightGraphs basic usage](https://discourse.julialang.org/t/lightgraphs-basic-usage/37088)

<div class="topic-metadata">

**Author:** [@Adriel](https://discourse.julialang.org/u/Adriel)\
**Replies:** 1\
**Last updated:** [April 6, 2020, 10:34pm UTC](https://discourse.julialang.org/t/lightgraphs-basic-usage/37088 "2020-04-06T22:34:08Z")

</div>

Noob question. How do I add a vertex to a graph and get its value, as in the following code fragment? add\_vertex!(g) v = maximum(vertices(g)) # better way to do this? add\_edge!(g, cur, v) cur = v That works for simple …

---

## [floor(BigFloat(27)^(1/3)) = 2.0; Bug in BigFloat?](https://discourse.julialang.org/t/floor-bigfloat-27-1-3-2-0-bug-in-bigfloat/37123)

<div class="topic-metadata">

**Author:** [@Syam](https://discourse.julialang.org/u/Syam)\
**Replies:** 4\
**Last updated:** [April 6, 2020, 8:42pm UTC](https://discourse.julialang.org/t/floor-bigfloat-27-1-3-2-0-bug-in-bigfloat/37123 "2020-04-06T20:42:49Z")

</div>

I encountered a bug in my code while using floor. With further debugging, I realized that the issue is with BigFloat. See below. julia\> floor(BigFloat(27)^(1/3)) 2.0 julia\> floor(Float64(27)^(1/3)) 3.0 julia\> ceil(Big…

---

## [DifferentialEquations & Plots -- transforming solutions before plot](https://discourse.julialang.org/t/differentialequations-plots-transforming-solutions-before-plot/37122)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 0\
**Last updated:** [April 6, 2020, 5:51pm UTC](https://discourse.julialang.org/t/differentialequations-plots-transforming-solutions-before-plot/37122 "2020-04-06T17:51:00Z")

</div>

I have computed sol from DifferentialEquations, and need to transform selected values before plotting them. Specifically, I want to convert values from fraction to percentage (f2p). Suppose I want transform a single var…

---

## [How i can get random number as numpy.random.randn()](https://discourse.julialang.org/t/how-i-can-get-random-number-as-numpy-random-randn/37120)

<div class="topic-metadata">

**Author:** [@Neeraj\_Verma\_ASETRAI](https://discourse.julialang.org/u/Neeraj_Verma_ASETRAI)\
**Replies:** 1\
**Last updated:** [April 6, 2020, 5:17pm UTC](https://discourse.julialang.org/t/how-i-can-get-random-number-as-numpy-random-randn/37120 "2020-04-06T17:17:45Z")

</div>

How i can get output as numpy for generating random numbers which is closer to both 0 and 1 in Float64 n = np.random.randn() code in python import numpy as np for i in range(10): n = np.random.randn() print(n) O…

---

## [What is the status of the Plots ecosystem and what package should I use?](https://discourse.julialang.org/t/what-is-the-status-of-the-plots-ecosystem-and-what-package-should-i-use/18043)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 11\
**Last updated:** [April 6, 2020, 5:04pm UTC](https://discourse.julialang.org/t/what-is-the-status-of-the-plots-ecosystem-and-what-package-should-i-use/18043 "2020-04-06T17:04:01Z")

</div>

I am coming from a ggplot2 background and would like to completely switch my workflow to Julia. What is the status of plotting in Julia? Is gadfly still viable, is vegalite hooked in with Plots.jl yet?

---

## [Problem solving a simple SDP in ProximalAlgorithms.jl](https://discourse.julialang.org/t/problem-solving-a-simple-sdp-in-proximalalgorithms-jl/37118)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 0\
**Last updated:** [April 6, 2020, 4:50pm UTC](https://discourse.julialang.org/t/problem-solving-a-simple-sdp-in-proximalalgorithms-jl/37118 "2020-04-06T16:50:53Z")

</div>

Dear All, I am having issues running the following trivial problem in ProximalAlgorithms.jl: using ProximalAlgorithms, ProximalOperators # optimization problem: # minimize || X ||\_{\*} // nuclear norm # subject to X \>=…

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

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