# Latest

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

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

**Page:** 1548

---

## [No more evaluation in closed module in Julia 1.5+ == no more code-gen in modules?](https://discourse.julialang.org/t/no-more-evaluation-in-closed-module-in-julia-1-5-no-more-code-gen-in-modules/51804)

<div class="topic-metadata">

**Author:** [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Replies:** 9\
**Last updated:** [December 14, 2020, 4:16pm UTC](https://discourse.julialang.org/t/no-more-evaluation-in-closed-module-in-julia-1-5-no-more-code-gen-in-modules/51804 "2020-12-14T16:16:29Z")

</div>

In some “helper package” (module) I have some functions similar to that one: function make\_polynomial(c::Array{T,1} where T\<:Number; return\_code=false) if length(c) == 1 f\_body = :($(c\[1\])) else …

---

## [In-REPL pager for Markdown](https://discourse.julialang.org/t/in-repl-pager-for-markdown/51768)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [December 14, 2020, 4:09pm UTC](https://discourse.julialang.org/t/in-repl-pager-for-markdown/51768 "2020-12-14T16:09:12Z")

</div>

I’m trying to print Markdown output to the terminal, which I can accomplish with… using Markdown md\_str = md"# My Header" display(md\_str) Ideally, I’d like to print this to a pager, not the REPL itself. However, Inter…

---

## [Multiple Constraints using JuMP for unbounded knapsack](https://discourse.julialang.org/t/multiple-constraints-using-jump-for-unbounded-knapsack/51015)

<div class="topic-metadata">

**Author:** [@TheMEGuy](https://discourse.julialang.org/u/TheMEGuy)\
**Replies:** 6\
**Last updated:** [December 14, 2020, 2:58pm UTC](https://discourse.julialang.org/t/multiple-constraints-using-jump-for-unbounded-knapsack/51015 "2020-12-14T14:58:17Z")

</div>

I am new to programming, so I hope that the description of my probleme is accurate: Based on knapsack, I used JuMP and GLPK to come up with a solution for the unbounded knapsack problem.: function unbounded\_knapsack(va…

---

## [Finding size of a google protocol buffer object](https://discourse.julialang.org/t/finding-size-of-a-google-protocol-buffer-object/51803)

<div class="topic-metadata">

**Author:** [@Josiah\_Slack](https://discourse.julialang.org/u/Josiah_Slack)\
**Replies:** 0\
**Last updated:** [December 14, 2020, 2:02pm UTC](https://discourse.julialang.org/t/finding-size-of-a-google-protocol-buffer-object/51803 "2020-12-14T14:02:10Z")

</div>

I’ve looked through ProtoBuf.jl, and nothing has jumped out. Short of calling writeproto(), is there a way of finding the size of the binary-formatted object?

---

## [Julia is Ranked 35th on the TIOBE Index](https://discourse.julialang.org/t/julia-is-ranked-35th-on-the-tiobe-index/7026)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 49\
**Last updated:** [December 14, 2020, 1:42pm UTC](https://discourse.julialang.org/t/julia-is-ranked-35th-on-the-tiobe-index/7026 "2020-12-14T13:42:07Z")

</div>

Last month we had a pretty massive blogging campaign, getting quite a few posts to the top of Hacker News in a month. The results of the most recent TIOBE index shows that this has made a sizable dent in the rankings: h…

---

## [How to use PkgTemplates.jl for Gitlab?](https://discourse.julialang.org/t/how-to-use-pkgtemplates-jl-for-gitlab/51797)

<div class="topic-metadata">

**Author:** [@GerhardTotschnig](https://discourse.julialang.org/u/GerhardTotschnig)\
**Replies:** 2\
**Last updated:** [December 14, 2020, 1:24pm UTC](https://discourse.julialang.org/t/how-to-use-pkgtemplates-jl-for-gitlab/51797 "2020-12-14T13:24:20Z")

</div>

I am not sure how to use PkgTemplates.jl with gitlab. It would be great to get a tip here. Best Greetings Gerhard

---

## [Can anyone help? when I tried to download a picture file from the web, I failed to do so and got the following messages:](https://discourse.julialang.org/t/can-anyone-help-when-i-tried-to-download-a-picture-file-from-the-web-i-failed-to-do-so-and-got-the-following-messages/51726)

<div class="topic-metadata">

**Author:** [@David\_Wang1](https://discourse.julialang.org/u/David_Wang1)\
**Replies:** 11\
**Last updated:** [December 14, 2020, 1:09pm UTC](https://discourse.julialang.org/t/can-anyone-help-when-i-tried-to-download-a-picture-file-from-the-web-i-failed-to-do-so-and-got-the-following-messages/51726 "2020-12-14T13:09:44Z")

</div>

I am following the class of " Working with images in Julia | Week 1 | 18.S191 MIT Fall 2020 | Grant Sanderson" and tried to write the code in my Julia notebook as:url = “https://i.imgur.com/VGPeJ6s.jpg” , and "download(u…

---

## [\[Article\] Dear Google Cloud: Your Deprecation Policy is Killing You](https://discourse.julialang.org/t/article-dear-google-cloud-your-deprecation-policy-is-killing-you/45019)

<div class="topic-metadata">

**Author:** [@anon67531922](https://discourse.julialang.org/u/anon67531922)\
**Replies:** 57\
**Last updated:** [December 14, 2020, 11:51am UTC](https://discourse.julialang.org/t/article-dear-google-cloud-your-deprecation-policy-is-killing-you/45019 "2020-12-14T11:51:30Z")

</div>

This article is a work of art: Dear Google Cloud: Your Deprecation Policy is Killing You I never really thought much about this topic, but this article picqued my curiosity. Are we (Julia community) doing enough think…

---

## [Installing JuliaPro on Ubuntu](https://discourse.julialang.org/t/installing-juliapro-on-ubuntu/51790)

<div class="topic-metadata">

**Author:** [@Aman\_Atman](https://discourse.julialang.org/u/Aman_Atman)\
**Replies:** 2\
**Last updated:** [December 14, 2020, 10:41am UTC](https://discourse.julialang.org/t/installing-juliapro-on-ubuntu/51790 "2020-12-14T10:41:42Z")

</div>

I am using ubuntu 16.04. I downloaded JuliaPro from website. Following the steps, I ran $ ./Launch\_JuliaPro bash: ./Launch\_JuliaPro: Permission denied so, I added sudo $ sudo ./Launch\_JuliaPro \[30158:1214/124559.500…

---

## [Julia version change \[how much change , programmer should fear\]](https://discourse.julialang.org/t/julia-version-change-how-much-change-programmer-should-fear/51775)

<div class="topic-metadata">

**Author:** [@vedasulo](https://discourse.julialang.org/u/vedasulo)\
**Replies:** 4\
**Last updated:** [December 14, 2020, 10:40am UTC](https://discourse.julialang.org/t/julia-version-change-how-much-change-programmer-should-fear/51775 "2020-12-14T10:40:40Z")

</div>

I am quite learning julia. But It seems it is developing. I became fear, If suddenly julia release julia 3.0 version what would happen to older version like (python 2 vs python 3) python2 nobody cares now. and why Juli…

---

## [Extracting hashtags from text: Flattening in Query.jl](https://discourse.julialang.org/t/extracting-hashtags-from-text-flattening-in-query-jl/51456)

<div class="topic-metadata">

**Author:** [@v-ji](https://discourse.julialang.org/u/v-ji)\
**Replies:** 3\
**Last updated:** [December 14, 2020, 10:31am UTC](https://discourse.julialang.org/t/extracting-hashtags-from-text-flattening-in-query-jl/51456 "2020-12-14T10:31:55Z")

</div>

Hi everyone! I’m currently trying to use extract hashtags from text. While I’ve figured out a working solution, I can’t shake the feeling there’s a more elegant solution. I’m used to the Tidyverse in R, which is why I’m …

---

## [Trying to train with Flux.jl](https://discourse.julialang.org/t/trying-to-train-with-flux-jl/51786)

<div class="topic-metadata">

**Author:** [@Ayush\_Rawat](https://discourse.julialang.org/u/Ayush_Rawat)\
**Replies:** 3\
**Last updated:** [December 14, 2020, 10:09am UTC](https://discourse.julialang.org/t/trying-to-train-with-flux-jl/51786 "2020-12-14T10:09:26Z")

</div>

Taking my first steps with Flux.jl, I’m trying to train a simple model. I’ve got my training data in an array data, containing Float64 arrays with 6 entries each: And am just trying to put it through a couple dense …

---

## [Vectorize optimize](https://discourse.julialang.org/t/vectorize-optimize/51513)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 6\
**Last updated:** [December 14, 2020, 9:58am UTC](https://discourse.julialang.org/t/vectorize-optimize/51513 "2020-12-14T09:58:02Z")

</div>

Is there a better way to write this? @pipe \[(1,2),(2,3)\] .|\> (f(x) = (x-\_\[1\])^2 + (x-\_\[2\])^2 ) .|\> optimize(\_, -10,10).minimizer I’d like to minimize a function over a given variable for different values of the oth…

---

## [Julia wrapper for libssh?](https://discourse.julialang.org/t/julia-wrapper-for-libssh/46041)

<div class="topic-metadata">

**Author:** [@grero](https://discourse.julialang.org/u/grero)\
**Replies:** 4\
**Last updated:** [December 14, 2020, 9:03am UTC](https://discourse.julialang.org/t/julia-wrapper-for-libssh/46041 "2020-12-14T09:03:03Z")

</div>

Is there a julia wrapper for libssh somewhere? I would like to be able to transfer a part of a large file located on a remote server using sftp (the file itself could be 100G, but I might be interested in a small subset …

---

## [Understanding when GC.gc() frees memory and doesn't](https://discourse.julialang.org/t/understanding-when-gc-gc-frees-memory-and-doesnt/51682)

<div class="topic-metadata">

**Author:** [@tbenst](https://discourse.julialang.org/u/tbenst)\
**Replies:** 1\
**Last updated:** [December 14, 2020, 8:11am UTC](https://discourse.julialang.org/t/understanding-when-gc-gc-frees-memory-and-doesnt/51682 "2020-12-14T08:11:30Z")

</div>

Consider the two code chunks below. When run in vscode, the first fails to free memory as reported by htop, while the second frees memory successfully. This is not just a reporting issue–if I create another large array i…

---

## [Fast CNN inference](https://discourse.julialang.org/t/fast-cnn-inference/51761)

<div class="topic-metadata">

**Author:** [@Fabrice\_Rosay](https://discourse.julialang.org/u/Fabrice_Rosay)\
**Replies:** 3\
**Last updated:** [December 14, 2020, 8:01am UTC](https://discourse.julialang.org/t/fast-cnn-inference/51761 "2020-12-14T08:01:22Z")

</div>

Hi, I’m currently using Knet and Flux for doing alphazero like calculations. As the botlleneck is the many inferences needed i was wondering if it would be possible to wrap TensorRT like https://github.com/zerollzeng/ti…

---

## [Method dispatch](https://discourse.julialang.org/t/method-dispatch/51709)

<div class="topic-metadata">

**Author:** [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Replies:** 6\
**Last updated:** [December 14, 2020, 3:16am UTC](https://discourse.julialang.org/t/method-dispatch/51709 "2020-12-14T03:16:29Z")

</div>

Julia is a lot about multiple dispatching and I am having trouble to understand what an idiomatic way of using mulitple dispatch is. My question is for small methods if I should define two different methods or if I shou…

---

## [Changing many rows to single row julia1.5.3](https://discourse.julialang.org/t/changing-many-rows-to-single-row-julia1-5-3/51615)

<div class="topic-metadata">

**Author:** [@orthoeng](https://discourse.julialang.org/u/orthoeng)\
**Replies:** 8\
**Last updated:** [December 13, 2020, 11:51pm UTC](https://discourse.julialang.org/t/changing-many-rows-to-single-row-julia1-5-3/51615 "2020-12-13T23:51:12Z")

</div>

I have a dataset that is 1miil x 70 but with in the rows many columns have duplicate entries. Likewise there are many rows that are unique columns also. Example | ID | age | location | street …

---

## [Warning: macos 10.12.\* bug with SharedArray: shm\_open() failed](https://discourse.julialang.org/t/warning-macos-10-12-bug-with-sharedarray-shm-open-failed/10471)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 3\
**Last updated:** [December 13, 2020, 10:23pm UTC](https://discourse.julialang.org/t/warning-macos-10-12-bug-with-sharedarray-shm-open-failed/10471 "2020-12-13T22:23:38Z")

</div>

The following program triggers a bug in macos 10.12.\*, but not in 10.13.\* : (nprocs()\>1) || addprocs(1) function sharedarray\_parallel\_sum() sa = SharedArray{Float64}(5) @sync @parallel for i=1:5; sa\[i\] = timing…

---

## [Find the asymptotes of a function](https://discourse.julialang.org/t/find-the-asymptotes-of-a-function/51772)

<div class="topic-metadata">

**Author:** [@JuliaLearner](https://discourse.julialang.org/u/JuliaLearner)\
**Replies:** 2\
**Last updated:** [December 13, 2020, 9:32pm UTC](https://discourse.julialang.org/t/find-the-asymptotes-of-a-function/51772 "2020-12-13T21:32:14Z")

</div>

How can we find the asymtotes of a function? Especially curvilinear asymtotes.

---

## [GenericLinearAlgebra overwrites methods from GenericSchur and GenericSVD](https://discourse.julialang.org/t/genericlinearalgebra-overwrites-methods-from-genericschur-and-genericsvd/35056)

<div class="topic-metadata">

**Author:** [@pearlzli](https://discourse.julialang.org/u/pearlzli)\
**Replies:** 4\
**Last updated:** [December 13, 2020, 8:30pm UTC](https://discourse.julialang.org/t/genericlinearalgebra-overwrites-methods-from-genericschur-and-genericsvd/35056 "2020-12-13T20:30:43Z")

</div>

I’m working on a project that uses both GenericLinearAlgebra (dependency of ConvexHull) and GenericSVD and GenericSchur (dependencies of CSVFiles). When I load my project, I get a lot of long warnings about GenericLinear…

---

## [How to develop OpenAI Gym in Julia?](https://discourse.julialang.org/t/how-to-develop-openai-gym-in-julia/51763)

<div class="topic-metadata">

**Author:** [@Aman\_Atman](https://discourse.julialang.org/u/Aman_Atman)\
**Replies:** 1\
**Last updated:** [December 13, 2020, 7:51pm UTC](https://discourse.julialang.org/t/how-to-develop-openai-gym-in-julia/51763 "2020-12-13T19:51:31Z")

</div>

I want to develop an environment in Julia. I saw this was present as one idea for GSoC in 2020. Thank you, Aman

---

## [How to let the compiler know that a global variable is type-stable for duration of function](https://discourse.julialang.org/t/how-to-let-the-compiler-know-that-a-global-variable-is-type-stable-for-duration-of-function/51732)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 6\
**Last updated:** [December 13, 2020, 6:43pm UTC](https://discourse.julialang.org/t/how-to-let-the-compiler-know-that-a-global-variable-is-type-stable-for-duration-of-function/51732 "2020-12-13T18:43:02Z")

</div>

I’m trying to run a simulation on a process where a process stream can contain various chemical components. For example, ethanol (C2H5OH) and water (H2). There’s a lot of places in the simulation where it makes sense to …

---

## [Just curious: why most of packages in github.com/JuliaQuant organization not updated for a quite long time](https://discourse.julialang.org/t/just-curious-why-most-of-packages-in-github-com-juliaquant-organization-not-updated-for-a-quite-long-time/51707)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 1\
**Last updated:** [December 13, 2020, 4:41pm UTC](https://discourse.julialang.org/t/just-curious-why-most-of-packages-in-github-com-juliaquant-organization-not-updated-for-a-quite-long-time/51707 "2020-12-13T16:41:53Z")

</div>

I am searching for an alternative to Backtrader in Python, or any backtesting framework in Julia, without any luck. How do people here in Julia do trade backtesting?

---

## [Error when using 'All' in 'DataFrames.combine'](https://discourse.julialang.org/t/error-when-using-all-in-dataframes-combine/49045)

<div class="topic-metadata">

**Author:** [@metab0t](https://discourse.julialang.org/u/metab0t)\
**Replies:** 2\
**Last updated:** [December 13, 2020, 3:47pm UTC](https://discourse.julialang.org/t/error-when-using-all-in-dataframes-combine/49045 "2020-12-13T15:47:53Z")

</div>

I try the following code: using DataFrames df = DataFrame(a=1:3, b=4:6) combine(df, All(:) .=\> sum) and get error: ERROR: MethodError: no method matching length(::All{Tuple{Colon}}) Closest candidates are: length(::…

---

## [Pycall Package install error](https://discourse.julialang.org/t/pycall-package-install-error/51760)

<div class="topic-metadata">

**Author:** [@R\_Surya\_Narayan](https://discourse.julialang.org/u/R_Surya_Narayan)\
**Replies:** 4\
**Last updated:** [December 13, 2020, 3:38pm UTC](https://discourse.julialang.org/t/pycall-package-install-error/51760 "2020-12-13T15:38:21Z")

</div>

Hello everyone, I am trying to call cantera (a python package) from Julia using PyCall, however when I run Pkg.add("PyCall"); I get the following error: Resolving package versions... ERROR: Unsatisfiable requirements …

---

## ["Extendable" plot width in Gaston, in Pluto](https://discourse.julialang.org/t/extendable-plot-width-in-gaston-in-pluto/51598)

<div class="topic-metadata">

**Author:** [@ChetanVardhan](https://discourse.julialang.org/u/ChetanVardhan)\
**Replies:** 3\
**Last updated:** [December 13, 2020, 2:05pm UTC](https://discourse.julialang.org/t/extendable-plot-width-in-gaston-in-pluto/51598 "2020-12-13T14:05:38Z")

</div>

@mbaz or someone who has used Gaston with Pluto… I was wondering, how can I extend the plot window in Gaston! I mean, if the plotted image size is large then, is there any way to get something like this?

---

## [General method for new structure](https://discourse.julialang.org/t/general-method-for-new-structure/51666)

<div class="topic-metadata">

**Author:** [@udistr](https://discourse.julialang.org/u/udistr)\
**Replies:** 4\
**Last updated:** [December 13, 2020, 1:57pm UTC](https://discourse.julialang.org/t/general-method-for-new-structure/51666 "2020-12-13T13:57:02Z")

</div>

Hi, I have made the CyclicArray type (https://github.com/udistr/CyclicArrays.jl) which defines a new structure: struct CyclicArray{T,N} \<: AbstractArray{T,N} data::AbstractArray{T,N} connections end Right now, I de…

---

## [AMDGPU install errors](https://discourse.julialang.org/t/amdgpu-install-errors/51492)

<div class="topic-metadata">

**Author:** [@saltchunkmary](https://discourse.julialang.org/u/saltchunkmary)\
**Replies:** 12\
**Last updated:** [December 13, 2020, 1:25pm UTC](https://discourse.julialang.org/t/amdgpu-install-errors/51492 "2020-12-13T13:25:59Z")

</div>

Hi, first time poster here… not that that means anything… in need of a little help. Whilst building AMDGPU I am getting errors as below: ┌ Error: Error building AMDGPU: │ WARNING: redefinition of constant config\_path.…

---

## [Task wrapping and serialization](https://discourse.julialang.org/t/task-wrapping-and-serialization/51753)

<div class="topic-metadata">

**Author:** [@tro3](https://discourse.julialang.org/u/tro3)\
**Replies:** 1\
**Last updated:** [December 13, 2020, 11:32am UTC](https://discourse.julialang.org/t/task-wrapping-and-serialization/51753 "2020-12-13T11:32:50Z")

</div>

Looking for ideas on what direction to take. I am working on a PR to fix up the @sync/@async disappearing exception problem. Right now, if an async task throws an exception while another async task is waiting for it an…

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

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