# Latest

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

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

**Page:** 1406

---

## [Formatting Pluto widgets](https://discourse.julialang.org/t/formatting-pluto-widgets/59981)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 6\
**Last updated:** [May 1, 2021, 4:19pm UTC](https://discourse.julialang.org/t/formatting-pluto-widgets/59981 "2021-05-01T16:19:21Z")

</div>

Hello I like Pluto. Would there be a way to customize the formatting of Pluto widgets. Today I have these hopes: For a NumberField: controling its width, the border color, the alignment to the right For several Numb…

---

## [Which optimization package should I use?](https://discourse.julialang.org/t/which-optimization-package-should-i-use/60230)

<div class="topic-metadata">

**Author:** [@Piotr](https://discourse.julialang.org/u/Piotr)\
**Replies:** 13\
**Last updated:** [May 1, 2021, 3:05pm UTC](https://discourse.julialang.org/t/which-optimization-package-should-i-use/60230 "2021-05-01T15:05:25Z")

</div>

Hello everyone, I have an optimization (minimization) problem\* in Julia to solve and I’m a looking for a package with which, most importantly, I can do it fast. Specifically: the problem is in two variables (but it m…

---

## [Opening file "matpower/case30.m": No such file or directory](https://discourse.julialang.org/t/opening-file-matpower-case30-m-no-such-file-or-directory/46237)

<div class="topic-metadata">

**Author:** [@zlq178](https://discourse.julialang.org/u/zlq178)\
**Replies:** 5\
**Last updated:** [May 1, 2021, 1:43pm UTC](https://discourse.julialang.org/t/opening-file-matpower-case30-m-no-such-file-or-directory/46237 "2021-05-01T13:43:20Z")

</div>

‘’’ ##code using PowerModels using Ipopt result=run\_ac\_opf(“matpower/case30.m”, with\_optimizer(Ipopt.Optimizer)) ‘’’ errors: question:How could I add all files about “matpower/caseXX.m”?The document has said the …

---

## [How is Matrix defined](https://discourse.julialang.org/t/how-is-matrix-defined/60325)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 8\
**Last updated:** [May 1, 2021, 12:56pm UTC](https://discourse.julialang.org/t/how-is-matrix-defined/60325 "2021-05-01T12:56:42Z")

</div>

I noticed that Matrix prints out that it is an alias. How would one define an alias for a custom type? julia\> Matrix{Int} Matrix{Int64} (alias for Array{Int64, 2})

---

## [Push a project to a gist automatically?](https://discourse.julialang.org/t/push-a-project-to-a-gist-automatically/60371)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 2\
**Last updated:** [May 1, 2021, 12:24pm UTC](https://discourse.julialang.org/t/push-a-project-to-a-gist-automatically/60371 "2021-05-01T12:24:25Z")

</div>

Does anybody have something set up to create gist from the command line (relevant google search) and push a directory with Project.toml to it?

---

## [Function that takes vector of parameterically typed values](https://discourse.julialang.org/t/function-that-takes-vector-of-parameterically-typed-values/60374)

<div class="topic-metadata">

**Author:** [@HiroIshida](https://discourse.julialang.org/u/HiroIshida)\
**Replies:** 1\
**Last updated:** [May 1, 2021, 11:35am UTC](https://discourse.julialang.org/t/function-that-takes-vector-of-parameterically-typed-values/60374 "2021-05-01T11:35:49Z")

</div>

Let us consider the following types abstract type A end struct A1 \<: A end struct A2 \<: A end struct B{T\<:A} type::T end Now what I want to do is write a function as narrowest as possible that accepts both vec1 an…

---

## [Nonlinear PDE with neural network](https://discourse.julialang.org/t/nonlinear-pde-with-neural-network/60358)

<div class="topic-metadata">

**Author:** [@narayan](https://discourse.julialang.org/u/narayan)\
**Replies:** 1\
**Last updated:** [May 1, 2021, 11:10am UTC](https://discourse.julialang.org/t/nonlinear-pde-with-neural-network/60358 "2021-05-01T11:10:09Z")

</div>

can we solve nonlinear PDE with the package NeuralPDE.jl? If yes, then how?

---

## [Wrapping or pipping a compiled fortran code?](https://discourse.julialang.org/t/wrapping-or-pipping-a-compiled-fortran-code/60300)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 14\
**Last updated:** [May 1, 2021, 10:36am UTC](https://discourse.julialang.org/t/wrapping-or-pipping-a-compiled-fortran-code/60300 "2021-05-01T10:36:00Z")

</div>

Hi eveyone. A collague gave me a cool little code that I need to call from Julia. It is a fortran code and (after compilation) works as a little text based interface. It asks for a T and P value and then for another 2…

---

## [\[ANN\] ProtoGrad.jl, the (n+1)th ML/optimization package](https://discourse.julialang.org/t/ann-protograd-jl-the-n-1-th-ml-optimization-package/59917)

<div class="topic-metadata">

**Author:** [@lostella](https://discourse.julialang.org/u/lostella)\
**Replies:** 9\
**Last updated:** [May 1, 2021, 7:04am UTC](https://discourse.julialang.org/t/ann-protograd-jl-the-n-1-th-ml-optimization-package/59917 "2021-05-01T07:04:33Z")

</div>

Hey there :wave: I just published ProtoGrad, a package for gradient-based ML and optimization (yes, another one). It is not registered. I developed it in my spare time (such a scarce resource!) mainly as a playground fo…

---

## [How well Apache Arrow’s zero copy methodology is supported?](https://discourse.julialang.org/t/how-well-apache-arrow-s-zero-copy-methodology-is-supported/59797)

<div class="topic-metadata">

**Author:** [@Sami](https://discourse.julialang.org/u/Sami)\
**Replies:** 24\
**Last updated:** [May 1, 2021, 5:08am UTC](https://discourse.julialang.org/t/how-well-apache-arrow-s-zero-copy-methodology-is-supported/59797 "2021-05-01T05:08:50Z")

</div>

I made a large Arrow file that doesn’t fit into the RAM of my PC. The file is about 13 GB and 170 million rows. I wanted to test how well I can analyze “big data” with Julia’s Arrow.jl package. After reading the file (a…

---

## [Key map error](https://discourse.julialang.org/t/key-map-error/60353)

<div class="topic-metadata">

**Author:** [@Sumanshekhar17](https://discourse.julialang.org/u/Sumanshekhar17)\
**Replies:** 0\
**Last updated:** [May 1, 2021, 2:30am UTC](https://discourse.julialang.org/t/key-map-error/60353 "2021-05-01T02:30:09Z")

</div>

Hi all, I am facing difficulty in running any command in julia on my cluster. I get this error on every statement - julia\> exit() ┌ Error: Error in the keymap │ exception = │ SystemError: flush: Input/output erro…

---

## [Revisiting Rock, Paper, Scissors](https://discourse.julialang.org/t/revisiting-rock-paper-scissors/60347)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 5\
**Last updated:** [May 1, 2021, 12:22am UTC](https://discourse.julialang.org/t/revisiting-rock-paper-scissors/60347 "2021-05-01T00:22:31Z")

</div>

In 2017 @giordano (with 2019 @Mason update) wrote about implementing Rock, Paper, Scissors. Using v1.7 or v1.6, can we do this any better (more: elegantly, performantly, type-stable, gamelike)? Are there new (or better…

---

## [Julian design for API library with Websocket client](https://discourse.julialang.org/t/julian-design-for-api-library-with-websocket-client/60281)

<div class="topic-metadata">

**Author:** [@Spirarel](https://discourse.julialang.org/u/Spirarel)\
**Replies:** 2\
**Last updated:** [May 1, 2021, 12:00am UTC](https://discourse.julialang.org/t/julian-design-for-api-library-with-websocket-client/60281 "2021-05-01T00:00:15Z")

</div>

I’m writing a Julia library to interact with an API that communicates via HTTP.Websockets. I’m struggling to find good, non-toy-repl, examples that illustrate the kind of contract a Julia dev would expect. In OO land it’…

---

## [Broadcasting](https://discourse.julialang.org/t/broadcasting/60350)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 6\
**Last updated:** [April 30, 2021, 10:27pm UTC](https://discourse.julialang.org/t/broadcasting/60350 "2021-04-30T22:27:24Z")

</div>

I’m trying to understand broadcasting better. Here is a simple task I was working on recently: function basis(n,x) return cos(n \* pi \* x) end x = rand(10) samples = \[basis.(n,x) for n=1:5\] 1- I was hoping to p…

---

## [Macro question](https://discourse.julialang.org/t/macro-question/60348)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 9:55pm UTC](https://discourse.julialang.org/t/macro-question/60348 "2021-04-30T21:55:11Z")

</div>

module Foo x = 1 end @eval Foo begin macro m(y) y end @m(x) end ERROR: LoadError: LoadError: UndefVarError: @m not defined I thought this would define the @m macro in the Foo module, and then be able to access …

---

## [How to convert h5 to csv](https://discourse.julialang.org/t/how-to-convert-h5-to-csv/60346)

<div class="topic-metadata">

**Author:** [@T-Shino-0603](https://discourse.julialang.org/u/T-Shino-0603)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 9:17pm UTC](https://discourse.julialang.org/t/how-to-convert-h5-to-csv/60346 "2021-04-30T21:17:16Z")

</div>

My question is very simple. I have a h5 file with the following structure. Dict{String,Any}("mb" =\> MeansBands class: obs product: forecast cond: none para: full dates: 2021-03-31 - 2030-12-31 # of variable…

---

## [Include file differently when within a module](https://discourse.julialang.org/t/include-file-differently-when-within-a-module/60341)

<div class="topic-metadata">

**Author:** [@pg261](https://discourse.julialang.org/u/pg261)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 8:57pm UTC](https://discourse.julialang.org/t/include-file-differently-when-within-a-module/60341 "2021-04-30T20:57:04Z")

</div>

Hi ! I want to include a .jl file in two different ways, according as it is included within a module or on its own. I know this sounds confusing ; here is a way to do it, which I think is awkward, and I’m looking for so…

---

## [\[ANN\] New version of Faker.jl v0.3](https://discourse.julialang.org/t/ann-new-version-of-faker-jl-v0-3/60340)

<div class="topic-metadata">

**Author:** [@codeneomatrix](https://discourse.julialang.org/u/codeneomatrix)\
**Replies:** 0\
**Last updated:** [April 30, 2021, 7:55pm UTC](https://discourse.julialang.org/t/ann-new-version-of-faker-jl-v0-3/60340 "2021-04-30T19:55:41Z")

</div>

Hi all, Faker is a random data generator. Faker will be of use to you, whether you need to start your database, test the operation of its services or build documents automatically. I am pleased to announce version 0.3,…

---

## [Long fetching on local package update](https://discourse.julialang.org/t/long-fetching-on-local-package-update/60330)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 7:08pm UTC](https://discourse.julialang.org/t/long-fetching-on-local-package-update/60330 "2021-04-30T19:08:10Z")

</div>

Hi, I was just wondering if I have set up something wrong if this happens: Context : this package is stored locally on my computer, I frequently change it so every time I do a commit, I must update it. But there is…

---

## [Function for finding addition decompositions of an integer](https://discourse.julialang.org/t/function-for-finding-addition-decompositions-of-an-integer/60295)

<div class="topic-metadata">

**Author:** [@1112](https://discourse.julialang.org/u/1112)\
**Replies:** 19\
**Last updated:** [April 30, 2021, 6:47pm UTC](https://discourse.julialang.org/t/function-for-finding-addition-decompositions-of-an-integer/60295 "2021-04-30T18:47:54Z")

</div>

Hello. Please tell me if Julia has a function for splitting a number into the sum of its terms (preferably without repetitions) Example: fun(5) \[1,4\], \[2,3\] fun(7) \[1,6\], \[2,5\], \[3,4\], \[1,4,2\] fun(10) \[1,9\], \[2,8\]…

---

## [Plotly hovermode](https://discourse.julialang.org/t/plotly-hovermode/60336)

<div class="topic-metadata">

**Author:** [@cyrieln](https://discourse.julialang.org/u/cyrieln)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 6:25pm UTC](https://discourse.julialang.org/t/plotly-hovermode/60336 "2021-04-30T18:25:36Z")

</div>

Hi there! I was wondering if it is possible to change Plots’ plotlyjs default hovermode to closest. I have a scatterplot with thousands of points and I’d like to show hover info on each point but only the closest one. R…

---

## [LoadError for LinearAlgebra package ONLY when running tests from pkg manager](https://discourse.julialang.org/t/loaderror-for-linearalgebra-package-only-when-running-tests-from-pkg-manager/60335)

<div class="topic-metadata">

**Author:** [@justinsgray](https://discourse.julialang.org/u/justinsgray)\
**Replies:** 0\
**Last updated:** [April 30, 2021, 6:21pm UTC](https://discourse.julialang.org/t/loaderror-for-linearalgebra-package-only-when-running-tests-from-pkg-manager/60335 "2021-04-30T18:21:55Z")

</div>

Im setting up a package called toolpath, and writing tests for it. The tests run fine with no LoadErrors if I call them manually from the REPL using an include call. They also run fine from the command line like this: ju…

---

## [Pull DataFrames columns to the front](https://discourse.julialang.org/t/pull-dataframes-columns-to-the-front/60327)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 5\
**Last updated:** [April 30, 2021, 4:40pm UTC](https://discourse.julialang.org/t/pull-dataframes-columns-to-the-front/60327 "2021-04-30T16:40:25Z")

</div>

I often need to pull certain DataFrames columns to the front and do this via replace with Not. I wonder if there is a more readable way to do it. julia\> using DataFrames julia\> df = DataFrame(D=\[1\], E=\[2\], C=\[3\], A=\[4\]…

---

## [How to execute julia code in a bash shell script itself](https://discourse.julialang.org/t/how-to-execute-julia-code-in-a-bash-shell-script-itself/30848)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 8\
**Last updated:** [April 30, 2021, 4:18pm UTC](https://discourse.julialang.org/t/how-to-execute-julia-code-in-a-bash-shell-script-itself/30848 "2021-04-30T16:18:12Z")

</div>

$ cat zzz #!/bin/bash /usr/bin/tail +4 "$0" | julia exit println("hello world from a bash script") versioninfo() Dont forget to $ chmod u+x zzz Sample run $ ./zzz hello world from a bash script Julia Version 1.2.0 Co…

---

## [Efficient eval, splat, eval?](https://discourse.julialang.org/t/efficient-eval-splat-eval/60323)

<div class="topic-metadata">

**Author:** [@mewilhel](https://discourse.julialang.org/u/mewilhel)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 3:23pm UTC](https://discourse.julialang.org/t/efficient-eval-splat-eval/60323 "2021-04-30T15:23:53Z")

</div>

Essentially, I’d like to perform the following snippet of code without allocating or creating an intermediate array (temp): x = Int\[1,2\] # could be of any length n (n is only known at runtime) temp = f.(x) #…

---

## [\[PyCall\] Julia Exception to Python exception](https://discourse.julialang.org/t/pycall-julia-exception-to-python-exception/60320)

<div class="topic-metadata">

**Author:** [@Mrion](https://discourse.julialang.org/u/Mrion)\
**Replies:** 0\
**Last updated:** [April 30, 2021, 2:39pm UTC](https://discourse.julialang.org/t/pycall-julia-exception-to-python-exception/60320 "2021-04-30T14:39:05Z")

</div>

Hello! I want to create python exception from Julia exception with preserving backtrace (writing my Julia api for sentry using python sdk). Is it possible? How could I achieve that?

---

## [Sort dataframe by column values](https://discourse.julialang.org/t/sort-dataframe-by-column-values/60318)

<div class="topic-metadata">

**Author:** [@Shazman](https://discourse.julialang.org/u/Shazman)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 2:20pm UTC](https://discourse.julialang.org/t/sort-dataframe-by-column-values/60318 "2021-04-30T14:20:17Z")

</div>

HI I want to sort the data A by column value in column ID. so the new data will have only one ID with numbers for each ID how can I do that? thank you in advance. data A 27856×2 DataFrame Row │ ID numbers │…

---

## [\[ANN\] TrackingTimers.jl](https://discourse.julialang.org/t/ann-trackingtimers-jl/60313)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 2:11pm UTC](https://discourse.julialang.org/t/ann-trackingtimers-jl/60313 "2021-04-30T14:11:29Z")

</div>

Repo: https://github.com/ericphanson/TrackingTimers.jl TrackingTimers.jl is a very simple package that provides an easy way to “instrument” a function so that whenever it is called timing data (from @timed) for that cal…

---

## [Matrix of downstream nodes using LightGraphs](https://discourse.julialang.org/t/matrix-of-downstream-nodes-using-lightgraphs/60314)

<div class="topic-metadata">

**Author:** [@Cappuccio](https://discourse.julialang.org/u/Cappuccio)\
**Replies:** 0\
**Last updated:** [April 30, 2021, 1:55pm UTC](https://discourse.julialang.org/t/matrix-of-downstream-nodes-using-lightgraphs/60314 "2021-04-30T13:55:14Z")

</div>

Does anyone have an idea as to how you would create a vector of ‘downstream nodes’ for a given node in a network, using LightGraphs? For example, see the network attached, all downstream nodes of 17 would be \[19, 20, …

---

## [Alternative to \`deps/build.jl\` to download and process data](https://discourse.julialang.org/t/alternative-to-deps-build-jl-to-download-and-process-data/60309)

<div class="topic-metadata">

**Author:** [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 1:46pm UTC](https://discourse.julialang.org/t/alternative-to-deps-build-jl-to-download-and-process-data/60309 "2021-04-30T13:46:31Z")

</div>

So far, binary dependencies of ArcadeLearningEnvironment are downloaded and processed during the build step. Processing consists basically of unrar, unzip, renaming files based on md5 sums and deleting obsolete files. Th…

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

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