# Latest

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

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

**Page:** 1824

---

## [Extracting HREFs from HTML?](https://discourse.julialang.org/t/extracting-hrefs-from-html/33670)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 0\
**Last updated:** [January 22, 2020, 5:10pm UTC](https://discourse.julialang.org/t/extracting-hrefs-from-html/33670 "2020-01-22T17:10:07Z")

</div>

Do you know examples of extracting hrefs (links) from html doc ? Regx or some package? Thanks, Paul

---

## [Stochastic programming UndefVarError](https://discourse.julialang.org/t/stochastic-programming-undefvarerror/34608)

<div class="topic-metadata">

**Author:** [@bandaya](https://discourse.julialang.org/u/bandaya)\
**Replies:** 4\
**Last updated:** [February 15, 2020, 6:09pm UTC](https://discourse.julialang.org/t/stochastic-programming-undefvarerror/34608 "2020-02-15T18:09:02Z")

</div>

Hi, I am looking at this package StochasticPrograms and I tried to run the farmer example given on the link below. I am getting an error message: “UndefVarError: @stochastic\_model not defined”. This line in the code ma…

---

## [How to stop the notification of julia extension of vscode about "help to improve ..." without accepting it](https://discourse.julialang.org/t/how-to-stop-the-notification-of-julia-extension-of-vscode-about-help-to-improve-without-accepting-it/34671)

<div class="topic-metadata">

**Author:** [@AmirHosein](https://discourse.julialang.org/u/AmirHosein)\
**Replies:** 4\
**Last updated:** [February 15, 2020, 5:13pm UTC](https://discourse.julialang.org/t/how-to-stop-the-notification-of-julia-extension-of-vscode-about-help-to-improve-without-accepting-it/34671 "2020-02-15T17:13:37Z")

</div>

If you are using Julia on VS Code, then you are aware of the automatic notification of the Julia extension which asks you the following; To help improve the julia extension, you can anonymously send usage statistics to…

---

## [Best strategy to profile parallel code](https://discourse.julialang.org/t/best-strategy-to-profile-parallel-code/34582)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 1\
**Last updated:** [February 15, 2020, 5:02pm UTC](https://discourse.julialang.org/t/best-strategy-to-profile-parallel-code/34582 "2020-02-15T17:02:08Z")

</div>

Does anyone know a relatively cheap way to profile the parallel code? I’ve seen some old thread on StackOverflow: Julia: How to profile parallel code. The suggestion there was to add profiling to the functions which are…

---

## [Why is this case type-unstable?](https://discourse.julialang.org/t/why-is-this-case-type-unstable/34648)

<div class="topic-metadata">

**Author:** [@rvignolo](https://discourse.julialang.org/u/rvignolo)\
**Replies:** 6\
**Last updated:** [February 15, 2020, 4:42pm UTC](https://discourse.julialang.org/t/why-is-this-case-type-unstable/34648 "2020-02-15T16:42:28Z")

</div>

The following MWE behaves unexpectedly (for me): julia\> function f(t) return t end f (generic function with 1 method) julia\> @code\_warntype sum(f(1) for i in 1:2) Variables #self#::Core.Compiler.Const…

---

## [Optimization tips for my julia code. Can I make it even faster and/or memory efficient?](https://discourse.julialang.org/t/optimization-tips-for-my-julia-code-can-i-make-it-even-faster-and-or-memory-efficient/34614)

<div class="topic-metadata">

**Author:** [@PyDataBlog](https://discourse.julialang.org/u/PyDataBlog)\
**Replies:** 24\
**Last updated:** [February 15, 2020, 2:22pm UTC](https://discourse.julialang.org/t/optimization-tips-for-my-julia-code-can-i-make-it-even-faster-and-or-memory-efficient/34614 "2020-02-15T14:22:49Z")

</div>

Hi everyone, I have been learning Julia since January by trying to implement classic machine learning algorithms from scratch. My latest project is the KMeans clustering algorithm. I have been successful with this imple…

---

## [PlotlyJS: How to add another set of data to an existing plot?](https://discourse.julialang.org/t/plotlyjs-how-to-add-another-set-of-data-to-an-existing-plot/15914)

<div class="topic-metadata">

**Author:** [@Moses](https://discourse.julialang.org/u/Moses)\
**Replies:** 6\
**Last updated:** [February 15, 2020, 10:06am UTC](https://discourse.julialang.org/t/plotlyjs-how-to-add-another-set-of-data-to-an-existing-plot/15914 "2020-02-15T10:06:35Z")

</div>

I am trying to update an existing plot with a second trace using PlotlyJS with Julia 1.0 and Atom on Windows 8.1. using Plots using PlotlyJS plotlyjs() # intended to switch to the according backend x = \[range(0, lengt…

---

## [HTTP.get Error](https://discourse.julialang.org/t/http-get-error/34646)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [February 15, 2020, 8:12am UTC](https://discourse.julialang.org/t/http-get-error/34646 "2020-02-15T08:12:01Z")

</div>

Version 0.7.0 (2018-08-08 06:46 UTC) Official http://julialang.org/ release x86\_64-w64-mingw32 WIN7 64 What wrong ? julia\> using HTTP julia\> using MbedTLS julia\> pomp="https://www.pomponik.pl/" "https://www.pomponik…

---

## [Guidelines for committing to v1 release](https://discourse.julialang.org/t/guidelines-for-committing-to-v1-release/34550)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 25\
**Last updated:** [February 15, 2020, 6:17am UTC](https://discourse.julialang.org/t/guidelines-for-committing-to-v1-release/34550 "2020-02-15T06:17:55Z")

</div>

I want to make some of my packages v1 but there is a nagging fear that the API isn’t stable. I wonder if there good guidelines and article out there to help me decide if I should do it? API is stable is a criterion, but…

---

## [VSCode Intellisense doesn't take files into account that are in the same directory as the open file](https://discourse.julialang.org/t/vscode-intellisense-doesnt-take-files-into-account-that-are-in-the-same-directory-as-the-open-file/34663)

<div class="topic-metadata">

**Author:** [@clevergrant](https://discourse.julialang.org/u/clevergrant)\
**Replies:** 1\
**Last updated:** [February 15, 2020, 4:36am UTC](https://discourse.julialang.org/t/vscode-intellisense-doesnt-take-files-into-account-that-are-in-the-same-directory-as-the-open-file/34663 "2020-02-15T04:36:52Z")

</div>

There’s gotta be a way to fix this, right? To explain, I’m looking at my file TransInt.jl, and you can see the file structure on the left of the image. All of the files are currently in the root of the project. TransI…

---

## [Determining the sign of a function over a given interval](https://discourse.julialang.org/t/determining-the-sign-of-a-function-over-a-given-interval/33231)

<div class="topic-metadata">

**Author:** [@ArjunNarayanan](https://discourse.julialang.org/u/ArjunNarayanan)\
**Replies:** 15\
**Last updated:** [February 15, 2020, 1:01am UTC](https://discourse.julialang.org/t/determining-the-sign-of-a-function-over-a-given-interval/33231 "2020-02-15T01:01:25Z")

</div>

I am interested in determining the bounds of a function f(x) over a given interval int. Specifically, I want to determine if f is uniformly positive/negative over int or contains at least one root. f is continuous and fi…

---

## [How would I divide each row of a Julia dataframe by that rows maximum and return a new dataframe](https://discourse.julialang.org/t/how-would-i-divide-each-row-of-a-julia-dataframe-by-that-rows-maximum-and-return-a-new-dataframe/34597)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 16\
**Last updated:** [February 15, 2020, 12:34am UTC](https://discourse.julialang.org/t/how-would-i-divide-each-row-of-a-julia-dataframe-by-that-rows-maximum-and-return-a-new-dataframe/34597 "2020-02-15T00:34:46Z")

</div>

Hi, I’ve been looking around and messing with map, eachrow and different things but I haven’t been able to figure it out. Essentially, if I have a N x M dataframe, I want to return a new N x M dataframe, except each va…

---

## [Plotting a series of discontinuous lines with PyPlot](https://discourse.julialang.org/t/plotting-a-series-of-discontinuous-lines-with-pyplot/34659)

<div class="topic-metadata">

**Author:** [@totorotoby](https://discourse.julialang.org/u/totorotoby)\
**Replies:** 0\
**Last updated:** [February 14, 2020, 10:50pm UTC](https://discourse.julialang.org/t/plotting-a-series-of-discontinuous-lines-with-pyplot/34659 "2020-02-14T22:50:14Z")

</div>

I am attempting to use matplotlib’s LineCollection in PyPlot to multiple sets of discontinuous lines in a loop. I started writing my code after reading this: http://julia-programming-language.2336112.n4.nabble.com/PyPlot…

---

## [\[ANN\] Franklin 0.6 (static site generator)](https://discourse.julialang.org/t/ann-franklin-0-6-static-site-generator/34658)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 0\
**Last updated:** [February 14, 2020, 10:44pm UTC](https://discourse.julialang.org/t/ann-franklin-0-6-static-site-generator/34658 "2020-02-14T22:44:00Z")

</div>

I’m happy to announce the release of Franklin.jl 0.6 (feu JuDoc.jl), a static site generator (SSG) in Julia. Franklin’s new documentation site is written in itself which should hopefully give you an idea of what you can …

---

## [How to send data to a dataframe when some values are NaN or empty?](https://discourse.julialang.org/t/how-to-send-data-to-a-dataframe-when-some-values-are-nan-or-empty/34653)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 0\
**Last updated:** [February 14, 2020, 9:43pm UTC](https://discourse.julialang.org/t/how-to-send-data-to-a-dataframe-when-some-values-are-nan-or-empty/34653 "2020-02-14T21:43:18Z")

</div>

Hi When I want to send data to a dataframe it gives me this error: ArgumentError: column(s) count are missing from argument(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, …

---

## [Redirection and shell commands](https://discourse.julialang.org/t/redirection-and-shell-commands/34651)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 0\
**Last updated:** [February 14, 2020, 9:27pm UTC](https://discourse.julialang.org/t/redirection-and-shell-commands/34651 "2020-02-14T21:27:00Z")

</div>

From the zsh command line, the following works: \> sed 's/BEGIN.\*END,//' file.csv \> file.csv from the Julia shell environment, it doesn’t: ;sed 's/BEGIN.\*END,//' file.csv \> file.csv sed: \>: No such file or directory T…

---

## [When plotting a choropleth map, how to "read" the appropriate value of the topojson file and the dataframe?](https://discourse.julialang.org/t/when-plotting-a-choropleth-map-how-to-read-the-appropriate-value-of-the-topojson-file-and-the-dataframe/34605)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 21\
**Last updated:** [February 14, 2020, 8:51pm UTC](https://discourse.julialang.org/t/when-plotting-a-choropleth-map-how-to-read-the-appropriate-value-of-the-topojson-file-and-the-dataframe/34605 "2020-02-14T20:51:28Z")

</div>

Hi @oheil @davidanthoff I want to plot a choropleth map using a topojson (I converted the .shp file to a topojson) and a dataframe. The topojson has the “polygons”, coordinates", and the names of the districts. T…

---

## [Mkdocs\_material in documenter](https://discourse.julialang.org/t/mkdocs-material-in-documenter/13764)

<div class="topic-metadata">

**Author:** [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Replies:** 10\
**Last updated:** [February 14, 2020, 8:42pm UTC](https://discourse.julialang.org/t/mkdocs-material-in-documenter/13764 "2020-02-14T20:42:18Z")

</div>

I’ve a question on mkdocs run in Documenter on Travis - the mkdocs-material theme fails with the message Downloading https://files.pythonhosted.org/packages/03/11/8ab0881bb6fe76e22d636c8327e86c2738f0d96f0d2145fec7e4fa7d…

---

## [How to include into local scope?](https://discourse.julialang.org/t/how-to-include-into-local-scope/34634)

<div class="topic-metadata">

**Author:** [@HenrikM](https://discourse.julialang.org/u/HenrikM)\
**Replies:** 27\
**Last updated:** [February 14, 2020, 8:14pm UTC](https://discourse.julialang.org/t/how-to-include-into-local-scope/34634 "2020-02-14T20:14:34Z")

</div>

In quick and dirty development/testing, the ability to just copy-paste code is very handy. If a snippet is used a lot, it can be elevated to a function later. Is there a way to evaluate a file in local scope? The Base.i…

---

## [Glfw examples ? (or general advice using opengl in julia)](https://discourse.julialang.org/t/glfw-examples-or-general-advice-using-opengl-in-julia/34558)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 5\
**Last updated:** [February 14, 2020, 7:18pm UTC](https://discourse.julialang.org/t/glfw-examples-or-general-advice-using-opengl-in-julia/34558 "2020-02-14T19:18:43Z")

</div>

From the Julia package GLFW page: “The Julia interface is almost identical to the underlying C interface, with a few notable differences:” while that’s true, figuring out how to translate things like, glShaderSource(…

---

## [ApproxFun... relation to Chebfun?](https://discourse.julialang.org/t/approxfun-relation-to-chebfun/34570)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [February 14, 2020, 7:00pm UTC](https://discourse.julialang.org/t/approxfun-relation-to-chebfun/34570 "2020-02-14T19:00:02Z")

</div>

My only knowledge of ApproxFun is from the brief documentation which states that it “is a package for approximating functions. It is in a similar vein to the Matlab package Chebfun”. I have dug up the ChebFun guide, as w…

---

## [Plotting markdown in the legend](https://discourse.julialang.org/t/plotting-markdown-in-the-legend/34637)

<div class="topic-metadata">

**Author:** [@crinders](https://discourse.julialang.org/u/crinders)\
**Replies:** 2\
**Last updated:** [February 14, 2020, 6:55pm UTC](https://discourse.julialang.org/t/plotting-markdown-in-the-legend/34637 "2020-02-14T18:55:09Z")

</div>

I am trying to plot Markdown in the legend of a plot. According to this blog post by @Tamas\_Papp LaTeXStrings.jl can be used to display latex math and that works, but when I want to typeset other LaTeX commands it doesn…

---

## [Pointers to structs](https://discourse.julialang.org/t/pointers-to-structs/34629)

<div class="topic-metadata">

**Author:** [@rvignolo](https://discourse.julialang.org/u/rvignolo)\
**Replies:** 10\
**Last updated:** [February 14, 2020, 6:33pm UTC](https://discourse.julialang.org/t/pointers-to-structs/34629 "2020-02-14T18:33:29Z")

</div>

Hi all, I am having trouble defining simple structs and I would like your help! The main issue is how to define a pointer to a struct of type Inner inside a struct of type Outer. So, the first idea is pretty obvious an…

---

## [Julia relative imports, issue #4600, exactly how "not that difficult" is it?](https://discourse.julialang.org/t/julia-relative-imports-issue-4600-exactly-how-not-that-difficult-is-it/34503)

<div class="topic-metadata">

**Author:** [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Replies:** 5\
**Last updated:** [February 14, 2020, 6:21pm UTC](https://discourse.julialang.org/t/julia-relative-imports-issue-4600-exactly-how-not-that-difficult-is-it/34503 "2020-02-14T18:21:18Z")

</div>

I’ve reached the point in my Julia journey where I’m seeing the limitations of include for assembling lots of modules into a project. It seems https://github.com/JuliaLang/julia/issues/4600 is the answer, but progress se…

---

## [How a ghost variable never appear but always reported not defined](https://discourse.julialang.org/t/how-a-ghost-variable-never-appear-but-always-reported-not-defined/34630)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 2\
**Last updated:** [February 14, 2020, 6:18pm UTC](https://discourse.julialang.org/t/how-a-ghost-variable-never-appear-but-always-reported-not-defined/34630 "2020-02-14T18:18:18Z")

</div>

There is no variable ‘A’ applied or assigned anywhere in this function. With multiple reboost of my laptop and atom, there is still the error report: ‘A not defined’. I really cannot fight against a ghost. Do anyone kno…

---

## [Proxy woes](https://discourse.julialang.org/t/proxy-woes/34441)

<div class="topic-metadata">

**Author:** [@wfrgra](https://discourse.julialang.org/u/wfrgra)\
**Replies:** 2\
**Last updated:** [February 14, 2020, 5:38pm UTC](https://discourse.julialang.org/t/proxy-woes/34441 "2020-02-14T17:38:42Z")

</div>

Hi all, I’m trying to set up Julia at a new workplace and am having some problems with the proxy. I’m using a fresh install of Julia 1.3 on Windows 10. I’ve set ENV\["HTTP\_PROXY"\]="http://proxy\_address:proxy\_port" ENV…

---

## [How to generate a minidump and backtrace for a hanging Julia program on Appveyor/Windows?](https://discourse.julialang.org/t/how-to-generate-a-minidump-and-backtrace-for-a-hanging-julia-program-on-appveyor-windows/33451)

<div class="topic-metadata">

**Author:** [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Replies:** 12\
**Last updated:** [February 14, 2020, 4:56pm UTC](https://discourse.julialang.org/t/how-to-generate-a-minidump-and-backtrace-for-a-hanging-julia-program-on-appveyor-windows/33451 "2020-02-14T16:56:34Z")

</div>

Hello all, I have what appears to be a deadlock(?) bug in my Julia package that is exposed only on Appveyor, and only when I test through the CI – if I enter the Appveyor VM through RDP and manually run tests, they pass…

---

## [How to use parallel computing or GPU to make calculations fasterwhen the M=10000](https://discourse.julialang.org/t/how-to-use-parallel-computing-or-gpu-to-make-calculations-fasterwhen-the-m-10000/34623)

<div class="topic-metadata">

**Author:** [@11125](https://discourse.julialang.org/u/11125)\
**Replies:** 1\
**Last updated:** [February 14, 2020, 4:52pm UTC](https://discourse.julialang.org/t/how-to-use-parallel-computing-or-gpu-to-make-calculations-fasterwhen-the-m-10000/34623 "2020-02-14T16:52:03Z")

</div>

using CuArrays,CUDAnative,CUDAdrv,BenchmarkTools N = 3 k = ones(N,N)\*5 M = 100 rho = zeros(N,N) aa = range(-5,5,length=N) K = zeros(N,N) A = repeat(-aa’,N,1) B = repeat(aa,1,N) C=ones(N,N)-10 phi = repeat(range…

---

## [Calling module name using string variable](https://discourse.julialang.org/t/calling-module-name-using-string-variable/34632)

<div class="topic-metadata">

**Author:** [@Masicko](https://discourse.julialang.org/u/Masicko)\
**Replies:** 2\
**Last updated:** [February 14, 2020, 3:41pm UTC](https://discourse.julialang.org/t/calling-module-name-using-string-variable/34632 "2020-02-14T15:41:55Z")

</div>

Hello, I would like to specify by string, which module should be used. Something like i have a file foo.jl module foo something = 1.0 end and in the another file (e. g. the\_main\_file.jl) module\_name = "foo" includ…

---

## [Print dataframe column names from within a function](https://discourse.julialang.org/t/print-dataframe-column-names-from-within-a-function/34575)

<div class="topic-metadata">

**Author:** [@josephmarturano](https://discourse.julialang.org/u/josephmarturano)\
**Replies:** 5\
**Last updated:** [February 14, 2020, 1:13pm UTC](https://discourse.julialang.org/t/print-dataframe-column-names-from-within-a-function/34575 "2020-02-14T13:13:34Z")

</div>

I have a simple question about printing dataframe names. I apologize if this has already been asked - I searched but could not find an answer. I sometimes work with Dataframes of 20+ columns, and I cannot remember the n…

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

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