# Latest

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

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

**Page:** 1620

---

## [X positions of boxplot in StatsPlots](https://discourse.julialang.org/t/x-positions-of-boxplot-in-statsplots/47314)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 0\
**Last updated:** [September 26, 2020, 2:23pm UTC](https://discourse.julialang.org/t/x-positions-of-boxplot-in-statsplots/47314 "2020-09-26T14:23:48Z")

</div>

This may be a naive way to be constructing them, but I am making boxplots in the following way: using StatsPlots x1 = randn(100); # A group x2 = rand(100); # B group boxplot(\["A"\], x1,label="") boxplot!(\["B"\], x2,label…

---

## [Plotting in log scale with zeros](https://discourse.julialang.org/t/plotting-in-log-scale-with-zeros/47260)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 3\
**Last updated:** [September 26, 2020, 2:11pm UTC](https://discourse.julialang.org/t/plotting-in-log-scale-with-zeros/47260 "2020-09-26T14:11:47Z")

</div>

When using Plots.jl, is there a straightforward way to plot on log scale with data which might contain zeros? When using matplotlib in Python, these values are just filtered and an image is still rendered, but Plots.jl …

---

## [How to change the return-value of homedir()](https://discourse.julialang.org/t/how-to-change-the-return-value-of-homedir/47271)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 7\
**Last updated:** [September 26, 2020, 1:49pm UTC](https://discourse.julialang.org/t/how-to-change-the-return-value-of-homedir/47271 "2020-09-26T13:49:14Z")

</div>

So I want to change the starting location in my file-tree when I use Jupyter. From what I understand, Jupiter opens up the file tree at the location returned by homedir(). So my question is, how can I change this value p…

---

## [Brackets as an operator](https://discourse.julialang.org/t/brackets-as-an-operator/47305)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 10\
**Last updated:** [September 26, 2020, 12:55pm UTC](https://discourse.julialang.org/t/brackets-as-an-operator/47305 "2020-09-26T12:55:24Z")

</div>

Is there a way to define an operator not as a symbol, but as brackets? An example: a commutator \[a::MyType, b::Mytype\] = a\*b - b\*a

---

## [Segmentation fault in dot function](https://discourse.julialang.org/t/segmentation-fault-in-dot-function/47308)

<div class="topic-metadata">

**Author:** [@nebula](https://discourse.julialang.org/u/nebula)\
**Replies:** 3\
**Last updated:** [September 26, 2020, 12:32pm UTC](https://discourse.julialang.org/t/segmentation-fault-in-dot-function/47308 "2020-09-26T12:32:36Z")

</div>

Code : using LinearAlgebra function main() len = 100000 a = rand(Float64, len) b = rand(Float64, len) for i in 1:len u = @view a\[1:i\] b = b .- b\[1\] v = @view b\[i:-1:1\] b\[…

---

## [Connecting to sybase ase databases](https://discourse.julialang.org/t/connecting-to-sybase-ase-databases/46934)

<div class="topic-metadata">

**Author:** [@Hartshorn](https://discourse.julialang.org/u/Hartshorn)\
**Replies:** 6\
**Last updated:** [September 26, 2020, 12:10pm UTC](https://discourse.julialang.org/t/connecting-to-sybase-ase-databases/46934 "2020-09-26T12:10:59Z")

</div>

I have an interest in attempting to use Julia with a sybase database. Just looking for some ideas on if this might be possible / impossible or more of a challenge than its worth. Anyone with experience attempting this? …

---

## [Juno toolbar not showing on my Windows 10 setup](https://discourse.julialang.org/t/juno-toolbar-not-showing-on-my-windows-10-setup/9631)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 9\
**Last updated:** [September 26, 2020, 11:24am UTC](https://discourse.julialang.org/t/juno-toolbar-not-showing-on-my-windows-10-setup/9631 "2020-09-26T11:24:31Z")

</div>

I have installed Atom and installed the package “julia-client 0.6.10” on my Windows 10 machine. In the UI Options I checked Enable toolbar and in the console options I checked “First Boot” and “Enable Tool Bar” then I re…

---

## [Plotting in pyplot: z coordinate always becomes zero when plotted using the scatter when xlims,ylims and zlims are given](https://discourse.julialang.org/t/plotting-in-pyplot-z-coordinate-always-becomes-zero-when-plotted-using-the-scatter-when-xlims-ylims-and-zlims-are-given/47255)

<div class="topic-metadata">

**Author:** [@manvibharat](https://discourse.julialang.org/u/manvibharat)\
**Replies:** 7\
**Last updated:** [September 26, 2020, 10:58am UTC](https://discourse.julialang.org/t/plotting-in-pyplot-z-coordinate-always-becomes-zero-when-plotted-using-the-scatter-when-xlims-ylims-and-zlims-are-given/47255 "2020-09-26T10:58:12Z")

</div>

The package used is pyplot: using Plots; pyplot() This plot scatter3d(\[0\],\[1\],\[100\], xlims=(-100,100),ylims=(-100,100), zlims=(-100,100),c=:red,markersize=5) and also this plot scatter3d(\[0\],\[1\],\[100\], xlims=(-100,1…

---

## [Text template engines](https://discourse.julialang.org/t/text-template-engines/33865)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 6\
**Last updated:** [September 26, 2020, 9:52am UTC](https://discourse.julialang.org/t/text-template-engines/33865 "2020-09-26T09:52:58Z")

</div>

Are there any generic template engines for Julia, like Mako, Jinja and others are for Python? I couldn’t find any, and website generators in Julia (e.g. JuDoc, Franklin) don’t seem to use template engines either. Am I mi…

---

## [\[ANN\] Javis 0.2.0: Julia Animations and Visualizations](https://discourse.julialang.org/t/ann-javis-0-2-0-julia-animations-and-visualizations/47298)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 2\
**Last updated:** [September 26, 2020, 7:52am UTC](https://discourse.julialang.org/t/ann-javis-0-2-0-julia-animations-and-visualizations/47298 "2020-09-26T07:52:35Z")

</div>

Hi everyone! @Wikunia and I are proud to announce the v0.2.0 release of Javis.jl!:tada: :tada: :tada: This release greatly improves the overall process for working with Javis to create animations. :sparkles: Some n…

---

## [@generated inside macro: who's interpolating?](https://discourse.julialang.org/t/generated-inside-macro-whos-interpolating/46895)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 13\
**Last updated:** [September 26, 2020, 4:34am UTC](https://discourse.julialang.org/t/generated-inside-macro-whos-interpolating/46895 "2020-09-26T04:34:06Z")

</div>

I have a macro to generate code for “many” binary operations. The macro generates several functions, including a @generated function so that I can generate code for any combination of subtypes. A crash reproduction of …

---

## [Searching for similar text records. What tools?](https://discourse.julialang.org/t/searching-for-similar-text-records-what-tools/47300)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 0\
**Last updated:** [September 26, 2020, 6:30am UTC](https://discourse.julialang.org/t/searching-for-similar-text-records-what-tools/47300 "2020-09-26T06:30:21Z")

</div>

What tools do you recommend for searching for similar text records. The database of companies is multiplied by manual mistakes, zip code, street name, etc. … Of course I already use String Distances. Any other tools? P…

---

## [Type inference for nested iterators](https://discourse.julialang.org/t/type-inference-for-nested-iterators/47082)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 16\
**Last updated:** [September 25, 2020, 9:16pm UTC](https://discourse.julialang.org/t/type-inference-for-nested-iterators/47082 "2020-09-25T21:16:36Z")

</div>

In this thread, I wrote this function: using Base.Iterators function foo(itr, n, fillvalue) ntake = ceil(Int, length(itr)/n) extended\_itr = flatten( ( itr, repeated(fillvalue) ) ) take(partition(extended\_it…

---

## [Race condition in online plotting with Makie](https://discourse.julialang.org/t/race-condition-in-online-plotting-with-makie/47258)

<div class="topic-metadata">

**Author:** [@jagot](https://discourse.julialang.org/u/jagot)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 9:08pm UTC](https://discourse.julialang.org/t/race-condition-in-online-plotting-with-makie/47258 "2020-09-25T21:08:23Z")

</div>

I’m time stepping a problem and want to plot various quantities as the solver progresses. Inspired by this post, I came up with the following: using Makie using AbstractPlotting.MakieLayout using AbstractPlotting using …

---

## [Dropmissing!() on a dataframe causes segfault](https://discourse.julialang.org/t/dropmissing-on-a-dataframe-causes-segfault/47101)

<div class="topic-metadata">

**Author:** [@scone](https://discourse.julialang.org/u/scone)\
**Replies:** 8\
**Last updated:** [September 25, 2020, 7:35pm UTC](https://discourse.julialang.org/t/dropmissing-on-a-dataframe-causes-segfault/47101 "2020-09-25T19:35:23Z")

</div>

I have code that was working just a week ago, and now when I get to the line with dropmissing!(df), I get this: MethodError: Cannot \`convert\` an object of type Missing to an object of type Float64 Closest candidates are…

---

## [Help generating an Expression](https://discourse.julialang.org/t/help-generating-an-expression/47283)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 3\
**Last updated:** [September 25, 2020, 7:34pm UTC](https://discourse.julialang.org/t/help-generating-an-expression/47283 "2020-09-25T19:34:09Z")

</div>

I have some wide-formatted data that I need to group and summarize. A MWE is below: using DataFramesMeta df = DataFrame( id = repeat(1:5, inner=3), a\_1 = rand(15), a\_2 = rand(15), a\_3 = rand(15), b\_…

---

## [DiffEqFlux.sciml\_train is slow](https://discourse.julialang.org/t/diffeqflux-sciml-train-is-slow/47155)

<div class="topic-metadata">

**Author:** [@checco.jike](https://discourse.julialang.org/u/checco.jike)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 7:28pm UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train-is-slow/47155 "2020-09-25T19:28:18Z")

</div>

Hi all! I’m trying to train the Universal Differential Equations learning with DiffEqFlux.sciml\_train Here is the code relative to the 1D problem: https://github.com/ChrisRackauckas/universal\_differential\_equations/blo…

---

## [\[ANN\] Pretend.jl](https://discourse.julialang.org/t/ann-pretend-jl/47282)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 0\
**Last updated:** [September 25, 2020, 6:19pm UTC](https://discourse.julialang.org/t/ann-pretend-jl/47282 "2020-09-25T18:19:15Z")

</div>

Hi there, Pretend.jl is a tool for writing functions that can be mocked easily. For the sake of simplicity, I’m using the word “mock” for all kinds of testing doubles. Such tool is very useful when working on software …

---

## [Finite Difference, calculating the differentiation matrix, etc](https://discourse.julialang.org/t/finite-difference-calculating-the-differentiation-matrix-etc/47180)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 6\
**Last updated:** [September 25, 2020, 4:01pm UTC](https://discourse.julialang.org/t/finite-difference-calculating-the-differentiation-matrix-etc/47180 "2020-09-25T16:01:43Z")

</div>

Hello, I have been trying to solve vorticity and streamfunctions using finite-difference methods using linear algebra. However, when I calculate the streamfunction \\psi using the formula \\zeta = \\nabla^2\\psi I get ext…

---

## [Flux & Plots](https://discourse.julialang.org/t/flux-plots/30107)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 3:59pm UTC](https://discourse.julialang.org/t/flux-plots/30107 "2020-09-25T15:59:55Z")

</div>

Overview I have good experience with Flux in the past, but now have problems with fitting a 2-input, 1-output data set: the result is rather different from what I get with linear regression. Also, I struggle with doing …

---

## [Strange behaviour with if-else-Statements](https://discourse.julialang.org/t/strange-behaviour-with-if-else-statements/47266)

<div class="topic-metadata">

**Author:** [@SonntagK](https://discourse.julialang.org/u/SonntagK)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 3:47pm UTC](https://discourse.julialang.org/t/strange-behaviour-with-if-else-statements/47266 "2020-09-25T15:47:24Z")

</div>

Hello, I’m new to Julia and working with Julia/JuMP for optimization purposes. I want to use if-else-statements in the constraints I’m defining to write them more compact. When trying so I ran in some strange behaviour. …

---

## [Problems updating from JuMP 0.21.4 to 0.21.5](https://discourse.julialang.org/t/problems-updating-from-jump-0-21-4-to-0-21-5/47145)

<div class="topic-metadata">

**Author:** [@gbustosx](https://discourse.julialang.org/u/gbustosx)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 3:39pm UTC](https://discourse.julialang.org/t/problems-updating-from-jump-0-21-4-to-0-21-5/47145 "2020-09-25T15:39:33Z")

</div>

Hi, all, I can’t seem to update from JuMP 0.21.4 to 0.21.5, should I go back to 0.21.3 firtst? Many thanks!

---

## [Weird allocations](https://discourse.julialang.org/t/weird-allocations/47267)

<div class="topic-metadata">

**Author:** [@mikkoku](https://discourse.julialang.org/u/mikkoku)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 2:55pm UTC](https://discourse.julialang.org/t/weird-allocations/47267 "2020-09-25T14:55:27Z")

</div>

I was working some numeric integration stuff when I encountered a lot of small allocations for which I couldn’t find a source for. Here is a MWE demonstrating the behaviour function f1(f, x) s = 0.0 for i in 1:…

---

## [Flipping Bits in a Sparse Matrix- Expanding stored entries](https://discourse.julialang.org/t/flipping-bits-in-a-sparse-matrix-expanding-stored-entries/47265)

<div class="topic-metadata">

**Author:** [@Phillip\_Sutton](https://discourse.julialang.org/u/Phillip_Sutton)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 2:38pm UTC](https://discourse.julialang.org/t/flipping-bits-in-a-sparse-matrix-expanding-stored-entries/47265 "2020-09-25T14:38:26Z")

</div>

My sparse bit array is not dropping non zeros when flipping bits between rows (assignment optimization problem) 8766×11125 SparseArrays.SparseMatrixCSC{Bool,Int64} with 8766 stored entries: \[7244, 1\] = 1 \[2111,…

---

## [Solver for a robust model](https://discourse.julialang.org/t/solver-for-a-robust-model/47088)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 2:16pm UTC](https://discourse.julialang.org/t/solver-for-a-robust-model/47088 "2020-09-25T14:16:57Z")

</div>

I believe that the solver is suitable for robust models, but I cannot obtain the result of the compilation. (template for study taken from the website: https://jumper.readthedocs.io/en/latest/jumper.htm using JuMP, JuM…

---

## [Change spacing between xticks](https://discourse.julialang.org/t/change-spacing-between-xticks/47257)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 3\
**Last updated:** [September 25, 2020, 2:08pm UTC](https://discourse.julialang.org/t/change-spacing-between-xticks/47257 "2020-09-25T14:08:41Z")

</div>

Hiii, I would like to stack a bar plot and a box plot and have their boxes align. But I can’t find a way to do this. Here’s a MWE : using DataFrames, StatsPlots, StatsBase df = DataFrame(a = rand(1:6, 30), b = rand(30)…

---

## [\[Resolved\] Return in @model](https://discourse.julialang.org/t/resolved-return-in-model/47140)

<div class="topic-metadata">

**Author:** [@mcql](https://discourse.julialang.org/u/mcql)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 1:59pm UTC](https://discourse.julialang.org/t/resolved-return-in-model/47140 "2020-09-25T13:59:10Z")

</div>

Hello, I would like to know what is the meaning of the return statement in a @model block in Turing. In the documentation only some example use return in the model definition. The samples generation works as well witho…

---

## [Whitespace as missingstring in CSV.File()](https://discourse.julialang.org/t/whitespace-as-missingstring-in-csv-file/47245)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 1:57pm UTC](https://discourse.julialang.org/t/whitespace-as-missingstring-in-csv-file/47245 "2020-09-25T13:57:23Z")

</div>

I have a CSV file which has all of "" (empty string), " " (1x whitespace), and " " (2x whitespace) as missing values (horrible, I know). I tried tackling it with CSV.File(file, missingstrings = \["", " ", " "\]) but appa…

---

## [Yet another function/loop scope question](https://discourse.julialang.org/t/yet-another-function-loop-scope-question/47241)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 1:15pm UTC](https://discourse.julialang.org/t/yet-another-function-loop-scope-question/47241 "2020-09-25T13:15:54Z")

</div>

Thanks for your patience with such a simple question, but I’m stumped. In a function, I want to: Declare a vector of vectors Iterate through two loops and update the original vector of vectors Return the vector of vect…

---

## [Why does changing this indexing slows the code so much?](https://discourse.julialang.org/t/why-does-changing-this-indexing-slows-the-code-so-much/47246)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 12:30pm UTC](https://discourse.julialang.org/t/why-does-changing-this-indexing-slows-the-code-so-much/47246 "2020-09-25T12:30:28Z")

</div>

Hi, I was trying to play around with the implementation of fsortperm in SortingLab.jl and wanted to try making an implementation to just compute directly the sorted indices rather than sorting both the values vector and…

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

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