# Latest

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

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

**Page:** 1802

---

## [Flux upgrade to v0.10 seems buggy](https://discourse.julialang.org/t/flux-upgrade-to-v0-10-seems-buggy/33665)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 20\
**Last updated:** [March 14, 2020, 5:54pm UTC](https://discourse.julialang.org/t/flux-upgrade-to-v0-10-seems-buggy/33665 "2020-03-14T17:54:43Z")

</div>

I have Flux code which worked fine until I (just) upgraded to the latest version, where the same code no longer works with the ‘upgraded’ version. I understand there has been innovation using Sparse Arrays, but that see…

---

## [Help debug 2 functions in my package](https://discourse.julialang.org/t/help-debug-2-functions-in-my-package/35977)

<div class="topic-metadata">

**Author:** [@PseudoCodeNerd](https://discourse.julialang.org/u/PseudoCodeNerd)\
**Replies:** 2\
**Last updated:** [March 14, 2020, 5:27pm UTC](https://discourse.julialang.org/t/help-debug-2-functions-in-my-package/35977 "2020-03-14T17:27:04Z")

</div>

I am working towards making a basic Julia wrapper for the Discourse API. I’m taking inspiration from pydiscourse (a python API wrapper) and am stuck with my code. I was trying to implement get\_user() API endpoint from he…

---

## [Cant Install CUDA for gpu](https://discourse.julialang.org/t/cant-install-cuda-for-gpu/35973)

<div class="topic-metadata">

**Author:** [@shashiracherla](https://discourse.julialang.org/u/shashiracherla)\
**Replies:** 2\
**Last updated:** [March 14, 2020, 4:58pm UTC](https://discourse.julialang.org/t/cant-install-cuda-for-gpu/35973 "2020-03-14T16:58:53Z")

</div>

Hi newbie here, please help me im not able to install CUDA for julia (v1.0) pkg\> add CUDA Updating registry at \`~/.julia/registries/General\` Updating git-repo \`https://github.com/JuliaRegistries/General.git\` ERROR:…

---

## [Problem forming a least squares solution](https://discourse.julialang.org/t/problem-forming-a-least-squares-solution/27563)

<div class="topic-metadata">

**Author:** [@scottstanie](https://discourse.julialang.org/u/scottstanie)\
**Replies:** 13\
**Last updated:** [March 14, 2020, 4:22pm UTC](https://discourse.julialang.org/t/problem-forming-a-least-squares-solution/27563 "2020-03-14T16:22:25Z")

</div>

I’m having trouble formulating a model to minimize ||Ax - b|| Ideally I’m looking to minimize the 1 norm, but in trying to get there I ran into errors that I’m not sure I understand: using JuMP using ECOS model = Mode…

---

## [\[ANN\] Julia color themes for VS Code](https://discourse.julialang.org/t/ann-julia-color-themes-for-vs-code/35976)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 0\
**Last updated:** [March 14, 2020, 4:00pm UTC](https://discourse.julialang.org/t/ann-julia-color-themes-for-vs-code/35976 "2020-03-14T16:00:48Z")

</div>

I’d like to announce the release of Julia Color Themes, a VS Code extension with color themes customized for Julia code. Julia Color Themes also includes customizations for Python code, so you can switch between Julia an…

---

## [Convex.jl: variables "disappearing" in cumulative constraint](https://discourse.julialang.org/t/convex-jl-variables-disappearing-in-cumulative-constraint/35958)

<div class="topic-metadata">

**Author:** [@riccardomurri](https://discourse.julialang.org/u/riccardomurri)\
**Replies:** 2\
**Last updated:** [March 14, 2020, 3:52pm UTC](https://discourse.julialang.org/t/convex-jl-variables-disappearing-in-cumulative-constraint/35958 "2020-03-14T15:52:04Z")

</div>

Hello, I am trying to build a sort of L\_2-norm constraint piecewise, using code like this (simplified form of the actual code): x = \[Convex.Variable(m\*s+2r, m\*s+2r) for \_ in 1:N\]; for t in 1:N @debug "…

---

## [Possible bug while calculating determinant?](https://discourse.julialang.org/t/possible-bug-while-calculating-determinant/35960)

<div class="topic-metadata">

**Author:** [@PseudoCodeNerd](https://discourse.julialang.org/u/PseudoCodeNerd)\
**Replies:** 8\
**Last updated:** [March 14, 2020, 3:46pm UTC](https://discourse.julialang.org/t/possible-bug-while-calculating-determinant/35960 "2020-03-14T15:46:47Z")

</div>

Hello I’m a high school junior and was recently self-studying linear algebra. I was reading about calculating determinants and the properties of them. I read that whenever in a determinant, there are 2 similar rows (or…

---

## [Derive a spigot formula for pi using Julia](https://discourse.julialang.org/t/derive-a-spigot-formula-for-pi-using-julia/35970)

<div class="topic-metadata">

**Author:** [@chrisvwx](https://discourse.julialang.org/u/chrisvwx)\
**Replies:** 0\
**Last updated:** [March 14, 2020, 2:48pm UTC](https://discourse.julialang.org/t/derive-a-spigot-formula-for-pi-using-julia/35970 "2020-03-14T14:48:53Z")

</div>

The BBP formula for \\pi is \\pi= \\sum\_{k=0}^\\infty \\frac{1}{16^k} \\left(\\frac{4}{8k+1}-\\frac{2}{8k+4}-\\frac{1}{8k+5}-\\frac{1}{8k+6}\\right). It was the first technique that could produce a digit (hexadecimal in this ca…

---

## [Distributions and Arpack fail to build](https://discourse.julialang.org/t/distributions-and-arpack-fail-to-build/16437)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 12\
**Last updated:** [March 14, 2020, 2:15pm UTC](https://discourse.julialang.org/t/distributions-and-arpack-fail-to-build/16437 "2020-03-14T14:15:56Z")

</div>

After updating my packages, I encountered a problem building/precompiling distributions and arpack. The issue seems to be Arpack. Does anyone know how to fix this? Thanks OS: Mac 10.11.6 Julia 1.0 julia\> using Distri…

---

## [Global sensitivity analysis Morris Method](https://discourse.julialang.org/t/global-sensitivity-analysis-morris-method/35967)

<div class="topic-metadata">

**Author:** [@vijaya](https://discourse.julialang.org/u/vijaya)\
**Replies:** 0\
**Last updated:** [March 14, 2020, 2:06pm UTC](https://discourse.julialang.org/t/global-sensitivity-analysis-morris-method/35967 "2020-03-14T14:06:04Z")

</div>

Hi In the global sensitvity analysis Morris method example (Lotka Volterra gsa), the input arguments are “total\_num\_trajectory=1000,num\_trajectory=150” The number of parameters in the equations are 4 so generally in t…

---

## [Alternative to Data Voyager for Julia](https://discourse.julialang.org/t/alternative-to-data-voyager-for-julia/35946)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 3\
**Last updated:** [March 14, 2020, 12:25pm UTC](https://discourse.julialang.org/t/alternative-to-data-voyager-for-julia/35946 "2020-03-14T12:25:01Z")

</div>

Is Data Voyager (.jl), a beautiful package, the only one of its kind for Julia? Is there another such system?

---

## [\[ANN\] DataLoaders.jl (alpha) - basically PyTorch's parallel \`DataLoader\`](https://discourse.julialang.org/t/ann-dataloaders-jl-alpha-basically-pytorchs-parallel-dataloader/35963)

<div class="topic-metadata">

**Author:** [@holylorenzo](https://discourse.julialang.org/u/holylorenzo)\
**Replies:** 0\
**Last updated:** [March 14, 2020, 11:13am UTC](https://discourse.julialang.org/t/ann-dataloaders-jl-alpha-basically-pytorchs-parallel-dataloader/35963 "2020-03-14T11:13:17Z")

</div>

Happy to give a first look at a (as of yet unregistered) package DataLoaders.jl that has a similar API to PyTorch’s DataLoader. See examples in the README.md I wrote this primarily to support deep learning pipelines th…

---

## [Disable TimerOutputs.jl timers selectively within function](https://discourse.julialang.org/t/disable-timeroutputs-jl-timers-selectively-within-function/35957)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 3\
**Last updated:** [March 14, 2020, 10:44am UTC](https://discourse.julialang.org/t/disable-timeroutputs-jl-timers-selectively-within-function/35957 "2020-03-14T10:44:43Z")

</div>

I have a function that internally uses TimerOutputs.jl to time some calls to other functions. Sometimes, however, I want to be able to call this function without having the timers record anything, e.g., when I call the f…

---

## [OutOfMemoryError()\_solved by sparse matrix](https://discourse.julialang.org/t/outofmemoryerror-solved-by-sparse-matrix/35955)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 3\
**Last updated:** [March 14, 2020, 10:39am UTC](https://discourse.julialang.org/t/outofmemoryerror-solved-by-sparse-matrix/35955 "2020-03-14T10:39:41Z")

</div>

Hi community, julia\> @time legend, t\_avn\_mtx, t\_se\_mtx, eta\_avn\_mtx, eta\_se\_mtx, fix\_M\_mtx = onedim\_xdispersal\_yfix\_nDemesseries(N,nDemes\_vec,twoNmu,s0,twoNDememig\_vec,M,T,Gauss, nu) t\_fix\_vecArray{Any,1}(10,) …

---

## [Am I using DiffResults.jl correctly?](https://discourse.julialang.org/t/am-i-using-diffresults-jl-correctly/35894)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 7\
**Last updated:** [March 14, 2020, 5:06am UTC](https://discourse.julialang.org/t/am-i-using-diffresults-jl-correctly/35894 "2020-03-14T05:06:41Z")

</div>

I’m trying to compute Jacobian and function values simultaneously using ForwardDiff.jl. A simple MWE example is using StaticArrays using ForwardDiff using DiffResults using BenchmarkTools f(x) = SVector((@. x\[1\]\*x\[2\])…

---

## [Convert Float to Integer](https://discourse.julialang.org/t/convert-float-to-integer/35948)

<div class="topic-metadata">

**Author:** [@Diger](https://discourse.julialang.org/u/Diger)\
**Replies:** 6\
**Last updated:** [March 13, 2020, 10:57pm UTC](https://discourse.julialang.org/t/convert-float-to-integer/35948 "2020-03-13T22:57:24Z")

</div>

I was wondering why converting floats to integers takes so much time? When I run this loop below it takes about 14ms. When I remove the Int() it takes only 1.9ns if I’m not mistaken. Any idea how to improve the speed? u…

---

## [Parsing strange CSV files](https://discourse.julialang.org/t/parsing-strange-csv-files/35907)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 5\
**Last updated:** [March 13, 2020, 10:58pm UTC](https://discourse.julialang.org/t/parsing-strange-csv-files/35907 "2020-03-13T22:58:42Z")

</div>

I am trying to parse some CSV files that have some extra stuff and actually include multiple different tables. About the only thing that is standardized is that the tables within the file always have the same number of c…

---

## [Jl\_init() causing segmentation fault](https://discourse.julialang.org/t/jl-init-causing-segmentation-fault/35940)

<div class="topic-metadata">

**Author:** [@AndresGomez97](https://discourse.julialang.org/u/AndresGomez97)\
**Replies:** 6\
**Last updated:** [March 13, 2020, 7:16pm UTC](https://discourse.julialang.org/t/jl-init-causing-segmentation-fault/35940 "2020-03-13T19:16:12Z")

</div>

Hi, I am new in Julia and I am trying to run the following code that embeds julia into c. #include \<stdio.h\> #include \<stdlib.h\> #include \<dlfcn.h\> #include \<julia.h\> int main(){ void \*handle; void (\*jl\_init\_with\_i…

---

## [Weird plot behavior within function](https://discourse.julialang.org/t/weird-plot-behavior-within-function/35932)

<div class="topic-metadata">

**Author:** [@wizebt](https://discourse.julialang.org/u/wizebt)\
**Replies:** 2\
**Last updated:** [March 13, 2020, 7:05pm UTC](https://discourse.julialang.org/t/weird-plot-behavior-within-function/35932 "2020-03-13T19:05:00Z")

</div>

Hi, Trying to display plots within a function, no plot window was showing. Digging to the root here is the issue: tp() is displaying plot and not tp1()? Cannot get the rational on why a function returning any value in…

---

## [VegaLite: Facet plot with errorband](https://discourse.julialang.org/t/vegalite-facet-plot-with-errorband/35903)

<div class="topic-metadata">

**Author:** [@hellemo](https://discourse.julialang.org/u/hellemo)\
**Replies:** 4\
**Last updated:** [March 13, 2020, 4:55pm UTC](https://discourse.julialang.org/t/vegalite-facet-plot-with-errorband/35903 "2020-03-13T16:55:13Z")

</div>

Does VegaLite not support faceting of plots with errorbands? I’m struggling to make this work: using VegaLite, DataFrames function generatedata() df = DataFrame() K = 10 L = 10 Cat1 = \[:A,:B\] Cat2 =…

---

## [Julia buffer interface?](https://discourse.julialang.org/t/julia-buffer-interface/35922)

<div class="topic-metadata">

**Author:** [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Replies:** 9\
**Last updated:** [March 13, 2020, 4:16pm UTC](https://discourse.julialang.org/t/julia-buffer-interface/35922 "2020-03-13T16:16:08Z")

</div>

Does Julia have anything akin to Python’s buffer interface? That is, I’d like to be able to test whether an object is represented as a contiguous/strided mutable/immutable buffer of bytes/words/etc in memory, and if so, …

---

## [Help understanding GLM (the concept, not the package)](https://discourse.julialang.org/t/help-understanding-glm-the-concept-not-the-package/35896)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 4\
**Last updated:** [March 13, 2020, 3:56pm UTC](https://discourse.julialang.org/t/help-understanding-glm-the-concept-not-the-package/35896 "2020-03-13T15:56:23Z")

</div>

I’m trying to understand how generalized linear models work by coding a simple example from scratch and I’m hoping some of the stats experts here (I know there are several of you lurking around :face\_with\_monocle:) can h…

---

## [CuArrays warning: You are using CUDNN 7.1.4 for CUDA 9.0.0 with CUDA toolkit 9.2.148; these might be incompatible](https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891)

<div class="topic-metadata">

**Author:** [@Phil\_Tomson](https://discourse.julialang.org/u/Phil_Tomson)\
**Replies:** 4\
**Last updated:** [March 13, 2020, 3:23pm UTC](https://discourse.julialang.org/t/cuarrays-warning-you-are-using-cudnn-7-1-4-for-cuda-9-0-0-with-cuda-toolkit-9-2-148-these-might-be-incompatible/35891 "2020-03-13T15:23:22Z")

</div>

I was trying to run the Flux modelzoo MNIST mlp.jl example and I notice these warning coming from CuArrays.jl: julia\> include("mlp.jl") \[ Info: Precompiling Flux \[587475ba-b771-5e3f-ad9e-33799f191a9c\] ┌ Warning: CuArray…

---

## [Can I have two different Julia versions simultaneously?](https://discourse.julialang.org/t/can-i-have-two-different-julia-versions-simultaneously/17988)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 4\
**Last updated:** [March 13, 2020, 2:31pm UTC](https://discourse.julialang.org/t/can-i-have-two-different-julia-versions-simultaneously/17988 "2020-03-13T14:31:46Z")

</div>

I’m using Julia v1.0 on Windows and want to use also v1.1 too, and maybe v0.7 to test which one works better (with different versions of Visual Code or Jupyter) Is it safe to do it? Or when I change settings or install…

---

## [Can not install CUDAnative](https://discourse.julialang.org/t/can-not-install-cudanative/35925)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 2\
**Last updated:** [March 13, 2020, 1:30pm UTC](https://discourse.julialang.org/t/can-not-install-cudanative/35925 "2020-03-13T13:30:36Z")

</div>

GPU newbie here (Julia 1.3.1 and Windows 10). I have been able to install CUDAdrv v6.1.0 but when I try to install CUDAnative (and also CuArrays) I receive the following error: (v1.3) pkg\> add CUDAnative Resolving pack…

---

## [Fork and build Julia for a PR to stdlib?](https://discourse.julialang.org/t/fork-and-build-julia-for-a-pr-to-stdlib/35926)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 3\
**Last updated:** [March 13, 2020, 1:26pm UTC](https://discourse.julialang.org/t/fork-and-build-julia-for-a-pr-to-stdlib/35926 "2020-03-13T13:26:14Z")

</div>

If I want to make a change to Statistics, which is a stdlib, do I have to fork julia, clone it, build it from source, and edit the file there? Or is there another way? Could I use the released Binary to do this?

---

## [UTF8 support issue from remote Julia session with tmux](https://discourse.julialang.org/t/utf8-support-issue-from-remote-julia-session-with-tmux/35923)

<div class="topic-metadata">

**Author:** [@myrddin89](https://discourse.julialang.org/u/myrddin89)\
**Replies:** 0\
**Last updated:** [March 13, 2020, 12:23pm UTC](https://discourse.julialang.org/t/utf8-support-issue-from-remote-julia-session-with-tmux/35923 "2020-03-13T12:23:23Z")

</div>

Hello, I found a problem with UTF8 support in Juno when running Julia on a remote tmux session. Apparently, when tmux is run on the remote server from Juno, it disables UTF8 support; this happens even if the locale (on…

---

## [What to do ? ERROR: HTTP.ExceptionRequest.StatusError(405, "GET",](https://discourse.julialang.org/t/what-to-do-error-http-exceptionrequest-statuserror-405-get/35897)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 3\
**Last updated:** [March 13, 2020, 11:28am UTC](https://discourse.julialang.org/t/what-to-do-error-http-exceptionrequest-statuserror-405-get/35897 "2020-03-13T11:28:25Z")

</div>

julia\> usinh HTTP ERROR: syntax: extra token "HTTP" after end of expression julia\> using HTTP julia\> url="https://www.similarweb.com/website/pb.pl" "https://www.similarweb.com/website/pb.pl" julia\> r=HTTP.get(url); ER…

---

## [Convex.jl: How to print full variable ID](https://discourse.julialang.org/t/convex-jl-how-to-print-full-variable-id/35917)

<div class="topic-metadata">

**Author:** [@riccardomurri](https://discourse.julialang.org/u/riccardomurri)\
**Replies:** 1\
**Last updated:** [March 13, 2020, 9:50am UTC](https://discourse.julialang.org/t/convex-jl-how-to-print-full-variable-id/35917 "2020-03-13T09:50:14Z")

</div>

I’m trying to debug an issue with the formulation of an optimization problem using Convex.jl, and I got the following tree print of a constraint (using Convex.MAXDEPTH\[\] = 12 and Convex.MAXWIDTH\[\] = 120), but all the “…

---

## [Source location of e.g. \`struct\` definition](https://discourse.julialang.org/t/source-location-of-e-g-struct-definition/35885)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 2\
**Last updated:** [March 13, 2020, 8:58am UTC](https://discourse.julialang.org/t/source-location-of-e-g-struct-definition/35885 "2020-03-13T08:58:21Z")

</div>

What’s a way to get the sourcecode location of a struct definition? julia\> which(Rational, (Int64, Int64)) (::Type{Rational})(n::T, d::T) where T\<:Integer in Base at rational.jl:21 julia\> which(Main, :Rational) Base

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

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