# Latest

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

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

**Page:** 1813

---

## [Trying to put a Weave document in Dropbox ruined Atom](https://discourse.julialang.org/t/trying-to-put-a-weave-document-in-dropbox-ruined-atom/35350)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 4\
**Last updated:** [March 1, 2020, 7:58pm UTC](https://discourse.julialang.org/t/trying-to-put-a-weave-document-in-dropbox-ruined-atom/35350 "2020-03-01T19:58:16Z")

</div>

I used Weave to create a PDF, then I updated my .jl and tried to put the new pdf in my Dropbox, so I could share it. It created 20 or so empty files and crashed atom. After this, any attempt to put a PDF in my Documents…

---

## [Timestamp String with one-second resolution: fastest implementation?](https://discourse.julialang.org/t/timestamp-string-with-one-second-resolution-fastest-implementation/35378)

<div class="topic-metadata">

**Author:** [@joshua\_jones](https://discourse.julialang.org/u/joshua_jones)\
**Replies:** 0\
**Last updated:** [March 1, 2020, 10:35pm UTC](https://discourse.julialang.org/t/timestamp-string-with-one-second-resolution-fastest-implementation/35378 "2020-03-01T22:35:58Z")

</div>

I’m trying to determine the fastest way to add UTC time stamps with a resolution of 1 s to automated logs of data reading and processing. This is used frequently as data are read into memory and processed. Suggestions wo…

---

## [Excel not recognize automatically generated CSV files using utf-8 encoding](https://discourse.julialang.org/t/excel-not-recognize-automatically-generated-csv-files-using-utf-8-encoding/35258)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 9\
**Last updated:** [March 1, 2020, 9:46pm UTC](https://discourse.julialang.org/t/excel-not-recognize-automatically-generated-csv-files-using-utf-8-encoding/35258 "2020-03-01T21:46:51Z")

</div>

I generate utf-8 encoding output in Julia by using DelimitedFiles package. I would like students to be able to read the generated files automatically in EXCEL by using utf-8 encoding without going into the pain in Excel…

---

## [Julia Stack Overflow Fellow Announcement](https://discourse.julialang.org/t/julia-stack-overflow-fellow-announcement/35375)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [March 1, 2020, 9:45pm UTC](https://discourse.julialang.org/t/julia-stack-overflow-fellow-announcement/35375 "2020-03-01T21:45:57Z")

</div>

Hey all! Are you interested in helping be a steward of knowledge in the Julia Community? Consider applying to be a Julia Stack Overflow Fellow. As part of this program, Fellows will write Q/A style posts about Julia on …

---

## [Different inner product if vector type is not set](https://discourse.julialang.org/t/different-inner-product-if-vector-type-is-not-set/35359)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 8\
**Last updated:** [March 1, 2020, 9:37pm UTC](https://discourse.julialang.org/t/different-inner-product-if-vector-type-is-not-set/35359 "2020-03-01T21:37:36Z")

</div>

Hi All, EDIT: Please see simpler example in comments! I would like to ask about the precision of Float64s in a Vector of type Any vs. a vector of type Float64. It seems there is a subtle difference that I noticed as pa…

---

## [Game Development in Julia / GameZero.jl](https://discourse.julialang.org/t/game-development-in-julia-gamezero-jl/35361)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 6:41pm UTC](https://discourse.julialang.org/t/game-development-in-julia-gamezero-jl/35361 "2020-03-01T18:41:35Z")

</div>

Hello, I noticed this meetup Our next meetup, at short notice (sorry!), will be at the Alan Turing Institute premises, within the iconic British Library building, on Monday the 24th of February. We haven’t had a metu…

---

## [Embedding PyPlot figure into a Gtk GUI](https://discourse.julialang.org/t/embedding-pyplot-figure-into-a-gtk-gui/35369)

<div class="topic-metadata">

**Author:** [@Abubaker\_Jaffer](https://discourse.julialang.org/u/Abubaker_Jaffer)\
**Replies:** 0\
**Last updated:** [March 1, 2020, 6:11pm UTC](https://discourse.julialang.org/t/embedding-pyplot-figure-into-a-gtk-gui/35369 "2020-03-01T18:11:43Z")

</div>

Hi all, Im trying to find a way to embed Pyplot figures into a Gtk GUI but cant seem to find any meaningful documentation into whether or not this is possible. The idea that I have is to embed the figure into a GtkCanv…

---

## [Jll packages](https://discourse.julialang.org/t/jll-packages/35366)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 5:50pm UTC](https://discourse.julialang.org/t/jll-packages/35366 "2020-03-01T17:50:46Z")

</div>

I noticed that several packages are available in two variants: “normal” and \*\_jll. For example FFTW, FFTW\_jll, Nettle, Nettle\_jll FFTW seems to be based on the FFTW\_jll “artifact”, whereas Nettle seems independent of N…

---

## [Type stable mapreduce over NamedTuple keys](https://discourse.julialang.org/t/type-stable-mapreduce-over-namedtuple-keys/35367)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 0\
**Last updated:** [March 1, 2020, 5:44pm UTC](https://discourse.julialang.org/t/type-stable-mapreduce-over-namedtuple-keys/35367 "2020-03-01T17:44:06Z")

</div>

I am trying to write a function that picks keys from a NamedTuple, uses each key to obtain values from two objects (not necessarily NamedTuples, they support getproperty, may have other properties not used by this func…

---

## [How to \`cumsum\` a tuple](https://discourse.julialang.org/t/how-to-cumsum-a-tuple/35347)

<div class="topic-metadata">

**Author:** [@mpf01](https://discourse.julialang.org/u/mpf01)\
**Replies:** 12\
**Last updated:** [March 1, 2020, 5:05pm UTC](https://discourse.julialang.org/t/how-to-cumsum-a-tuple/35347 "2020-03-01T17:05:55Z")

</div>

Julia has a cumsum function that operators on arrays, but not on lists. This seems to work: cumsum2(itr) = foldl((x,y)-\>(x...,x\[end\]+y), itr) Is this the best way to accomplish the task?

---

## [Tuple isa UnionAll == false](https://discourse.julialang.org/t/tuple-isa-unionall-false/35354)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [March 1, 2020, 10:42am UTC](https://discourse.julialang.org/t/tuple-isa-unionall-false/35354 "2020-03-01T10:42:38Z")

</div>

this looks weird: julia\> Tuple isa UnionAll false is this a bug?

---

## [Oracle DBI driver](https://discourse.julialang.org/t/oracle-dbi-driver/8205)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 38\
**Last updated:** [March 1, 2020, 9:19am UTC](https://discourse.julialang.org/t/oracle-dbi-driver/8205 "2020-03-01T09:19:33Z")

</div>

Does anyone know if there’s any Oracle DBI package around? At my work place, Oracle is still a dominant data source and it would be nice to have an easy interface from Julia. Oracle has a well-documented C API Given…

---

## [Tab completion for using in the REPL](https://discourse.julialang.org/t/tab-completion-for-using-in-the-repl/35352)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [March 1, 2020, 8:37am UTC](https://discourse.julialang.org/t/tab-completion-for-using-in-the-repl/35352 "2020-03-01T08:37:28Z")

</div>

I just realised that tab completion works when int he REPL and you want to type using Argggh… silly me.

---

## [Is it possible to have a typevariable for an upperbound?](https://discourse.julialang.org/t/is-it-possible-to-have-a-typevariable-for-an-upperbound/35274)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 2\
**Last updated:** [March 1, 2020, 8:07am UTC](https://discourse.julialang.org/t/is-it-possible-to-have-a-typevariable-for-an-upperbound/35274 "2020-03-01T08:07:29Z")

</div>

Just stumbled upon that I would like to transform a specific container to another specific container, and it looks like I have to take special care about Julia’s UnionAll types. Concretely, I would like to map say Vecto…

---

## [Interest in a port of snorkel?](https://discourse.julialang.org/t/interest-in-a-port-of-snorkel/35349)

<div class="topic-metadata">

**Author:** [@a5vzener](https://discourse.julialang.org/u/a5vzener)\
**Replies:** 0\
**Last updated:** [March 1, 2020, 4:52am UTC](https://discourse.julialang.org/t/interest-in-a-port-of-snorkel/35349 "2020-03-01T04:52:27Z")

</div>

Has anyone used snorkel, a python package for efficient data set labeling? Does this seem like a good algorithm or system to be ported to Julia? -doug

---

## [Error when installing iJulia on linux system](https://discourse.julialang.org/t/error-when-installing-ijulia-on-linux-system/35079)

<div class="topic-metadata">

**Author:** [@diepreye\_ayabina](https://discourse.julialang.org/u/diepreye_ayabina)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 4:13am UTC](https://discourse.julialang.org/t/error-when-installing-ijulia-on-linux-system/35079 "2020-03-01T04:13:40Z")

</div>

Hello, I have been getting this error when I try to open a notebook, i.e I have installed Julia and IJulia but when I type notebook() it asks to install Jupyter via Conda, to which I say yes but it gives the following e…

---

## [How do i show plots in a PDF generated through Weave?](https://discourse.julialang.org/t/how-do-i-show-plots-in-a-pdf-generated-through-weave/35346)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 2\
**Last updated:** [March 1, 2020, 1:45am UTC](https://discourse.julialang.org/t/how-do-i-show-plots-in-a-pdf-generated-through-weave/35346 "2020-03-01T01:45:16Z")

</div>

Using this code, I’m able to turn my .jl file into a pdf, including calculations weave("Soc323.jl", out\_path = "C:/Users/brett/OneDrive/Documents", doctype = "md2pdf") but none of my plots are included, is there a comm…

---

## [Map function to only some columns](https://discourse.julialang.org/t/map-function-to-only-some-columns/35344)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 1:23am UTC](https://discourse.julialang.org/t/map-function-to-only-some-columns/35344 "2020-03-01T01:23:06Z")

</div>

Many times I want to map a function over a DataFrame but not all of its columns. For example, suppose the first column is a Date column, but the remainder are Float64 columns, and I basically just want the first column t…

---

## [How to iterate through a StatsBase.Histogram](https://discourse.julialang.org/t/how-to-iterate-through-a-statsbase-histogram/35335)

<div class="topic-metadata">

**Author:** [@zierenberg](https://discourse.julialang.org/u/zierenberg)\
**Replies:** 3\
**Last updated:** [March 1, 2020, 1:21am UTC](https://discourse.julialang.org/t/how-to-iterate-through-a-statsbase-histogram/35335 "2020-03-01T01:21:34Z")

</div>

Hi, let me start my first post by saying thank you for all the hard work from the community. I really enjoy diving into the julia programming language. I am currently playing around with Monte Carlo simulations in juli…

---

## [Safe predictions using \`@formula\` and regression splines](https://discourse.julialang.org/t/safe-predictions-using-formula-and-regression-splines/33057)

<div class="topic-metadata">

**Author:** [@mclements](https://discourse.julialang.org/u/mclements)\
**Replies:** 6\
**Last updated:** [February 29, 2020, 10:22pm UTC](https://discourse.julialang.org/t/safe-predictions-using-formula-and-regression-splines/33057 "2020-02-29T22:22:17Z")

</div>

Dear all, As my first effort in Julia, I have written a Splines2 package for spline bases for regression modelling (https://github.com/mclements/Splines2.jl). The implementation includes equivalents to the splines::ns, s…

---

## [Help me with repeated index](https://discourse.julialang.org/t/help-me-with-repeated-index/35339)

<div class="topic-metadata">

**Author:** [@varun\_yaramasu](https://discourse.julialang.org/u/varun_yaramasu)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 9:49pm UTC](https://discourse.julialang.org/t/help-me-with-repeated-index/35339 "2020-02-29T21:49:27Z")

</div>

using JuMP,SCS m=Model(with\_optimizer(SCS.Optimizer)) branch=\[1 2 0.1 3 4 0.1 4 5 0.2 4 6 0.3 5 6 0.1 \] If we want only the first column of the branch, what we have to do ? I…

---

## [Printing Frequency Tables as Tables](https://discourse.julialang.org/t/printing-frequency-tables-as-tables/35333)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 9:39pm UTC](https://discourse.julialang.org/t/printing-frequency-tables-as-tables/35333 "2020-02-29T21:39:08Z")

</div>

I’m trying to print out Frequency Tables of Data I have out = DataFrame(Q1 = \[3,3,3\], Q2 = \[3,2,1\]) when I run this line or type julia\> AllOut) I get a table like this. Dim1 ╲ Dim2 │ 1 2 3 ────────────┼──────── 1 …

---

## [Why does Julia not optimize this code when C++ (LLVM) can?](https://discourse.julialang.org/t/why-does-julia-not-optimize-this-code-when-c-llvm-can/35314)

<div class="topic-metadata">

**Author:** [@kdheepak](https://discourse.julialang.org/u/kdheepak)\
**Replies:** 14\
**Last updated:** [February 29, 2020, 7:08pm UTC](https://discourse.julialang.org/t/why-does-julia-not-optimize-this-code-when-c-llvm-can/35314 "2020-02-29T19:08:32Z")

</div>

When using a C++ compiler with LLVM version 6.0.0, the following code bool isEven(int n) { bool ret = true; for (int i = 0; i \< n; i ++) { ret = !ret; } return ret; } emits the LLVM IR define z…

---

## [Print progress info of \`Base.download(...)\` (or alternatives)?](https://discourse.julialang.org/t/print-progress-info-of-base-download-or-alternatives/35326)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 6:50pm UTC](https://discourse.julialang.org/t/print-progress-info-of-base-download-or-alternatives/35326 "2020-02-29T18:50:11Z")

</div>

Is there a way to download a large file from Julia while printing the progress of the download? I don’t see any option in Base.download() to do this. Any alternatives we can use?

---

## [\[ANN\] ThreadPools.jl - Improved thread management for background and nonuniform tasks](https://discourse.julialang.org/t/ann-threadpools-jl-improved-thread-management-for-background-and-nonuniform-tasks/33592)

<div class="topic-metadata">

**Author:** [@tro3](https://discourse.julialang.org/u/tro3)\
**Replies:** 50\
**Last updated:** [February 29, 2020, 6:46pm UTC](https://discourse.julialang.org/t/ann-threadpools-jl-improved-thread-management-for-background-and-nonuniform-tasks/33592 "2020-02-29T18:46:33Z")

</div>

I am happy to announce the registration of ThreadPools.jl. As of Julia 1.3, the algorithm of the @threads macro is to pre-divide the incoming range into equal partitions running on each thread. This is very efficient f…

---

## [Polar heatmap with PyPlot works in REPL but not in IJulia](https://discourse.julialang.org/t/polar-heatmap-with-pyplot-works-in-repl-but-not-in-ijulia/35328)

<div class="topic-metadata">

**Author:** [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 6:21pm UTC](https://discourse.julialang.org/t/polar-heatmap-with-pyplot-works-in-repl-but-not-in-ijulia/35328 "2020-02-29T18:21:36Z")

</div>

Plotting polar heatmap works in REPL but not in IJulia, here’s the MWE: using PyPlot r = \[rd for rd = range(0.0, 10, length = 100), theta = range(0, 2π, length = 100)\] th = \[theta for rd = range(0.0, 10, length = 100), …

---

## [Best practices for combinging Juno debug and Test](https://discourse.julialang.org/t/best-practices-for-combinging-juno-debug-and-test/34371)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 5:52pm UTC](https://discourse.julialang.org/t/best-practices-for-combinging-juno-debug-and-test/34371 "2020-02-29T17:52:59Z")

</div>

I’m developing a package called MyPkg in Juno with the following directory structure: MyPkg/ - MyPkg.jl - test/ -- runtests.jl How do I… do test-driven development (using MyPkg/test/runtests.jl) AND use the Juno de…

---

## [Understand apply! of JuAFEM](https://discourse.julialang.org/t/understand-apply-of-juafem/35325)

<div class="topic-metadata">

**Author:** [@koehlerson](https://discourse.julialang.org/u/koehlerson)\
**Replies:** 9\
**Last updated:** [February 29, 2020, 5:44pm UTC](https://discourse.julialang.org/t/understand-apply-of-juafem/35325 "2020-02-29T17:44:05Z")

</div>

Hey there, I’m new to Julia and I wanted to transport my existing FEM Code written with FEniCS in C++ to JuAFEM code. First of all thanks to the developers of the package! My problem is a SUPG stabilized advection diff…

---

## [How would I set a generalized condition that can be passed in to index a dataframe without explicitly defining the dataframe name](https://discourse.julialang.org/t/how-would-i-set-a-generalized-condition-that-can-be-passed-in-to-index-a-dataframe-without-explicitly-defining-the-dataframe-name/35293)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 4:15pm UTC](https://discourse.julialang.org/t/how-would-i-set-a-generalized-condition-that-can-be-passed-in-to-index-a-dataframe-without-explicitly-defining-the-dataframe-name/35293 "2020-02-29T16:15:19Z")

</div>

Here is what I have now: df = df\[df\[Symbol(“PURCHASE”)\].==“SUCCESS”, :\] what I’d like to do is set a success condition variable and have something that works like the code below: success\_condition = Symbol(“PURCHASE”)…

---

## [Crash while loading any package in REPL in Juno](https://discourse.julialang.org/t/crash-while-loading-any-package-in-repl-in-juno/34870)

<div class="topic-metadata">

**Author:** [@Hrodelbert](https://discourse.julialang.org/u/Hrodelbert)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 3:21pm UTC](https://discourse.julialang.org/t/crash-while-loading-any-package-in-repl-in-juno/34870 "2020-02-29T15:21:41Z")

</div>

I recently started using Julia (version 1.0.5 LTS), until today using the cmd in Windows 10. Because of the availability of the progress bar today I installed Atom (version 1.44.0) and Juno. It correctly loads Julia in t…

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

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