# Latest

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

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

**Page:** 1384

---

## [Can JuMP.fix be use to fix Array{Float64,1} to Array{VariableRef,1}](https://discourse.julialang.org/t/can-jump-fix-be-use-to-fix-array-float64-1-to-array-variableref-1/61640)

<div class="topic-metadata">

**Author:** [@BYS](https://discourse.julialang.org/u/BYS)\
**Replies:** 3\
**Last updated:** [May 23, 2021, 1:27am UTC](https://discourse.julialang.org/t/can-jump-fix-be-use-to-fix-array-float64-1-to-array-variableref-1/61640 "2021-05-23T01:27:12Z")

</div>

Hi, I find if I write model=Model(); ep=ones(20); @variable(model,ep1\[1:20\]); JuMP.fix(ep1,ep); I find it cannot be deal with, and do the JuMP.fix need to fix one by one? and How can I do it? Thanks a lot.

---

## [\[JSoC 2021\] Student Introduction. Improve different aspects of MCMCChains.jl](https://discourse.julialang.org/t/jsoc-2021-student-introduction-improve-different-aspects-of-mcmcchains-jl/61624)

<div class="topic-metadata">

**Author:** [@paumar96](https://discourse.julialang.org/u/paumar96)\
**Replies:** 2\
**Last updated:** [May 23, 2021, 1:18am UTC](https://discourse.julialang.org/t/jsoc-2021-student-introduction-improve-different-aspects-of-mcmcchains-jl/61624 "2021-05-23T01:18:15Z")

</div>

I’m Paulina Martin and this summer I’ll be working as a GSoC student on the MCMCChains improvements project for the Turing ecosystem. I’m a Biology student from Mexico that got interested in Physics, Programming and Math…

---

## [Best practice for storing data in Packages](https://discourse.julialang.org/t/best-practice-for-storing-data-in-packages/36808)

<div class="topic-metadata">

**Author:** [@ashiklom](https://discourse.julialang.org/u/ashiklom)\
**Replies:** 5\
**Last updated:** [May 23, 2021, 12:13am UTC](https://discourse.julialang.org/t/best-practice-for-storing-data-in-packages/36808 "2021-05-23T00:13:51Z")

</div>

I would like to create a package for a model that ships with its own internal data. Basically, I’m looking for the Julia equivalent to R’s R/sysdata.rda (link). I currently have something that looks like this: module M…

---

## [What happens when I upgrade a package during a Revise session?](https://discourse.julialang.org/t/what-happens-when-i-upgrade-a-package-during-a-revise-session/61606)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [May 22, 2021, 8:41pm UTC](https://discourse.julialang.org/t/what-happens-when-i-upgrade-a-package-during-a-revise-session/61606 "2021-05-22T20:41:31Z")

</div>

I’m using VSCode. I have a session running, and I have a bunch of using statements. Then I upgrade a package to the next version. What happens to the functions and types in scope: are they the new versions or the old ver…

---

## [Convolutional Bayesian Neural Networks](https://discourse.julialang.org/t/convolutional-bayesian-neural-networks/61650)

<div class="topic-metadata">

**Author:** [@sapo](https://discourse.julialang.org/u/sapo)\
**Replies:** 7\
**Last updated:** [May 22, 2021, 7:51pm UTC](https://discourse.julialang.org/t/convolutional-bayesian-neural-networks/61650 "2021-05-22T19:51:35Z")

</div>

Hello, I need to implement convolutional and partly bayesian neural networks. I looked into Turing.jl but it looks like it still doesn’t provide such option. Any suggestion?

---

## [Parse structured string to dictionary](https://discourse.julialang.org/t/parse-structured-string-to-dictionary/8126)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 6\
**Last updated:** [May 22, 2021, 7:41pm UTC](https://discourse.julialang.org/t/parse-structured-string-to-dictionary/8126 "2021-05-22T19:41:53Z")

</div>

Let’s say I have a string which has the following template structure: "a\_{a}\_b\_{b}\_c\_{c}.{txt}.{ext}" Example: “a\_3\_b\_4\_c\_5.whatever.jld” My question is how to conveniently generate such string from given (string) va…

---

## [IJulia Syntax Highlighting in VS Code](https://discourse.julialang.org/t/ijulia-syntax-highlighting-in-vs-code/61655)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 0\
**Last updated:** [May 22, 2021, 7:35pm UTC](https://discourse.julialang.org/t/ijulia-syntax-highlighting-in-vs-code/61655 "2021-05-22T19:35:03Z")

</div>

Hello, I am starting a project with some friends and I’d really like to be able to use Julia in a Jupyter notebook to share results and explanations. I am using VSCode on Windows Subsystem for Linux 1 (WSL1). The proble…

---

## [How to write a show function for an image-like type?](https://discourse.julialang.org/t/how-to-write-a-show-function-for-an-image-like-type/61583)

<div class="topic-metadata">

**Author:** [@schrpe](https://discourse.julialang.org/u/schrpe)\
**Replies:** 2\
**Last updated:** [May 22, 2021, 6:31pm UTC](https://discourse.julialang.org/t/how-to-write-a-show-function-for-an-image-like-type/61583 "2021-05-22T18:31:53Z")

</div>

I’m developing a region module. A region is a subset of the discrete 2D cartesian plane. They can be used for very fast binary morphology and other things. I’m trying to implement a show function, so that regions can be…

---

## [Improve currying in Julia Base](https://discourse.julialang.org/t/improve-currying-in-julia-base/61652)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 8\
**Last updated:** [May 22, 2021, 6:11pm UTC](https://discourse.julialang.org/t/improve-currying-in-julia-base/61652 "2021-05-22T18:11:40Z")

</div>

Before opening an issue on Julia GitHub I would like to ask two things (as I might have missed the relevant discussions - I could find some issues that are related but not something directly the same). Question 1. Many …

---

## [Display an image on a GUI](https://discourse.julialang.org/t/display-an-image-on-a-gui/57500)

<div class="topic-metadata">

**Author:** [@Saliha](https://discourse.julialang.org/u/Saliha)\
**Replies:** 2\
**Last updated:** [May 22, 2021, 5:21pm UTC](https://discourse.julialang.org/t/display-an-image-on-a-gui/57500 "2021-05-22T17:21:25Z")

</div>

Hello! I am a beginner with julia programming. I am building a desktop app for a 3d plant architecture model. I am using Interact and blink. I need to insert images to my app (expl logo). I coudn’t find on the Interact …

---

## [Pythontex and Julia](https://discourse.julialang.org/t/pythontex-and-julia/2867)

<div class="topic-metadata">

**Author:** [@mykelk](https://discourse.julialang.org/u/mykelk)\
**Replies:** 6\
**Last updated:** [May 22, 2021, 5:07pm UTC](https://discourse.julialang.org/t/pythontex-and-julia/2867 "2021-05-22T17:07:38Z")

</div>

Pythontex provides very nice support for typesetting documents with Julia code embedded—however, it does not support the Julia console, like it does for Python. See sec. 3 here for an example. It looks like there are a f…

---

## [Elegant ways to broadcast the same function to each column replacing the original column in DataFrames.jl](https://discourse.julialang.org/t/elegant-ways-to-broadcast-the-same-function-to-each-column-replacing-the-original-column-in-dataframes-jl/61632)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 9\
**Last updated:** [May 22, 2021, 4:36pm UTC](https://discourse.julialang.org/t/elegant-ways-to-broadcast-the-same-function-to-each-column-replacing-the-original-column-in-dataframes-jl/61632 "2021-05-22T16:36:37Z")

</div>

I can apply a funciton to each column by broadcasting it. BUt I find the syntax of @chain df begin transform(\[:a, :b, :c\] .=\> (x-\>fn.(x)) .=\> \[:a, :b, :c\]) end clunky. I dont’ like (x-\>fn.(x)) in particular as I f…

---

## [Weird @btime results with \`sin\`](https://discourse.julialang.org/t/weird-btime-results-with-sin/61644)

<div class="topic-metadata">

**Author:** [@cryptic.ax](https://discourse.julialang.org/u/cryptic.ax)\
**Replies:** 1\
**Last updated:** [May 22, 2021, 4:23pm UTC](https://discourse.julialang.org/t/weird-btime-results-with-sin/61644 "2021-05-22T16:23:44Z")

</div>

I was profiling timing differences between using sin, sind, and I noticed some interesting results. julia\> using BenchmarkTools julia\> sin(10); julia\> sind(10); julia\> const ° = π/180; julia\> x = 1.234; julia\> @bti…

---

## [Unreachable reached when using Dict for kwargs](https://discourse.julialang.org/t/unreachable-reached-when-using-dict-for-kwargs/61635)

<div class="topic-metadata">

**Author:** [@kimauth](https://discourse.julialang.org/u/kimauth)\
**Replies:** 2\
**Last updated:** [May 22, 2021, 3:52pm UTC](https://discourse.julialang.org/t/unreachable-reached-when-using-dict-for-kwargs/61635 "2021-05-22T15:52:48Z")

</div>

I am getting an unreachable reached crash, when I convert a result from NLsolve.jl back to my custum type after calling nlsolve with a Dict containing the keyword arguments. If I give the same keyword arguments to nlsolv…

---

## [In Julia, an array can transform to a matrix, how can I do it?](https://discourse.julialang.org/t/in-julia-an-array-can-transform-to-a-matrix-how-can-i-do-it/61637)

<div class="topic-metadata">

**Author:** [@BYS](https://discourse.julialang.org/u/BYS)\
**Replies:** 4\
**Last updated:** [May 22, 2021, 2:55pm UTC](https://discourse.julialang.org/t/in-julia-an-array-can-transform-to-a-matrix-how-can-i-do-it/61637 "2021-05-22T14:55:54Z")

</div>

Hi, all In Julia, I find,if I use A=zeros(20,1); A can be a array, instead of a vector,but I want it to be a vector and I also want to use function “zeros”, How can I do it? Thanks a lot!

---

## [Reusing exact same layer and parameters](https://discourse.julialang.org/t/reusing-exact-same-layer-and-parameters/61618)

<div class="topic-metadata">

**Author:** [@crinders](https://discourse.julialang.org/u/crinders)\
**Replies:** 3\
**Last updated:** [May 22, 2021, 2:27pm UTC](https://discourse.julialang.org/t/reusing-exact-same-layer-and-parameters/61618 "2021-05-22T14:27:46Z")

</div>

I want to reuse the exact same layer in a network. But I can’t figure out whether my naive approach will do that. My toy architecture is using Flux D1 = Dense(2,2) D2 = Dense(2,2) NaiveReuse = Chain(D1, Parallel(vcat,Ch…

---

## [MethodError Vector{T} for input ::SparseArrays.SparseMatrixCSC{Float64, Int64}](https://discourse.julialang.org/t/methoderror-vector-t-for-input-sparsearrays-sparsematrixcsc-float64-int64/61600)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 4\
**Last updated:** [May 22, 2021, 1:24pm UTC](https://discourse.julialang.org/t/methoderror-vector-t-for-input-sparsearrays-sparsematrixcsc-float64-int64/61600 "2021-05-22T13:24:13Z")

</div>

Does anyone know how to fix this error? using MatrixMarket c=MatrixMarket.mmread(“c.mtx”) Vector(c) gives ERROR: MethodError: no method matching (Vector{T} where T)(::SparseArrays.SparseMatrixCSC{Float64, Int64}) …

---

## [Parsing Julia code](https://discourse.julialang.org/t/parsing-julia-code/61599)

<div class="topic-metadata">

**Author:** [@achjaj](https://discourse.julialang.org/u/achjaj)\
**Replies:** 3\
**Last updated:** [May 22, 2021, 1:15pm UTC](https://discourse.julialang.org/t/parsing-julia-code/61599 "2021-05-22T13:15:58Z")

</div>

Hello, I am working on a project where I need to parse and tokenized Julia source code. As I understand it correctly, the only available parser is the one used in REPL and is written in Scheme/Lisp. So, it looks like I n…

---

## [Gridded value at specific coordinate](https://discourse.julialang.org/t/gridded-value-at-specific-coordinate/61427)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 4\
**Last updated:** [May 22, 2021, 12:20pm UTC](https://discourse.julialang.org/t/gridded-value-at-specific-coordinate/61427 "2021-05-22T12:20:10Z")

</div>

I’m quite new to Julia. Suppose you have a 1D gridded data, say, temperature, \[23.5, 20.0, . . . \], defined at gridpoints xs = \[1.0, 2.0, 5.0, . . . \]. Assume that length(temperature) == length(xs) and that xs is monot…

---

## [Makie - DataInspector - GLFWError (PLATFORM\_ERROR)](https://discourse.julialang.org/t/makie-datainspector-glfwerror-platform-error/61630)

<div class="topic-metadata">

**Author:** [@walra356](https://discourse.julialang.org/u/walra356)\
**Replies:** 1\
**Last updated:** [May 22, 2021, 12:00pm UTC](https://discourse.julialang.org/t/makie-datainspector-glfwerror-platform-error/61630 "2021-05-22T12:00:20Z")

</div>

The DataInspector is a great new asset of Makie. I took it immediately in use. Thanks to the developers! Unfortunately, I found that after inspecting data for some time an unidentified interrupt spoils the joy with the…

---

## [Resolve sign ambiguity in SVD and Eigendecomposition](https://discourse.julialang.org/t/resolve-sign-ambiguity-in-svd-and-eigendecomposition/61484)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 13\
**Last updated:** [May 22, 2021, 11:46am UTC](https://discourse.julialang.org/t/resolve-sign-ambiguity-in-svd-and-eigendecomposition/61484 "2021-05-22T11:46:29Z")

</div>

Hello, Given a matrix A \\in \\mathbb{R}^{m\\times n}, my goal is to recover the SVD decomposition of A from the eigendecomposition of A^\\top A and A^\\top A. A compact SVD decomposition of matrix A \\in \\mathbb{R}^{m\\times…

---

## [Cannot locate artifact 'libknet8' in KNet](https://discourse.julialang.org/t/cannot-locate-artifact-libknet8-in-knet/61631)

<div class="topic-metadata">

**Author:** [@gforchini](https://discourse.julialang.org/u/gforchini)\
**Replies:** 0\
**Last updated:** [May 22, 2021, 10:10am UTC](https://discourse.julialang.org/t/cannot-locate-artifact-libknet8-in-knet/61631 "2021-05-22T10:10:09Z")

</div>

Hello, I have downloaded Knet from https://github.com/denizyuret/Knet.jl (but I have the same problem when I download Knet with Pkg.add(“Knet”)) to a Nvidia Jetson Nano (as it is an inexpensive method to finalise a Mon…

---

## [Why is this optimization problem so slow in Julia? In R it took 60s](https://discourse.julialang.org/t/why-is-this-optimization-problem-so-slow-in-julia-in-r-it-took-60s/61557)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 31\
**Last updated:** [May 22, 2021, 9:52am UTC](https://discourse.julialang.org/t/why-is-this-optimization-problem-so-slow-in-julia-in-r-it-took-60s/61557 "2021-05-22T09:52:28Z")

</div>

Update I copied the data and the code into a repo GitHub - xiaodaigh/optim-slow-julia I am trying to estimate the strength of Go player ( or any other two player broad game where the only outcomes are win or loser). M…

---

## [Colorschemes stopped working](https://discourse.julialang.org/t/colorschemes-stopped-working/61574)

<div class="topic-metadata">

**Author:** [@Tbl](https://discourse.julialang.org/u/Tbl)\
**Replies:** 5\
**Last updated:** [May 22, 2021, 4:52am UTC](https://discourse.julialang.org/t/colorschemes-stopped-working/61574 "2021-05-22T04:52:52Z")

</div>

I have a rather strange bug. For seemingly no reason everything related to colorschemes.jl stopped working for me in Julia 1.6, Plots 1.0.14. Colorschemes from ColorSchemes · Plots are not available too. For example usi…

---

## [Help with macro to construct truth tables](https://discourse.julialang.org/t/help-with-macro-to-construct-truth-tables/61610)

<div class="topic-metadata">

**Author:** [@savq](https://discourse.julialang.org/u/savq)\
**Replies:** 9\
**Last updated:** [May 22, 2021, 3:46am UTC](https://discourse.julialang.org/t/help-with-macro-to-construct-truth-tables/61610 "2021-05-22T03:46:48Z")

</div>

I’m trying to write a macro to generate truth tables. So far I’ve had success with finding the variables and evaluating the expression. However, I haven’t been able to display the truth value for individual variables. T…

---

## [Scatterplot linewidth does not disappear when render to pdf](https://discourse.julialang.org/t/scatterplot-linewidth-does-not-disappear-when-render-to-pdf/61556)

<div class="topic-metadata">

**Author:** [@andresmz](https://discourse.julialang.org/u/andresmz)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 7:58am UTC](https://discourse.julialang.org/t/scatterplot-linewidth-does-not-disappear-when-render-to-pdf/61556 "2021-05-21T07:58:39Z")

</div>

Hello. I’ve been trying to plot this database and save it on pdf. I’m not really sure why it it still shows the linewidth if I set it 0. This does not happen when I save it as a png file. Here is the code I am using: g…

---

## [Tangent on radix sort](https://discourse.julialang.org/t/tangent-on-radix-sort/61605)

<div class="topic-metadata">

**Author:** [@tkf](https://discourse.julialang.org/u/tkf)\
**Replies:** 2\
**Last updated:** [May 22, 2021, 2:23am UTC](https://discourse.julialang.org/t/tangent-on-radix-sort/61605 "2021-05-22T02:23:31Z")

</div>

By “skewed” and non-“balanced” data, are you referring to the case where the bits that discriminate elements occur at the locations closer to the least significant bits? If so, yes, it’s possible to invoke this case in …

---

## [Not-so-unusual Macro issues](https://discourse.julialang.org/t/not-so-unusual-macro-issues/61570)

<div class="topic-metadata">

**Author:** [@harris-chris](https://discourse.julialang.org/u/harris-chris)\
**Replies:** 2\
**Last updated:** [May 22, 2021, 1:36am UTC](https://discourse.julialang.org/t/not-so-unusual-macro-issues/61570 "2021-05-22T01:36:41Z")

</div>

Hello all. I’m having some macro-related issues. I’d like, if it’s even possible, to store the Expression of a function defined by the user, so I can write it to a file and use it elsewhere. I imagined that this would be…

---

## [Building Julia on windows](https://discourse.julialang.org/t/building-julia-on-windows/61608)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 0\
**Last updated:** [May 21, 2021, 10:07pm UTC](https://discourse.julialang.org/t/building-julia-on-windows/61608 "2021-05-21T22:07:03Z")

</div>

Hi, I am trying to build Julia from source on windows and it stuck for 1 hour now at the following step: mkdir -p bin include/curl lib lib/pkgconfig logs share/aclocal share/licenses/LibCURL share/man/man1 share/man/m…

---

## [Status of relaxation: NORM\_LIMIT](https://discourse.julialang.org/t/status-of-relaxation-norm-limit/61078)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 7\
**Last updated:** [May 21, 2021, 9:39pm UTC](https://discourse.julialang.org/t/status-of-relaxation-norm-limit/61078 "2021-05-21T21:39:21Z")

</div>

Hi All, I am solving an MINLP using Juniper and getting this Status of relaxation: NORM\_LIMIT any suggestions how to resolve this. Thanks

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

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