# Latest

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

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

**Page:** 1268

---

## [How to find angle between two vectors?](https://discourse.julialang.org/t/how-to-find-angle-between-two-vectors/68149)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 2:39pm UTC](https://discourse.julialang.org/t/how-to-find-angle-between-two-vectors/68149 "2021-09-14T14:39:56Z")

</div>

My current implementation is function angle(a, b) return acosd(a⋅b/(norm(a)\*norm(b))) end But, sometimes, it throws domain error as LoadError: DomainError with 1.0000000000000002: acos(x) not defined for |x| \> 1 I…

---

## [What is the best tab-completion font for the REPL?](https://discourse.julialang.org/t/what-is-the-best-tab-completion-font-for-the-repl/68126)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 5\
**Last updated:** [September 14, 2021, 2:10pm UTC](https://discourse.julialang.org/t/what-is-the-best-tab-completion-font-for-the-repl/68126 "2021-09-14T14:10:27Z")

</div>

In my REPL, I’m not getting a lot of tab-completion characters that I get in Jupyter and that I see in the official tab-completion list at Unicode Input · The Julia Language . Is there a more comprehensive font I can dow…

---

## [How to disable LibPQ error messages being printed to console](https://discourse.julialang.org/t/how-to-disable-libpq-error-messages-being-printed-to-console/68101)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 1\
**Last updated:** [September 14, 2021, 12:46pm UTC](https://discourse.julialang.org/t/how-to-disable-libpq-error-messages-being-printed-to-console/68101 "2021-09-14T12:46:05Z")

</div>

LibPQ is printing error messages to the console, even though it is expected to fail and I don’t want these messages to show up in the console. I looked for some LibPQ option(s), but didn’t find anything suitable. Or wo…

---

## [On beauty of Distributions.jl pdf interface](https://discourse.julialang.org/t/on-beauty-of-distributions-jl-pdf-interface/67895)

<div class="topic-metadata">

**Author:** [@thisismygitrepo](https://discourse.julialang.org/u/thisismygitrepo)\
**Replies:** 20\
**Last updated:** [September 14, 2021, 11:18am UTC](https://discourse.julialang.org/t/on-beauty-of-distributions-jl-pdf-interface/67895 "2021-09-14T11:18:51Z")

</div>

Julia is often touted for its syntax that resembles math notation. I have a kind of objection here. Getting values of this density function with this syntax is awkward to say the least. Shouldn’t this be simply p(0:0…

---

## [Surprising runtime behaviour when wrapping functions](https://discourse.julialang.org/t/surprising-runtime-behaviour-when-wrapping-functions/68140)

<div class="topic-metadata">

**Author:** [@goerch](https://discourse.julialang.org/u/goerch)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 11:21am UTC](https://discourse.julialang.org/t/surprising-runtime-behaviour-when-wrapping-functions/68140 "2021-09-14T11:21:14Z")

</div>

Running the following test program using BenchmarkTools f(x) = x struct Wrapper f::Function end function evaluate(f, x) return f(x) end function evaluate(wrapper::Wrapper, x) return wrapper.f(x) end func…

---

## [LightXML vs EzXML](https://discourse.julialang.org/t/lightxml-vs-ezxml/61091)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 7\
**Last updated:** [September 14, 2021, 10:48am UTC](https://discourse.julialang.org/t/lightxml-vs-ezxml/61091 "2021-09-14T10:48:13Z")

</div>

Hi, I have started playing with LightXML and EzXML. I found EzXML to be easier to use and better documented than LightXML. I am still struggling to do some basic stuff wiyh LightXML. I wanted to have the view of the co…

---

## [Makie only working properly in REPL](https://discourse.julialang.org/t/makie-only-working-properly-in-repl/68130)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 5\
**Last updated:** [September 14, 2021, 10:28am UTC](https://discourse.julialang.org/t/makie-only-working-properly-in-repl/68130 "2021-09-14T10:28:34Z")

</div>

I’m using: vscode 1.59.1 Julia Language Support 1.3.33 Julia 1.6.1 Windows 10 GLMakie 0.4.6 (among many others) I have code that retrieves data out of a SQLite db and displays in a simple series plot. When I eithe…

---

## [GLMakie in VSCode single plot popout](https://discourse.julialang.org/t/glmakie-in-vscode-single-plot-popout/68132)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 11\
**Last updated:** [September 14, 2021, 10:04am UTC](https://discourse.julialang.org/t/glmakie-in-vscode-single-plot-popout/68132 "2021-09-14T10:04:20Z")

</div>

I like the plot pane in VSCode, and I wish to use it by default. I also love how GLMakie plots scale up and down in size as I ajust the width of the plotting pane. But sometimes I want to interact with the plot, for dat…

---

## [Is Julia suitable to analyze the results of astrophysical simulations?](https://discourse.julialang.org/t/is-julia-suitable-to-analyze-the-results-of-astrophysical-simulations/68096)

<div class="topic-metadata">

**Author:** [@panbroggi](https://discourse.julialang.org/u/panbroggi)\
**Replies:** 12\
**Last updated:** [September 14, 2021, 7:10am UTC](https://discourse.julialang.org/t/is-julia-suitable-to-analyze-the-results-of-astrophysical-simulations/68096 "2021-09-14T07:10:18Z")

</div>

Hi everyone! I am here to ask you your opinion. I am a PhD student and I’ve started using Julia as my main programming language in my research. I am very happy about it, despite the fact that my usage of Julia is far fr…

---

## [Why could this happen?](https://discourse.julialang.org/t/why-could-this-happen/68128)

<div class="topic-metadata">

**Author:** [@Rratic](https://discourse.julialang.org/u/Rratic)\
**Replies:** 7\
**Last updated:** [September 14, 2021, 7:07am UTC](https://discourse.julialang.org/t/why-could-this-happen/68128 "2021-09-14T07:07:36Z")

</div>

I used Expr to express a very very complicated math expression. I used println(io,expr) to put it into a file. The size of the file is 480KB. When I opened the file (using vscode,so I’m sure the problem is not here), …

---

## [Solving simple electrostatic problem](https://discourse.julialang.org/t/solving-simple-electrostatic-problem/68046)

<div class="topic-metadata">

**Author:** [@isentropic](https://discourse.julialang.org/u/isentropic)\
**Replies:** 24\
**Last updated:** [September 14, 2021, 7:03am UTC](https://discourse.julialang.org/t/solving-simple-electrostatic-problem/68046 "2021-09-14T07:03:39Z")

</div>

I’m fairly new to PDE solving domain. Being overwhelmed with what julia offers GitHub - JuliaPDE/SurveyofPDEPackages: Survey of the packages of the Julia ecosystem for solving partial differential equations, I could deci…

---

## [Local GUI coverage](https://discourse.julialang.org/t/local-gui-coverage/6842)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 9\
**Last updated:** [September 13, 2021, 11:37pm UTC](https://discourse.julialang.org/t/local-gui-coverage/6842 "2021-09-13T23:37:53Z")

</div>

Is there any simple way I can get nice coverage reports, with calls per line, locally? What do you guys use? The process outlined in Coverage.jl is a bit convoluted. I’m basically looking for a local version of coverall…

---

## [What is the function of the unique "identifier" in a package's path used for](https://discourse.julialang.org/t/what-is-the-function-of-the-unique-identifier-in-a-packages-path-used-for/67983)

<div class="topic-metadata">

**Author:** [@Glen1](https://discourse.julialang.org/u/Glen1)\
**Replies:** 19\
**Last updated:** [September 13, 2021, 9:51pm UTC](https://discourse.julialang.org/t/what-is-the-function-of-the-unique-identifier-in-a-packages-path-used-for/67983 "2021-09-13T21:51:37Z")

</div>

I’m still confused about a package’s directory structure. What is the unique “version” identifier included in the path used for? As in “1GXzF” below. We already include a uuid and version in the Project.toml / manifest.…

---

## [Suggestion for using Word Search as a basis for Julia coding practices](https://discourse.julialang.org/t/suggestion-for-using-word-search-as-a-basis-for-julia-coding-practices/68028)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 10\
**Last updated:** [September 13, 2021, 9:24pm UTC](https://discourse.julialang.org/t/suggestion-for-using-word-search-as-a-basis-for-julia-coding-practices/68028 "2021-09-13T21:24:35Z")

</div>

Hello there. Although discourse is rich with excellent approach discussions I would suggest it might be interesting to have a GENERAL goal which could address many of the areas that interest people. My suggestion is t…

---

## [Nested Task error: Bad window span - what?](https://discourse.julialang.org/t/nested-task-error-bad-window-span-what/67959)

<div class="topic-metadata">

**Author:** [@SubTer](https://discourse.julialang.org/u/SubTer)\
**Replies:** 6\
**Last updated:** [September 13, 2021, 8:25pm UTC](https://discourse.julialang.org/t/nested-task-error-bad-window-span-what/67959 "2021-09-13T20:25:11Z")

</div>

hi folks, I am trying to add a column to a df i already have populated, and on a smaller batch size it works just fine, example code below: Timeddf = @linq dfData |\> groupby(:ID) |\> transform(Traili…

---

## [Clean dependencies for Plots](https://discourse.julialang.org/t/clean-dependencies-for-plots/59617)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 4\
**Last updated:** [September 13, 2021, 7:45pm UTC](https://discourse.julialang.org/t/clean-dependencies-for-plots/59617 "2021-09-13T19:45:53Z")

</div>

I have just upgraded to Julia 1.6. Looks nice. Rebuilt as many packages as I could (seems Julia errors out on some rebuilds). I go back and forth between pyplot and gr as backends for Plots. Both have some bad side effe…

---

## [PackageCompiler throwing error on fresh machine](https://discourse.julialang.org/t/packagecompiler-throwing-error-on-fresh-machine/68109)

<div class="topic-metadata">

**Author:** [@connormeaton](https://discourse.julialang.org/u/connormeaton)\
**Replies:** 6\
**Last updated:** [September 13, 2021, 5:53pm UTC](https://discourse.julialang.org/t/packagecompiler-throwing-error-on-fresh-machine/68109 "2021-09-13T17:53:49Z")

</div>

I have been able to successfully use PackageCompiler to compile a Julia script into a binary and run on a different machine (same OS and distro) that doesn’t have Julia or any dependencies. For some reason, my workflow n…

---

## [Issues with recurrent layers in Flux.jl](https://discourse.julialang.org/t/issues-with-recurrent-layers-in-flux-jl/67815)

<div class="topic-metadata">

**Author:** [@shindler25](https://discourse.julialang.org/u/shindler25)\
**Replies:** 8\
**Last updated:** [September 13, 2021, 4:26pm UTC](https://discourse.julialang.org/t/issues-with-recurrent-layers-in-flux-jl/67815 "2021-09-13T16:26:48Z")

</div>

I am using Julia 1.6 and Flux v0.12.6 I am having issues using the recurrent layers LSTM and RNN in Flux.jl and it does not make sense why this is happening. hopefully someone can see where it is going wrong? I define …

---

## [How to compute a "cumulative" in a dataframe (without a for loop)](https://discourse.julialang.org/t/how-to-compute-a-cumulative-in-a-dataframe-without-a-for-loop/2156)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 44\
**Last updated:** [September 11, 2021, 1:39am UTC](https://discourse.julialang.org/t/how-to-compute-a-cumulative-in-a-dataframe-without-a-for-loop/2156 "2021-09-11T01:39:52Z")

</div>

I am trying to add a new column with a cumulative value in regard to an other column., e.g.: In: df = DataFrame(region = \["US","US","US","US","EU","EU","EU","EU"\], year = \[2010,2011,2012,2013,2010,2011…

---

## [Bug in Juliahub search](https://discourse.julialang.org/t/bug-in-juliahub-search/68094)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 1:37pm UTC](https://discourse.julialang.org/t/bug-in-juliahub-search/68094 "2021-09-13T13:37:13Z")

</div>

Why does searching for DataFramesMacros come up empty? https://juliahub.com/ui/Search?q=DataFramesMacros&type=packages If I do search for DataFramesMeta, I find both so I know it’s there. Not sure where to file an issu…

---

## [Artifact Download Timeout](https://discourse.julialang.org/t/artifact-download-timeout/68093)

<div class="topic-metadata">

**Author:** [@RJJardine](https://discourse.julialang.org/u/RJJardine)\
**Replies:** 0\
**Last updated:** [September 13, 2021, 12:27pm UTC](https://discourse.julialang.org/t/artifact-download-timeout/68093 "2021-09-13T12:27:46Z")

</div>

Hi all, I’m having an issue when installing packages that require artifacts (e.g. Plots.jl). When attempting to download the artifact (e.g. Gettext\_jll.jl from Github), it fails. I have used the DebugArtifacts.jl utilit…

---

## [Creating a function with the same name as given to a struct](https://discourse.julialang.org/t/creating-a-function-with-the-same-name-as-given-to-a-struct/68006)

<div class="topic-metadata">

**Author:** [@danilo-bc](https://discourse.julialang.org/u/danilo-bc)\
**Replies:** 5\
**Last updated:** [September 13, 2021, 12:19pm UTC](https://discourse.julialang.org/t/creating-a-function-with-the-same-name-as-given-to-a-struct/68006 "2021-09-13T12:19:21Z")

</div>

I’m trying to follow a programming exercise in Python (2.x) which follows these steps to make a simple test for building a test runner: test= WasRun("testMethod") print test.wasRun test.testMethod() print test.wasRun N…

---

## [LoadError: UndefVarError: include not defined when using Pkg.test](https://discourse.julialang.org/t/loaderror-undefvarerror-include-not-defined-when-using-pkg-test/68084)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.julialang.org/u/sim)\
**Replies:** 5\
**Last updated:** [September 13, 2021, 12:11pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-include-not-defined-when-using-pkg-test/68084 "2021-09-13T12:11:35Z")

</div>

Hello, I want to create a package A with different modules, A and Aux, and test them using pkg.test. The project structure is as follows: #src/A.jl include("aux.jl") module A export f f(x)=x^2 end #src/Aux.jl module Au…

---

## [Convert 1D Array to 1D Array of StaticArrays?](https://discourse.julialang.org/t/convert-1d-array-to-1d-array-of-staticarrays/67657)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 11\
**Last updated:** [September 13, 2021, 12:10pm UTC](https://discourse.julialang.org/t/convert-1d-array-to-1d-array-of-staticarrays/67657 "2021-09-13T12:10:36Z")

</div>

Hello! I think this should be fairly simple, suppose I have: b = collect(1:999) Where x,y, and z are given as: x = b\[1:3:end\] y = b\[2:3:end\] z = b\[3:3:end\] How would I then convert / parse this into a Vector of Stat…

---

## [Using BlueZ\_jll for bluetooth communication](https://discourse.julialang.org/t/using-bluez-jll-for-bluetooth-communication/68082)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 0\
**Last updated:** [September 13, 2021, 9:44am UTC](https://discourse.julialang.org/t/using-bluez-jll-for-bluetooth-communication/68082 "2021-09-13T09:44:32Z")

</div>

I wanted to use julia for collecting some data from a bluetooth device, and couldn’t find any package for that. What I did find was the BlueZ\_jll package, which seemed fit for the job. After some figuring out how the jl…

---

## [UndefVarError although I have defined it in the function before using it](https://discourse.julialang.org/t/undefvarerror-although-i-have-defined-it-in-the-function-before-using-it/68087)

<div class="topic-metadata">

**Author:** [@Sudhanshu\_Mishra](https://discourse.julialang.org/u/Sudhanshu_Mishra)\
**Replies:** 3\
**Last updated:** [September 13, 2021, 11:29am UTC](https://discourse.julialang.org/t/undefvarerror-although-i-have-defined-it-in-the-function-before-using-it/68087 "2021-09-13T11:29:36Z")

</div>

I’m quite new to Julia but i’ve been getting this error for a while. I created a toy scenario similar to this where I define a variable just before using it in a function and it works there. However, I get an UndefVarErr…

---

## [What is the best way to read a CSV file](https://discourse.julialang.org/t/what-is-the-best-way-to-read-a-csv-file/68086)

<div class="topic-metadata">

**Author:** [@hdcpereira](https://discourse.julialang.org/u/hdcpereira)\
**Replies:** 1\
**Last updated:** [September 13, 2021, 11:21am UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-read-a-csv-file/68086 "2021-09-13T11:21:04Z")

</div>

Hello there! My question is, I have a dataset in a csv file and I would like to know what is the best way to load it in memory. As an example, lets say I have the following columns: time -\> datetime mag\_field -\> float…

---

## [DataFrames reorder columns in place](https://discourse.julialang.org/t/dataframes-reorder-columns-in-place/67993)

<div class="topic-metadata">

**Author:** [@mjanun](https://discourse.julialang.org/u/mjanun)\
**Replies:** 4\
**Last updated:** [September 13, 2021, 11:05am UTC](https://discourse.julialang.org/t/dataframes-reorder-columns-in-place/67993 "2021-09-13T11:05:26Z")

</div>

If a dataframe is defined as: df\_dummy = DataFrame(A=\[1,2,3\],B=\["A","B","C"\],ID =\[121,321,421\]) How can I change the order of one or more columns and modify the dataframe in place? If I want to make ID the first colum…

---

## [Physics Based Deep Learning book (online)](https://discourse.julialang.org/t/physics-based-deep-learning-book-online/68081)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [September 13, 2021, 10:14am UTC](https://discourse.julialang.org/t/physics-based-deep-learning-book-online/68081 "2021-09-13T10:14:13Z")

</div>

This is not Julia specific. This online book looks very interesting for our community I will be happy to move this to another topic area if more appropriate. https://physicsbaseddeeplearning.org/diffphys.html

---

## [Entering emoji](https://discourse.julialang.org/t/entering-emoji/60274)

<div class="topic-metadata">

**Author:** [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Replies:** 14\
**Last updated:** [September 13, 2021, 9:23am UTC](https://discourse.julialang.org/t/entering-emoji/60274 "2021-09-13T09:23:18Z")

</div>

’m working through Julia tutorial in Nteract. The notebook JuliaTutorials/intro-to-julia/01. Getting started.ipnyb says that to enter an emoji such as smiley\_face, type: :smi + \[TAB\] So I did type “:smi” (without quo…

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

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