# Latest

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

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

**Page:** 1494

---

## [Lightgraph Loses MetaGraphs MetaData](https://discourse.julialang.org/t/lightgraph-loses-metagraphs-metadata/55067)

<div class="topic-metadata">

**Author:** [@AlexanderChen](https://discourse.julialang.org/u/AlexanderChen)\
**Replies:** 0\
**Last updated:** [February 11, 2021, 3:48pm UTC](https://discourse.julialang.org/t/lightgraph-loses-metagraphs-metadata/55067 "2021-02-11T15:48:00Z")

</div>

Hi, I have two graphs independent graphs which have metadata included (via Metagraphs). I want to join both graphs and put an edge in to connect them as 1 graph. I do this with blockdiag() However, that loses my metadat…

---

## [Slurm doesn't like @spawnat :any](https://discourse.julialang.org/t/slurm-doesnt-like-spawnat-any/55112)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 3\
**Last updated:** [February 12, 2021, 6:30am UTC](https://discourse.julialang.org/t/slurm-doesnt-like-spawnat-any/55112 "2021-02-12T06:30:09Z")

</div>

I don’t really have an MWE for this. It never fails on the desktop (10 workers), but when it runs on hpc (single node 40 workers) I get really messy errors. I have plenty of distributed for loops in other sections of t…

---

## [Weird behavior with 3-dimensional arrays (beginner)](https://discourse.julialang.org/t/weird-behavior-with-3-dimensional-arrays-beginner/55119)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 2\
**Last updated:** [February 12, 2021, 4:46am UTC](https://discourse.julialang.org/t/weird-behavior-with-3-dimensional-arrays-beginner/55119 "2021-02-12T04:46:46Z")

</div>

I am trying to work with 3-dimensions arrays. My understanding is that they are just like matrices but with one extra index (so like a “deck” of matrices). Sometimes the arrays appear to be behaving as expected but some…

---

## [Parallel errors in a Module, using pmap()](https://discourse.julialang.org/t/parallel-errors-in-a-module-using-pmap/54313)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 2\
**Last updated:** [February 12, 2021, 4:37am UTC](https://discourse.julialang.org/t/parallel-errors-in-a-module-using-pmap/54313 "2021-02-12T04:37:00Z")

</div>

I create a package and using pmap for parallel. Encountered many errors, when run Pkg \> test. The package is as follows. file1: /ParalAlg/src/ParalAlg.jl module ParalAlg using Distributed Distributed.addprocs(3) @ever…

---

## [5/5000 Why is the error reported? UndefVarError: fit! not defined](https://discourse.julialang.org/t/5-5000-why-is-the-error-reported-undefvarerror-fit-not-defined/55118)

<div class="topic-metadata">

**Author:** [@Jianqing001](https://discourse.julialang.org/u/Jianqing001)\
**Replies:** 0\
**Last updated:** [February 12, 2021, 4:04am UTC](https://discourse.julialang.org/t/5-5000-why-is-the-error-reported-undefvarerror-fit-not-defined/55118 "2021-02-12T04:04:07Z")

</div>

julia\> using RDatasets: dataset julia\> iris = dataset(“datasets”, “iris”); julia\> first(iris, 5) … julia\> X = convert(Array, iris\[!, \[:SepalLength, :SepalWidth, :PetalLength, :PetalWidth\]\]) … julia\> y = convert(Arr…

---

## [Add dev packages to Pkg environment outside of Project.toml](https://discourse.julialang.org/t/add-dev-packages-to-pkg-environment-outside-of-project-toml/55115)

<div class="topic-metadata">

**Author:** [@xzackli](https://discourse.julialang.org/u/xzackli)\
**Replies:** 2\
**Last updated:** [February 12, 2021, 3:44am UTC](https://discourse.julialang.org/t/add-dev-packages-to-pkg-environment-outside-of-project-toml/55115 "2021-02-12T03:44:23Z")

</div>

I don’t want dependencies like Plots and Revise in my package, but it’s nice to use those packages in development. Is there a place I can specify “development packages” for a Pkg environment that don’t get added to my Pr…

---

## [HiGHS.jl v0.1.0 released](https://discourse.julialang.org/t/highs-jl-v0-1-0-released/55114)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 0\
**Last updated:** [February 12, 2021, 3:35am UTC](https://discourse.julialang.org/t/highs-jl-v0-1-0-released/55114 "2021-02-12T03:35:04Z")

</div>

Dear all, We are happy to announce the initial v0.1 release of HiGHS.jl, a wrapper for HiGHS. HiGHS is a new high-performance open-source linear programming solver being developed by Julian Hall and colleagues at the U…

---

## [How to avoid repeatedly calling include()?](https://discourse.julialang.org/t/how-to-avoid-repeatedly-calling-include/54347)

<div class="topic-metadata">

**Author:** [@MattWillFlood](https://discourse.julialang.org/u/MattWillFlood)\
**Replies:** 21\
**Last updated:** [February 12, 2021, 2:59am UTC](https://discourse.julialang.org/t/how-to-avoid-repeatedly-calling-include/54347 "2021-02-12T02:59:46Z")

</div>

Hello Julia Community :slightly\_smiling\_face:, I’m developing my first Julia package at the moment. In the main module of this package, there are many functions that call functions from other modules. For example: modu…

---

## [Reducing allocations and run time](https://discourse.julialang.org/t/reducing-allocations-and-run-time/55087)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 8\
**Last updated:** [February 12, 2021, 1:18am UTC](https://discourse.julialang.org/t/reducing-allocations-and-run-time/55087 "2021-02-12T01:18:25Z")

</div>

Hi, I’m running a program and trying to speed it up. I don’t get the logic of views, or any other way to reduce the number of allocations. A simplified example is aa = \[4 3; 4 5\] bb = \[1 2;6 3\] cc = zeros(2,2,2) @time …

---

## [Transform Markdown file from Literate.jl to HTML](https://discourse.julialang.org/t/transform-markdown-file-from-literate-jl-to-html/50515)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 5\
**Last updated:** [February 12, 2021, 12:25am UTC](https://discourse.julialang.org/t/transform-markdown-file-from-literate-jl-to-html/50515 "2021-02-12T00:25:59Z")

</div>

I am experimenting with using Literate.jl for a tutorial and I would like to produce HTML from the Markdown file produced by Literate.markdown, preferably without going through Documenter.jl Can someone suggest a pipeli…

---

## [Distributed Array partition index](https://discourse.julialang.org/t/distributed-array-partition-index/53776)

<div class="topic-metadata">

**Author:** [@matthiasbe](https://discourse.julialang.org/u/matthiasbe)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 11:01pm UTC](https://discourse.julialang.org/t/distributed-array-partition-index/53776 "2021-02-11T23:01:17Z")

</div>

Hi, I’m using DistributedArrays. Is there a way to obtain the local index of a partition in the partition grid ? It would be like the hypothetical local\_partition\_index() method below. using DistributedArrays A = dra…

---

## [Help with Genie](https://discourse.julialang.org/t/help-with-genie/49527)

<div class="topic-metadata">

**Author:** [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Replies:** 4\
**Last updated:** [February 11, 2021, 10:59pm UTC](https://discourse.julialang.org/t/help-with-genie/49527 "2021-02-11T22:59:16Z")

</div>

I am really new(like 30 minutes new) to web developement in julia,what is that I am messing up in this part?? ashwani@ashwani:~$ julia \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org…

---

## [Problem with endpoints in web with Genie](https://discourse.julialang.org/t/problem-with-endpoints-in-web-with-genie/55100)

<div class="topic-metadata">

**Author:** [@Volodymyr\_Pakholok](https://discourse.julialang.org/u/Volodymyr_Pakholok)\
**Replies:** 0\
**Last updated:** [February 11, 2021, 10:55pm UTC](https://discourse.julialang.org/t/problem-with-endpoints-in-web-with-genie/55100 "2021-02-11T22:55:18Z")

</div>

using Genie, Genie.Router, Genie.Renderer.Html, Genie.Requests, Genie.Renderer.Json using HTTP form = “”" """ HTTP.request(“POST”, “http://localhost:8000/jsonpayload”, \[(“Content-Type”, “application/json”)\], “…

---

## [Examples of composable probabilistic models](https://discourse.julialang.org/t/examples-of-composable-probabilistic-models/55078)

<div class="topic-metadata">

**Author:** [@jkbest2](https://discourse.julialang.org/u/jkbest2)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 10:54pm UTC](https://discourse.julialang.org/t/examples-of-composable-probabilistic-models/55078 "2021-02-11T22:54:17Z")

</div>

In this thread @cscherrer was looking for examples of where composable probabilistic models would be an advantage: The first case I can see is to provide a library of model components that can be composed. This would b…

---

## [Concatenate two csv columns in julia](https://discourse.julialang.org/t/concatenate-two-csv-columns-in-julia/55084)

<div class="topic-metadata">

**Author:** [@yogi1](https://discourse.julialang.org/u/yogi1)\
**Replies:** 4\
**Last updated:** [February 11, 2021, 9:58pm UTC](https://discourse.julialang.org/t/concatenate-two-csv-columns-in-julia/55084 "2021-02-11T21:58:08Z")

</div>

Hi all, I am trying to replicate the excel function concat in julia. I have two columns A and B. I am trying to concatenate the values in these columns and produce a single column with the values in columns A and colum…

---

## [What's with the invariant parametric types gotcha?](https://discourse.julialang.org/t/whats-with-the-invariant-parametric-types-gotcha/55090)

<div class="topic-metadata">

**Author:** [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Replies:** 3\
**Last updated:** [February 11, 2021, 8:45pm UTC](https://discourse.julialang.org/t/whats-with-the-invariant-parametric-types-gotcha/55090 "2021-02-11T20:45:36Z")

</div>

Consider: julia\> foo(x::Vector{Integer}) = "bar" foo (generic function with 1 method) julia\> foo(\[1, 2, 3\]) ERROR: MethodError: no method matching foo(::Array{Int64,1}) Closest candidates are: foo(::Array{Integer,1})…

---

## [Best practices to share simulations with collaborators?](https://discourse.julialang.org/t/best-practices-to-share-simulations-with-collaborators/54954)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 17\
**Last updated:** [February 11, 2021, 7:45pm UTC](https://discourse.julialang.org/t/best-practices-to-share-simulations-with-collaborators/54954 "2021-02-11T19:45:41Z")

</div>

I’m trying to ship my Julia simulation to a collaborator (who is not a programmer) and since a few attempts failed, I’m asking here for advice to do it better next time. Setting: I have basically one package and one scr…

---

## [Bug Report](https://discourse.julialang.org/t/bug-report/55081)

<div class="topic-metadata">

**Author:** [@faoh](https://discourse.julialang.org/u/faoh)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 7:32pm UTC](https://discourse.julialang.org/t/bug-report/55081 "2021-02-11T19:32:59Z")

</div>

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION\_ACCESS\_VIOLATION at 0x6b64b09f – jl\_compile\_linfo at /home/Administrato…

---

## [Optimizer returns status infeasible for a feasible problem](https://discourse.julialang.org/t/optimizer-returns-status-infeasible-for-a-feasible-problem/55064)

<div class="topic-metadata">

**Author:** [@htpusa](https://discourse.julialang.org/u/htpusa)\
**Replies:** 2\
**Last updated:** [February 11, 2021, 7:27pm UTC](https://discourse.julialang.org/t/optimizer-returns-status-infeasible-for-a-feasible-problem/55064 "2021-02-11T19:27:33Z")

</div>

I’m running into the following issue while solving a set of LP-problems using JuMP: I want to create a model, optimize it, and then in turn minimize and maximize its variables while requiring the original optimum to be …

---

## [Is using values() the correct way to obtain the namedtuple in keyword arguments?](https://discourse.julialang.org/t/is-using-values-the-correct-way-to-obtain-the-namedtuple-in-keyword-arguments/55074)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 6:56pm UTC](https://discourse.julialang.org/t/is-using-values-the-correct-way-to-obtain-the-namedtuple-in-keyword-arguments/55074 "2021-02-11T18:56:04Z")

</div>

Suppose I had the following method: function character\_information(name::String, age::Int32; c...) println("Name: $name Age: $age") c\_values = values(c) println(c\_values.Alignment) end # We're not foll…

---

## [Recursive Bayes](https://discourse.julialang.org/t/recursive-bayes/55036)

<div class="topic-metadata">

**Author:** [@klowrey](https://discourse.julialang.org/u/klowrey)\
**Replies:** 7\
**Last updated:** [February 11, 2021, 5:49pm UTC](https://discourse.julialang.org/t/recursive-bayes/55036 "2021-02-11T17:49:50Z")

</div>

I’m beginning a new project and eager to use Turing.jl or some other PPL for all the benefits, but have not found an example in a recursive Bayes problem setting. That is to say the current posterior is used as a prior w…

---

## [Reading multiple CSVs into one DataFrame](https://discourse.julialang.org/t/reading-multiple-csvs-into-one-dataframe/55066)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 12\
**Last updated:** [February 11, 2021, 5:18pm UTC](https://discourse.julialang.org/t/reading-multiple-csvs-into-one-dataframe/55066 "2021-02-11T17:18:35Z")

</div>

I have a set of CSV files, each with two columns where I don’t know the column names ahead of time. I don’t need the first columns because they are essentially the same as the row number. What is the simplest way to comb…

---

## [Concatenating bit strings](https://discourse.julialang.org/t/concatenating-bit-strings/54950)

<div class="topic-metadata">

**Author:** [@bsuwal](https://discourse.julialang.org/u/bsuwal)\
**Replies:** 4\
**Last updated:** [February 11, 2021, 4:42pm UTC](https://discourse.julialang.org/t/concatenating-bit-strings/54950 "2021-02-11T16:42:18Z")

</div>

Say I have a bit string x = UInt(1) (which is 0x01) and y = UInt(2) (which is 0x02). Is there a way to concatenate these bit strings using something like x \* y so that the resulting bit string would represent 0x01 0x02 …

---

## [Does anyone know why this repo's CompatHelper doesn't start CI?](https://discourse.julialang.org/t/does-anyone-know-why-this-repos-compathelper-doesnt-start-ci/55061)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 4:19pm UTC](https://discourse.julialang.org/t/does-anyone-know-why-this-repos-compathelper-doesnt-start-ci/55061 "2021-02-11T16:19:41Z")

</div>

Does anyone know why this repo’s CompatHelper doesn’t start CI? https://github.com/SciML/DiffEqBayes.jl/pull/200 Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing t…

---

## [Faster conversion to CategoricalArray with many groups](https://discourse.julialang.org/t/faster-conversion-to-categoricalarray-with-many-groups/55057)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 3\
**Last updated:** [February 11, 2021, 4:15pm UTC](https://discourse.julialang.org/t/faster-conversion-to-categoricalarray-with-many-groups/55057 "2021-02-11T16:15:00Z")

</div>

I need to convert columns in a larger (~20M rows) DataFrame to CategoricalArrays to be used with MixedModels and FixedEffectModels (I think the latter does not require Categorical but the former does). If there are many …

---

## [∞ name collision](https://discourse.julialang.org/t/name-collision/55033)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 12\
**Last updated:** [February 11, 2021, 3:57pm UTC](https://discourse.julialang.org/t/name-collision/55033 "2021-02-11T15:57:33Z")

</div>

MeasureTheory.jl currently has InfiniteArrays.jl as a dependency, because @dlfivefifty has some nice utilities for dealing with infinity as an integer value. This makes it handy for representing things like the support o…

---

## [GalacticOptim trips over boundary conditions in DiffEqOperators](https://discourse.julialang.org/t/galacticoptim-trips-over-boundary-conditions-in-diffeqoperators/55060)

<div class="topic-metadata">

**Author:** [@told](https://discourse.julialang.org/u/told)\
**Replies:** 2\
**Last updated:** [February 11, 2021, 2:49pm UTC](https://discourse.julialang.org/t/galacticoptim-trips-over-boundary-conditions-in-diffeqoperators/55060 "2021-02-11T14:49:01Z")

</div>

So I just had time to go back to a project I was working in the past (related to this). Basically I want to solve a Diffusion-Convection problem tracking two phases along a reactor with a source term that is learned by a…

---

## [GSOC mentoring and guidance searched](https://discourse.julialang.org/t/gsoc-mentoring-and-guidance-searched/55046)

<div class="topic-metadata">

**Author:** [@suavesito](https://discourse.julialang.org/u/suavesito)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 2:40pm UTC](https://discourse.julialang.org/t/gsoc-mentoring-and-guidance-searched/55046 "2021-02-11T14:40:59Z")

</div>

Hi everyone! I’m José Joaquín Zubieta Rico. I’m a student of a Bachelor program in Computer Science at the University of Guanajuato (Universidad de Guanajuato) and CIMAT (Research Institute of Mathematics) in México. I’v…

---

## [Trouble getting started with Dierckx 2D Spline](https://discourse.julialang.org/t/trouble-getting-started-with-dierckx-2d-spline/54995)

<div class="topic-metadata">

**Author:** [@natemcintosh](https://discourse.julialang.org/u/natemcintosh)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 10:02pm UTC](https://discourse.julialang.org/t/trouble-getting-started-with-dierckx-2d-spline/54995 "2021-02-10T22:02:42Z")

</div>

Background Looking at the documentation for creating 2D splines, Spline2D(x, y, z; w=ones(length(x)), kx=3, ky=3, s=0.0) Spline2D(x, y, z; kx=3, ky=3, s=0.0) Fit a 2-d spline to the input data. x and y must be 1-d arr…

---

## [Jacobian of NN: Mutating arrays is not supported](https://discourse.julialang.org/t/jacobian-of-nn-mutating-arrays-is-not-supported/55053)

<div class="topic-metadata">

**Author:** [@Sunny](https://discourse.julialang.org/u/Sunny)\
**Replies:** 2\
**Last updated:** [February 11, 2021, 2:20pm UTC](https://discourse.julialang.org/t/jacobian-of-nn-mutating-arrays-is-not-supported/55053 "2021-02-11T14:20:08Z")

</div>

I’m trying to take derivative of the jacobian of neural network. But there emerges mutating arrays problem nn = Chain(Dense(2,10, tanh), Dense(10,1)) println(Flux.params(nn)) jac₁ = x -\> ForwardDiff.jacobian(nn, x) # w…

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

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