# Latest

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

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

**Page:** 1801

---

## [Write large Least Square like problems in JuMP](https://discourse.julialang.org/t/write-large-least-square-like-problems-in-jump/35931)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 2\
**Last updated:** [March 16, 2020, 5:43pm UTC](https://discourse.julialang.org/t/write-large-least-square-like-problems-in-jump/35931 "2020-03-16T17:43:08Z")

</div>

Hi, Here is a small code showing the issue I am facing when trying to form large problem (least square like) with JuMP using JuMP, Ipopt, BenchmarkTools p = 500 n = 200 solver = with\_optimizer(Ipopt.Optimizer); ML = …

---

## [Flux cannot save a parameters](https://discourse.julialang.org/t/flux-cannot-save-a-parameters/35642)

<div class="topic-metadata">

**Author:** [@Owolf](https://discourse.julialang.org/u/Owolf)\
**Replies:** 3\
**Last updated:** [March 16, 2020, 4:35pm UTC](https://discourse.julialang.org/t/flux-cannot-save-a-parameters/35642 "2020-03-16T16:35:30Z")

</div>

Dear Julia community, I am trying to save parameters for trained RNN with BSON. However it seems that in latest version of FLUX this is not possible, however https://fluxml.ai says something different. I create rnn as: …

---

## [Coerce type of elements in an empty concatenation](https://discourse.julialang.org/t/coerce-type-of-elements-in-an-empty-concatenation/36045)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 1\
**Last updated:** [March 16, 2020, 4:09pm UTC](https://discourse.julialang.org/t/coerce-type-of-elements-in-an-empty-concatenation/36045 "2020-03-16T16:09:27Z")

</div>

I have an array of vectors of a given type, that I want to concatenate into a single vector of the same type. vcat is normally good for this, but there is a problem if the array of vectors results to be empty: julia\> a …

---

## [Geographic entities to country code (name)](https://discourse.julialang.org/t/geographic-entities-to-country-code-name/35765)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 1\
**Last updated:** [March 16, 2020, 3:41pm UTC](https://discourse.julialang.org/t/geographic-entities-to-country-code-name/35765 "2020-03-16T15:41:26Z")

</div>

Does anybody know packages (julia, python) to convert geographic entities (city,…) and nationalities to country code or name Thank you in advance.

---

## [Bipartite weighted network](https://discourse.julialang.org/t/bipartite-weighted-network/35985)

<div class="topic-metadata">

**Author:** [@mp-crypto](https://discourse.julialang.org/u/mp-crypto)\
**Replies:** 7\
**Last updated:** [March 16, 2020, 3:17pm UTC](https://discourse.julialang.org/t/bipartite-weighted-network/35985 "2020-03-16T15:17:31Z")

</div>

Hello, I am new to Julia (moving from Python). I am trying to generate a bipartite weighted network from a data frame. The data frame contains the “edgelist” (i.e., a column for bottom nodes, and a column for top nodes)…

---

## [A question about atom warning](https://discourse.julialang.org/t/a-question-about-atom-warning/36034)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 9\
**Last updated:** [March 16, 2020, 2:11pm UTC](https://discourse.julialang.org/t/a-question-about-atom-warning/36034 "2020-03-16T14:11:26Z")

</div>

julia\> ┌ Warning: Atom.jl: unrecognised message cacheCompletions. │ Please make sure your Atom and Julia packages are in sync. │ - Try using Pkg; Pkg.update() to update this package. │ - Check for julia-client upd…

---

## [AssertionError: ctx === CuCurrentContext()](https://discourse.julialang.org/t/assertionerror-ctx-cucurrentcontext/36026)

<div class="topic-metadata">

**Author:** [@benoitseron](https://discourse.julialang.org/u/benoitseron)\
**Replies:** 3\
**Last updated:** [March 16, 2020, 11:41am UTC](https://discourse.julialang.org/t/assertionerror-ctx-cucurrentcontext/36026 "2020-03-16T11:41:08Z")

</div>

I am trying to setup Julia to use my GPU, out of curiosity as I am a new user. After a few problems, I encoutered this one, where I have not found anything (apart from this which didn’t help me either): using Benchmark…

---

## [\[ANN\] AxisIndices](https://discourse.julialang.org/t/ann-axisindices/35391)

<div class="topic-metadata">

**Author:** [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Replies:** 15\
**Last updated:** [March 16, 2020, 11:23am UTC](https://discourse.julialang.org/t/ann-axisindices/35391 "2020-03-16T11:23:30Z")

</div>

I’d like to announce AxisIndices.jl. Briefly, AxisIndices implements a unique interface for indexing and offers a flexible approach to customizing indexing at each axis. The documentation currently provides brief explana…

---

## [Conditional selection of columns in for loop](https://discourse.julialang.org/t/conditional-selection-of-columns-in-for-loop/36016)

<div class="topic-metadata">

**Author:** [@meritwagner](https://discourse.julialang.org/u/meritwagner)\
**Replies:** 4\
**Last updated:** [March 16, 2020, 10:54am UTC](https://discourse.julialang.org/t/conditional-selection-of-columns-in-for-loop/36016 "2020-03-16T10:54:16Z")

</div>

Hey guys, Just another beginner-question, I think there is an easy way of doing this: I have a Dataframe with 50 columns that each contain 10 million rows of sensor values. I want to resample those, but want to apply d…

---

## [Health and safety](https://discourse.julialang.org/t/health-and-safety/35943)

<div class="topic-metadata">

**Author:** [@DaymondLing](https://discourse.julialang.org/u/DaymondLing)\
**Replies:** 2\
**Last updated:** [March 16, 2020, 6:53am UTC](https://discourse.julialang.org/t/health-and-safety/35943 "2020-03-16T06:53:02Z")

</div>

Completely off topic, just wishing all the brilliant people here in the Julia community and your family and community health and safety. :vulcan\_salute:

---

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

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 4\
**Last updated:** [March 16, 2020, 2:34am UTC](https://discourse.julialang.org/t/ann-vegalite-jl-v2-0-released/35853 "2020-03-16T02:34:50Z")

</div>

We released VegaLite.jl v2.0 a couple of days ago. This new version brings a lot of new features along! I’ll try to walk you through some of them in this post. For those of you not familiar with the package: VegaLite.jl …

---

## [Does automatic differentiation work for function with discrete argument?](https://discourse.julialang.org/t/does-automatic-differentiation-work-for-function-with-discrete-argument/35947)

<div class="topic-metadata">

**Author:** [@zxjroger](https://discourse.julialang.org/u/zxjroger)\
**Replies:** 8\
**Last updated:** [March 16, 2020, 1:10am UTC](https://discourse.julialang.org/t/does-automatic-differentiation-work-for-function-with-discrete-argument/35947 "2020-03-16T01:10:13Z")

</div>

I am trying to find the minimizer \\theta of the following nonlinear and non-differentiable function: g(H(X | \\theta),X). Here, X is known and imported from dataset; \\theta=(\\theta\_1,\\theta\_2,\\theta\_3) are the parameters …

---

## [CompatHelper help](https://discourse.julialang.org/t/compathelper-help/36022)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 4\
**Last updated:** [March 15, 2020, 10:52pm UTC](https://discourse.julialang.org/t/compathelper-help/36022 "2020-03-15T22:52:54Z")

</div>

I created a new package with PkgSkeleton.jl (thanks @Tamas\_Papp) and am trying to register it. However, I cannot for the life of me get CompatHelper to work. The CompatHelper.yml was there from the very beginning, but I …

---

## [ERROR: stat returned zero type for a valid path](https://discourse.julialang.org/t/error-stat-returned-zero-type-for-a-valid-path/33658)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 5\
**Last updated:** [March 15, 2020, 10:52pm UTC](https://discourse.julialang.org/t/error-stat-returned-zero-type-for-a-valid-path/33658 "2020-03-15T22:52:39Z")

</div>

I tried to upgrade from Julia 1.2.0 to 1.3.1 on my Andoid/userLAnd/Ubuntu installation - and encountered a new error message upon launching Julia 1.3.1. It probably has to do with some missing folder or writing rights, b…

---

## [Can't seem to get reverse\_diff working in Turing](https://discourse.julialang.org/t/cant-seem-to-get-reverse-diff-working-in-turing/36015)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 10\
**Last updated:** [March 15, 2020, 9:19pm UTC](https://discourse.julialang.org/t/cant-seem-to-get-reverse-diff-working-in-turing/36015 "2020-03-15T21:19:41Z")

</div>

I am having some issues with getting my code to work with reverse\_diff enabled, which I believe would be a good idea due to having around 35 params, I get the following error: ERROR: MethodError: no method matching zero…

---

## [Using artifacts to install python dependencies?](https://discourse.julialang.org/t/using-artifacts-to-install-python-dependencies/36006)

<div class="topic-metadata">

**Author:** [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Replies:** 2\
**Last updated:** [March 15, 2020, 8:11pm UTC](https://discourse.julialang.org/t/using-artifacts-to-install-python-dependencies/36006 "2020-03-15T20:11:41Z")

</div>

I used to install python dependencies with run(\`$(PyCall.python) $(proxy\_arg) -m pip install --user $(PACKAGES)\`) in a build script. Does it make sense to install them instead with artifacts? If yes, does somebody have a…

---

## [Upgrade Issues](https://discourse.julialang.org/t/upgrade-issues/35942)

<div class="topic-metadata">

**Author:** [@meritwagner](https://discourse.julialang.org/u/meritwagner)\
**Replies:** 2\
**Last updated:** [March 15, 2020, 4:46pm UTC](https://discourse.julialang.org/t/upgrade-issues/35942 "2020-03-15T16:46:21Z")

</div>

Hey guys, Just tried to switch to the latest version of JuliaPro 1.3.1 and have to say that finding information on how to upgrade Julia within JuliaPro are way to difficult. Couldn’t find any advice on your website. Wou…

---

## [NLP Help needed. Probability two words to be next to each other](https://discourse.julialang.org/t/nlp-help-needed-probability-two-words-to-be-next-to-each-other/35993)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 7\
**Last updated:** [March 15, 2020, 4:31pm UTC](https://discourse.julialang.org/t/nlp-help-needed-probability-two-words-to-be-next-to-each-other/35993 "2020-03-15T16:31:35Z")

</div>

Would somebody help me with NLP? I am new on this topic. I have several words: s1,s2,s3. I need to find which of these words have a higher probability of staying after the root word. So I want to compare Probability(…

---

## [Shared environments](https://discourse.julialang.org/t/shared-environments/35999)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 7\
**Last updated:** [March 15, 2020, 1:17pm UTC](https://discourse.julialang.org/t/shared-environments/35999 "2020-03-15T13:17:36Z")

</div>

I recently learned about “shared environments”, aka the default v1.3 environment. It’s quite a revelation, but I don’t understand how it works. Suppose I have Package A which depends on B@v1.0.0, and is compatible with…

---

## [Initializing a dataframe](https://discourse.julialang.org/t/initializing-a-dataframe/35933)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 23\
**Last updated:** [March 15, 2020, 12:34pm UTC](https://discourse.julialang.org/t/initializing-a-dataframe/35933 "2020-03-15T12:34:09Z")

</div>

Hi, I would like to initialize a dataframe with only the column names and no data and then add rows of mixed type. For example: using DataFrames.jl df = DF.DataFrame(\[:a, :b\]) push!(df, \[\[1,2,3\], .3\]) push(df, \[\[3,4,…

---

## [Plotting an attractor solution](https://discourse.julialang.org/t/plotting-an-attractor-solution/35992)

<div class="topic-metadata">

**Author:** [@Eris](https://discourse.julialang.org/u/Eris)\
**Replies:** 4\
**Last updated:** [March 15, 2020, 12:07pm UTC](https://discourse.julialang.org/t/plotting-an-attractor-solution/35992 "2020-03-15T12:07:59Z")

</div>

I’m new to Julia and learning how to use ODEProblem. I’m trying to solve the following system However my code is only producing a straight line that does not reflect this behavior. What is wrong with my implementatio…

---

## [Best practice for assertions for debugging purposes](https://discourse.julialang.org/t/best-practice-for-assertions-for-debugging-purposes/35930)

<div class="topic-metadata">

**Author:** [@efokken](https://discourse.julialang.org/u/efokken)\
**Replies:** 4\
**Last updated:** [March 15, 2020, 12:01pm UTC](https://discourse.julialang.org/t/best-practice-for-assertions-for-debugging-purposes/35930 "2020-03-15T12:01:17Z")

</div>

Hi there! I’m building a package and have started to use asserts in all my functions that check dimensions of the function arguments. As most of these functions are called from my own code only, these asserts should no…

---

## [Base.return\_types function](https://discourse.julialang.org/t/base-return-types-function/35995)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 3\
**Last updated:** [March 15, 2020, 9:07am UTC](https://discourse.julialang.org/t/base-return-types-function/35995 "2020-03-15T09:07:20Z")

</div>

I have two questions about the following experiment: Why are there so many more possibilities with AbstractArray? Is it correct? Why doesn’t it return unique results? Maybe it should. julia\> Base.return\_types(iterat…

---

## [Morris method](https://discourse.julialang.org/t/morris-method/35994)

<div class="topic-metadata">

**Author:** [@vijaya](https://discourse.julialang.org/u/vijaya)\
**Replies:** 2\
**Last updated:** [March 15, 2020, 8:37am UTC](https://discourse.julialang.org/t/morris-method/35994 "2020-03-15T08:37:32Z")

</div>

Hi In the global sensitvity analysis Morris method example (Lotka Volterra gsa), the input arguments are “total\_num\_trajectory=1000,num\_trajectory=150” m = gsa(f1,Morris(total\_num\_trajectory=1000,num\_trajectory=150),\[…

---

## [PL/Julia extension ( minimal )](https://discourse.julialang.org/t/pl-julia-extension-minimal/34232)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 2\
**Last updated:** [March 15, 2020, 7:07am UTC](https://discourse.julialang.org/t/pl-julia-extension-minimal/34232 "2020-03-15T07:07:54Z")

</div>

" The following is only the beginning of an example to create a new procedural language for PostgreSQL. At some point later we will have something that enables user defined functions and stored procedures written in the J…

---

## [Unsafe\_wrap ownership with pointer returned by ccall](https://discourse.julialang.org/t/unsafe-wrap-ownership-with-pointer-returned-by-ccall/35998)

<div class="topic-metadata">

**Author:** [@kli6891](https://discourse.julialang.org/u/kli6891)\
**Replies:** 3\
**Last updated:** [March 15, 2020, 2:49am UTC](https://discourse.julialang.org/t/unsafe-wrap-ownership-with-pointer-returned-by-ccall/35998 "2020-03-15T02:49:18Z")

</div>

Suppose I use ccall to call into a piece of C code which returns a pointer (to an array) to a chunk of memory that was malloc’d by the C code. I want this array now to be owned by Julia’s GC. Should I call unsafe\_wrap(.…

---

## [Bincount of histogram](https://discourse.julialang.org/t/bincount-of-histogram/35991)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 4\
**Last updated:** [March 15, 2020, 12:36am UTC](https://discourse.julialang.org/t/bincount-of-histogram/35991 "2020-03-15T00:36:22Z")

</div>

I’d like to adjust bin count. After using Gadfly, the plot() became undefined. using Distributions function a() jump=rand(TDist(1),10000)#12\>10 for j in 1:length(jump) while abs(jump\[j\])\<1 #…

---

## [Tonight I hated julia, REPL and overflows](https://discourse.julialang.org/t/tonight-i-hated-julia-repl-and-overflows/34884)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 64\
**Last updated:** [March 14, 2020, 8:43pm UTC](https://discourse.julialang.org/t/tonight-i-hated-julia-repl-and-overflows/34884 "2020-03-14T20:43:58Z")

</div>

Hello, I am a newcommer in Julia. I have read almost entire never ending boring manual, read a couple books, watched some videos, and practicing probability theory with julia with much enthusiasm. I spend great of time …

---

## [Problem with \`cat\`](https://discourse.julialang.org/t/problem-with-cat/35964)

<div class="topic-metadata">

**Author:** [@Jean\_Michel](https://discourse.julialang.org/u/Jean_Michel)\
**Replies:** 9\
**Last updated:** [March 14, 2020, 8:37pm UTC](https://discourse.julialang.org/t/problem-with-cat/35964 "2020-03-14T20:37:23Z")

</div>

I have a problem with cat. I am using polynomials (my own package but this is not the problem) julia\> q=Pol(:q) Pol{Int64}: q julia\> (q+1)^3 Pol{Int64}: q³+3q²+3q+1 and I am all the time using cat to construct block-d…

---

## [Hessian on a parametric parametric spline](https://discourse.julialang.org/t/hessian-on-a-parametric-parametric-spline/35986)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 0\
**Last updated:** [March 14, 2020, 8:15pm UTC](https://discourse.julialang.org/t/hessian-on-a-parametric-parametric-spline/35986 "2020-03-14T20:15:07Z")

</div>

I’m not sure what the correct syntax is (got some StackOverflowErrors) for getting the hessian of a parametric spline in Interpolations.jl. So from the docs: using Interpolations t = 0:.1:1 x = sin.(2π\*t) y = cos.(2π\*…

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

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