# Latest

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

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

**Page:** 1935

---

## [Can you broadcast functions over arbitrary rank? (like J/APL)](https://discourse.julialang.org/t/can-you-broadcast-functions-over-arbitrary-rank-like-j-apl/27959)

<div class="topic-metadata">

**Author:** [@Inkq](https://discourse.julialang.org/u/Inkq)\
**Replies:** 5\
**Last updated:** [August 26, 2019, 12:23am UTC](https://discourse.julialang.org/t/can-you-broadcast-functions-over-arbitrary-rank-like-j-apl/27959 "2019-08-26T00:23:24Z")

</div>

Hello! I’ve been eyeing Julia for a while as a J/APL fan and really want to move some programming I would otherwise do in J into Julia, given they are both array-centric programming languages. But one of the things that…

---

## [Initializing CuArrays](https://discourse.julialang.org/t/initializing-cuarrays/27976)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 0\
**Last updated:** [August 25, 2019, 11:24pm UTC](https://discourse.julialang.org/t/initializing-cuarrays/27976 "2019-08-25T23:24:39Z")

</div>

How to initialize this type of array: ArrayName=cu(fill(\[0.0f0,0.0f0\],(20,20,5))), I don’t want to use Tuples because there are too many problems with math operations doing on them(they can’t for example increment and …

---

## [JuliaDiffEq with custom types](https://discourse.julialang.org/t/juliadiffeq-with-custom-types/16294)

<div class="topic-metadata">

**Author:** [@mzilhao](https://discourse.julialang.org/u/mzilhao)\
**Replies:** 28\
**Last updated:** [August 25, 2019, 10:37pm UTC](https://discourse.julialang.org/t/juliadiffeq-with-custom-types/16294 "2019-08-25T22:37:18Z")

</div>

i’m writing a program where i’m using my own array type, and i’d like to use DifferentialEquations to solve some ODEs that show up. i was under the impression that it should work with any AbstractArray, but this is eithe…

---

## [How to load and call functions defined in a standalone Python script?](https://discourse.julialang.org/t/how-to-load-and-call-functions-defined-in-a-standalone-python-script/601)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [August 25, 2019, 9:23pm UTC](https://discourse.julialang.org/t/how-to-load-and-call-functions-defined-in-a-standalone-python-script/601 "2019-08-25T21:23:39Z")

</div>

Can PyCall be used to load definitions from a small Python script into Julia? For example, how can I call foo() defined in the Python script below in Julia? a = 1 b = 2 def foo(): print("Hello world!") return a …

---

## [Module idea for helping calculate large sparse Jacobians](https://discourse.julialang.org/t/module-idea-for-helping-calculate-large-sparse-jacobians/27941)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 5\
**Last updated:** [August 25, 2019, 7:43pm UTC](https://discourse.julialang.org/t/module-idea-for-helping-calculate-large-sparse-jacobians/27941 "2019-08-25T19:43:57Z")

</div>

I’ve put together a minimal, tiny draft of a project idea I had. It’s about helping to work with large structured models, the kind of thing you might use g2o for (and I imagine similar things might exist for FEM). Basica…

---

## [Query.@orderby destroys DataFrame](https://discourse.julialang.org/t/query-orderby-destroys-dataframe/27114)

<div class="topic-metadata">

**Author:** [@hmmueller](https://discourse.julialang.org/u/hmmueller)\
**Replies:** 8\
**Last updated:** [August 25, 2019, 6:31pm UTC](https://discourse.julialang.org/t/query-orderby-destroys-dataframe/27114 "2019-08-25T18:31:09Z")

</div>

This code does not work: using DataFrames, Query df = DataFrame(A=\[1,2,3\], B=\[4,5,6\]); fromdata = @from i in df begin @where i.B \> 3 @select {i.A} @orderby i.A @collect DataFr…

---

## [Type Inference for CartesianIndices(array) fail when the dimension of the array is too large](https://discourse.julialang.org/t/type-inference-for-cartesianindices-array-fail-when-the-dimension-of-the-array-is-too-large/27952)

<div class="topic-metadata">

**Author:** [@tomohiro\_soejima](https://discourse.julialang.org/u/tomohiro_soejima)\
**Replies:** 3\
**Last updated:** [August 25, 2019, 4:06pm UTC](https://discourse.julialang.org/t/type-inference-for-cartesianindices-array-fail-when-the-dimension-of-the-array-is-too-large/27952 "2019-08-25T16:06:36Z")

</div>

I do a lot of work with high-dimensional arrays, where the dimension of my array is often 20+. I noticed that CartesianIndices fail when the dimension is too large, causing later type inferences to also fail. Here is a m…

---

## [How can I unload a module in REPL?](https://discourse.julialang.org/t/how-can-i-unload-a-module-in-repl/27962)

<div class="topic-metadata">

**Author:** [@coldinjection](https://discourse.julialang.org/u/coldinjection)\
**Replies:** 1\
**Last updated:** [August 25, 2019, 1:58pm UTC](https://discourse.julialang.org/t/how-can-i-unload-a-module-in-repl/27962 "2019-08-25T13:58:39Z")

</div>

Can I unload a module in a REPL session after using or import it? Is there a function that works like the :module - \<module name\> command in Haskell’s GHCi?

---

## [Unable to add packages in v1.2](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 14\
**Last updated:** [August 25, 2019, 11:53am UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857 "2019-08-25T11:53:33Z")

</div>

Hi all, I just installed v1.2 but am now unable to add packages. I’m getting the following error: ERROR: could not load library "libgit2" libcurl.so.4: ELF load command address/offset not properly aligned I’m running …

---

## [Overwrite partial DataFrame Row with new Array](https://discourse.julialang.org/t/overwrite-partial-dataframe-row-with-new-array/27953)

<div class="topic-metadata">

**Author:** [@milesf](https://discourse.julialang.org/u/milesf)\
**Replies:** 3\
**Last updated:** [August 25, 2019, 10:46am UTC](https://discourse.julialang.org/t/overwrite-partial-dataframe-row-with-new-array/27953 "2019-08-25T10:46:48Z")

</div>

I’m attempting to overwrite the last two elements in a dataframe row with the contents of an array. df = DataFrame(\[1 2 3\]) df\[1,2:3\] = DataFrame(\[5 10\]) ERROR: BoundsError: attempt to access "attempt to access a data f…

---

## [Iteration with CartesianIndices(array) is slow when the dimension of the array is large](https://discourse.julialang.org/t/iteration-with-cartesianindices-array-is-slow-when-the-dimension-of-the-array-is-large/27951)

<div class="topic-metadata">

**Author:** [@tomohiro\_soejima](https://discourse.julialang.org/u/tomohiro_soejima)\
**Replies:** 2\
**Last updated:** [August 25, 2019, 9:06am UTC](https://discourse.julialang.org/t/iteration-with-cartesianindices-array-is-slow-when-the-dimension-of-the-array-is-large/27951 "2019-08-25T09:06:39Z")

</div>

I’ve been playing around with CartesianIndices. It works beautifully for the most part, but I’ve noticed that it becomes slower compared to linear indexing, when the dimension of the array is large. Here is a minimal exa…

---

## [\[201908\] Compiling a Data Science Image for Julia on Windows to combat compilation latency](https://discourse.julialang.org/t/201908-compiling-a-data-science-image-for-julia-on-windows-to-combat-compilation-latency/27640)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 6\
**Last updated:** [August 24, 2019, 11:39am UTC](https://discourse.julialang.org/t/201908-compiling-a-data-science-image-for-julia-on-windows-to-combat-compilation-latency/27640 "2019-08-24T11:39:20Z")

</div>

I wanted to share some steps on how to compile a Data Science Image for Julia. 1. Remove existing installation of PackageCompiler.jl Firstly, if you have PackageCompiler.jl previously, make you remove them entirely In…

---

## [Distributions.jl - pdf() for Continuous Uniform Distribution](https://discourse.julialang.org/t/distributions-jl-pdf-for-continuous-uniform-distribution/27686)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 8\
**Last updated:** [August 25, 2019, 12:59am UTC](https://discourse.julialang.org/t/distributions-jl-pdf-for-continuous-uniform-distribution/27686 "2019-08-25T00:59:20Z")

</div>

Hello, I’m taking a free online course in Bayesian Statistics (I have no background in this :stuck\_out\_tongue\_winking\_eye:) and I’m trying to work through the course with Distributions.jl (and eventually Turing.jl) so t…

---

## [StopIteration analog in Julia](https://discourse.julialang.org/t/stopiteration-analog-in-julia/27946)

<div class="topic-metadata">

**Author:** [@natemcintosh](https://discourse.julialang.org/u/natemcintosh)\
**Replies:** 2\
**Last updated:** [August 24, 2019, 9:16pm UTC](https://discourse.julialang.org/t/stopiteration-analog-in-julia/27946 "2019-08-24T21:16:54Z")

</div>

Hi Everyone, I recently wrote this code in python (I’m enjoying learning how to write code in a functional manner) that returns whatever numbers are at the end of a string (fails out if there aren’t any). from functool…

---

## [(Beginner) How to access value in a DataValue](https://discourse.julialang.org/t/beginner-how-to-access-value-in-a-datavalue/27944)

<div class="topic-metadata">

**Author:** [@hmmueller](https://discourse.julialang.org/u/hmmueller)\
**Replies:** 6\
**Last updated:** [August 24, 2019, 7:47pm UTC](https://discourse.julialang.org/t/beginner-how-to-access-value-in-a-datavalue/27944 "2019-08-24T19:47:31Z")

</div>

At DataValues.jl, I am informed that " One can access or unpack the value within a DataValue either via the get(x) function, or use the x\[\] syntax." I do not know “the x\[\] syntax” - when I tried just writing (e.g.) i.key…

---

## [Problem with optimisation code](https://discourse.julialang.org/t/problem-with-optimisation-code/27936)

<div class="topic-metadata">

**Author:** [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Replies:** 5\
**Last updated:** [August 24, 2019, 6:26pm UTC](https://discourse.julialang.org/t/problem-with-optimisation-code/27936 "2019-08-24T18:26:29Z")

</div>

What is the issue with the following code? I upgraded the packages today and facing the error. It used to work before upgrading. using JuMP, Cbc,Ipopt,Optim m = Model(with\_optimizer(Cbc.Optimizer)) @variable(m, 0 \<= x \<…

---

## [Julia v1.3 runs this script at least 10x slower than Julia v1.1 on my computer](https://discourse.julialang.org/t/julia-v1-3-runs-this-script-at-least-10x-slower-than-julia-v1-1-on-my-computer/27815)

<div class="topic-metadata">

**Author:** [@jdjohnston](https://discourse.julialang.org/u/jdjohnston)\
**Replies:** 3\
**Last updated:** [August 24, 2019, 6:03pm UTC](https://discourse.julialang.org/t/julia-v1-3-runs-this-script-at-least-10x-slower-than-julia-v1-1-on-my-computer/27815 "2019-08-24T18:03:55Z")

</div>

Summary: This memory-hungry script runs more than 10x slower on my computer using any of the newer versions of Julia while it ran fine on Julia 1.1.1 and even early DEV version of Julia 1.3 Environment: Xubuntu 16.04.6…

---

## [JuMP array or dictionary lookups](https://discourse.julialang.org/t/jump-array-or-dictionary-lookups/27937)

<div class="topic-metadata">

**Author:** [@bhalonen](https://discourse.julialang.org/u/bhalonen)\
**Replies:** 1\
**Last updated:** [August 24, 2019, 3:39pm UTC](https://discourse.julialang.org/t/jump-array-or-dictionary-lookups/27937 "2019-08-24T15:39:30Z")

</div>

Is it possible to look up values in an array or a dict using integer variables? Something like @variable(model, x, Int) # restrict x to appropriate values @constraint(model, my\_array\[x\] \<= 5) Or should a binary array …

---

## [Combine two capabilities of DataFrames.eachcol](https://discourse.julialang.org/t/combine-two-capabilities-of-dataframes-eachcol/27923)

<div class="topic-metadata">

**Author:** [@danriggins](https://discourse.julialang.org/u/danriggins)\
**Replies:** 2\
**Last updated:** [August 24, 2019, 2:38pm UTC](https://discourse.julialang.org/t/combine-two-capabilities-of-dataframes-eachcol/27923 "2019-08-24T14:38:57Z")

</div>

In the documentation for Dataframe.eachcol, I noticed these two examples: julia\> sum.(eachcol(df)) 2-element Array{Int64,1}: 10 50 julia\> collect(eachcol(df, true)) 2-element Array{Pair{Symbol,AbstractArray{T,1} wher…

---

## [Juno fails to install julia-client@0.9.4](https://discourse.julialang.org/t/juno-fails-to-install-julia-client-0-9-4/27544)

<div class="topic-metadata">

**Author:** [@Geometh](https://discourse.julialang.org/u/Geometh)\
**Replies:** 16\
**Last updated:** [August 24, 2019, 1:12pm UTC](https://discourse.julialang.org/t/juno-fails-to-install-julia-client-0-9-4/27544 "2019-08-24T13:12:00Z")

</div>

Hi, I have a freshly set-up Ubuntu system (18.04 LTS amd64 on standard hardware). Of course, first thing I did, was installing atom with Julia… Well, at least I tried. For some reason atom (version 1.40.0) is giving me…

---

## [Replace Character in a column](https://discourse.julialang.org/t/replace-character-in-a-column/27922)

<div class="topic-metadata">

**Author:** [@Nguyen\_HongSon](https://discourse.julialang.org/u/Nguyen_HongSon)\
**Replies:** 4\
**Last updated:** [August 24, 2019, 11:06am UTC](https://discourse.julialang.org/t/replace-character-in-a-column/27922 "2019-08-24T11:06:00Z")

</div>

Hi everybody, I am using DataFrames to work with a CVS file. However, the file includes both numbers and characters. Then DataFrames defined the columns that have only Number to be “Float64” type, and the columns that …

---

## [Anatomical based tree (help with early conceptual framework)](https://discourse.julialang.org/t/anatomical-based-tree-help-with-early-conceptual-framework/27899)

<div class="topic-metadata">

**Author:** [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Replies:** 2\
**Last updated:** [August 24, 2019, 9:12am UTC](https://discourse.julialang.org/t/anatomical-based-tree-help-with-early-conceptual-framework/27899 "2019-08-24T09:12:15Z")

</div>

Background I work with anatomically relevant data and often do analyses that involve recoding variables manually based on some anatomical structure. Some convenient defaults for referencing these structures by relation a…

---

## [Switching package registration systems soon](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 170\
**Last updated:** [August 24, 2019, 7:50am UTC](https://discourse.julialang.org/t/switching-package-registration-systems-soon/22677 "2019-08-24T07:50:30Z")

</div>

Edit: This is pinned globally because it’s probably good for everyone to be aware, but this only impacts you if you are a package maintainer, in which case it changes the way you have to register new versions of packages…

---

## [Recommendations for which package to use for a complicated plot](https://discourse.julialang.org/t/recommendations-for-which-package-to-use-for-a-complicated-plot/27901)

<div class="topic-metadata">

**Author:** [@doomphoenix-qxz](https://discourse.julialang.org/u/doomphoenix-qxz)\
**Replies:** 9\
**Last updated:** [August 24, 2019, 7:47am UTC](https://discourse.julialang.org/t/recommendations-for-which-package-to-use-for-a-complicated-plot/27901 "2019-08-24T07:47:48Z")

</div>

I am trying to create a figure that looks more or less like the following (taken from J. Zhang et al., Corrosion Science 144 (2018) 44–53): Could I get recommendations for a plotting package (preferably in Julia, but…

---

## [Error Building RCall](https://discourse.julialang.org/t/error-building-rcall/27924)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 0\
**Last updated:** [August 24, 2019, 5:34am UTC](https://discourse.julialang.org/t/error-building-rcall/27924 "2019-08-24T05:34:33Z")

</div>

I noticed that I could not use the RCall package properly. When I run Pkg.build(“RCall”), I got the error message: ERROR: LoadError: R cannot be found. Set the “R\_HOME” environment variable to re-run Pkg.build(“RCall”)…

---

## [Google friendly removed functions list](https://discourse.julialang.org/t/google-friendly-removed-functions-list/27919)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 1\
**Last updated:** [August 24, 2019, 2:27am UTC](https://discourse.julialang.org/t/google-friendly-removed-functions-list/27919 "2019-08-24T02:27:27Z")

</div>

I’m a pretty new user to Julia, and I usually google how to do things in Julia. The problem is that most of google answers are several versions old that uses functions that are deprecated and removed. For example I sear…

---

## [@btime's wrong output](https://discourse.julialang.org/t/btimes-wrong-output/27914)

<div class="topic-metadata">

**Author:** [@suiato](https://discourse.julialang.org/u/suiato)\
**Replies:** 5\
**Last updated:** [August 24, 2019, 1:34am UTC](https://discourse.julialang.org/t/btimes-wrong-output/27914 "2019-08-24T01:34:57Z")

</div>

What’s wrong with the following code? (Julia 1.0.4) julia\> using BenchmarkTools julia\> a = \[1,2,3,4,5\] 5-element Array{Int64,1}: 1 2 3 4 5 julia\> @btime $a .= $a.^2 9.499 ns (0 allocations: 0 bytes) 5-element…

---

## [Idiomatic way to write element-wise combination of array of arrays?](https://discourse.julialang.org/t/idiomatic-way-to-write-element-wise-combination-of-array-of-arrays/18467)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 10\
**Last updated:** [August 24, 2019, 12:54am UTC](https://discourse.julialang.org/t/idiomatic-way-to-write-element-wise-combination-of-array-of-arrays/18467 "2019-08-24T00:54:53Z")

</div>

I was wondering how others would construct a combination of the product of two nested arrays? Example and my approach: a = \[\[1,2,3\],\[2,3,4\]\] b = \[\[1,1,1\],\[0,0,0\]\] # want \[\[1,2,3\],\[0,0,0\]\] z = \[\] for (i,x) in enume…

---

## [Problems parallelizing declaring used packages](https://discourse.julialang.org/t/problems-parallelizing-declaring-used-packages/27728)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 14\
**Last updated:** [August 24, 2019, 12:32am UTC](https://discourse.julialang.org/t/problems-parallelizing-declaring-used-packages/27728 "2019-08-24T00:32:55Z")

</div>

Hi! I am having big trouble setting up a code for parallelization. When I try to “declare” the packages that I am using in the workers by running the following code: #--------------------------------# # Initiali…

---

## [Definition of 'TTFP'](https://discourse.julialang.org/t/definition-of-ttfp/27898)

<div class="topic-metadata">

**Author:** [@lobingera](https://discourse.julialang.org/u/lobingera)\
**Replies:** 3\
**Last updated:** [August 23, 2019, 11:59pm UTC](https://discourse.julialang.org/t/definition-of-ttfp/27898 "2019-08-23T23:59:18Z")

</div>

Citing Tamas (from the other thread) “Maybe I am overly optimistic, but in the meantime I consider it within the capacity of an average adult to wait a short while when loading unfamiliar package in a new programming lan…

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

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