# Latest

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

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

**Page:** 1356

---

## [Can't replicate neural network from Python's sklearn using Flux.jl](https://discourse.julialang.org/t/cant-replicate-neural-network-from-pythons-sklearn-using-flux-jl/63115)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 11\
**Last updated:** [June 20, 2021, 3:10pm UTC](https://discourse.julialang.org/t/cant-replicate-neural-network-from-pythons-sklearn-using-flux-jl/63115 "2021-06-20T15:10:38Z")

</div>

I have a big dataset (250k rows x 30 columns) with which I would like to train a neural network for a classification task (it should classify one of two possible classes). I’ve built this model using Python’s MLPClassifi…

---

## [SLIDE algorithm](https://discourse.julialang.org/t/slide-algorithm/38938)

<div class="topic-metadata">

**Author:** [@Emmanuel-R8](https://discourse.julialang.org/u/Emmanuel-R8)\
**Replies:** 2\
**Last updated:** [June 20, 2021, 3:08pm UTC](https://discourse.julialang.org/t/slide-algorithm/38938 "2021-06-20T15:08:57Z")

</div>

A recent algorithm developed by Rice University + Intel claims a ~3x speedup on CPU only as compared to Nvidia V100 and 10x speedup over Tensorflow CPU. https://insidehpc.com/2020/03/slide-algorithm-for-training-deep-ne…

---

## [\[ANN\] JETTest.jl: advanced testing toolset for Julia](https://discourse.julialang.org/t/ann-jettest-jl-advanced-testing-toolset-for-julia/63229)

<div class="topic-metadata">

**Author:** [@aviatesk](https://discourse.julialang.org/u/aviatesk)\
**Replies:** 6\
**Last updated:** [June 20, 2021, 2:53pm UTC](https://discourse.julialang.org/t/ann-jettest-jl-advanced-testing-toolset-for-julia/63229 "2021-06-20T14:53:55Z")

</div>

Hi all, today I’d like to announce JETTest.jl, an advanced testing toolset for the Julia programming language. It automatically detects otherwise-overlooked problems, and helps you keep your code to be robust and faster…

---

## [Rename multiple files in the folder with Julia](https://discourse.julialang.org/t/rename-multiple-files-in-the-folder-with-julia/57976)

<div class="topic-metadata">

**Author:** [@baprata](https://discourse.julialang.org/u/baprata)\
**Replies:** 9\
**Last updated:** [June 20, 2021, 11:03am UTC](https://discourse.julialang.org/t/rename-multiple-files-in-the-folder-with-julia/57976 "2021-06-20T11:03:44Z")

</div>

I am working with 800 txt files in the same directory. I would like to rename all these files as follows: 1.txt 2.txt … 799.txt 800.txt How do you think this would be possible with Julia? Thanks in advance, Bruno …

---

## ["Best practice" type piracy for package compatibility?](https://discourse.julialang.org/t/best-practice-type-piracy-for-package-compatibility/62792)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 9\
**Last updated:** [June 20, 2021, 10:51am UTC](https://discourse.julialang.org/t/best-practice-type-piracy-for-package-compatibility/62792 "2021-06-20T10:51:41Z")

</div>

I would love to know your opinion, whether the (pretty safe) type-piracy as described below is in your opinion OK, and whether this mechanism via Base.convert() could become a “best-practice” example to solve the issue o…

---

## [How to rename files with spaces in file and directory names](https://discourse.julialang.org/t/how-to-rename-files-with-spaces-in-file-and-directory-names/56727)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [June 20, 2021, 10:50am UTC](https://discourse.julialang.org/t/how-to-rename-files-with-spaces-in-file-and-directory-names/56727 "2021-06-20T10:50:12Z")

</div>

Hello, I received a big folder with a lot of files and subfolders that have spaces in their name. I am trying to write a function that replaces the spaces with underscore characters. The following code does NOT work: …

---

## [Can I import every symbol in a module into current scope?](https://discourse.julialang.org/t/can-i-import-every-symbol-in-a-module-into-current-scope/63219)

<div class="topic-metadata">

**Author:** [@melonedo](https://discourse.julialang.org/u/melonedo)\
**Replies:** 0\
**Last updated:** [June 20, 2021, 8:59am UTC](https://discourse.julialang.org/t/can-i-import-every-symbol-in-a-module-into-current-scope/63219 "2021-06-20T08:59:04Z")

</div>

I am playing around with codes in Julia Base. However, codes in the Base itself references a lot of non-exported symbol, which makes copy and pasting codes from Base to the REPL impossible. Is there a way that I can use…

---

## [Put all names on bar chart](https://discourse.julialang.org/t/put-all-names-on-bar-chart/63191)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 11:20pm UTC](https://discourse.julialang.org/t/put-all-names-on-bar-chart/63191 "2021-06-19T23:20:08Z")

</div>

Hello, I am making a bar graph of the annual income for districts within each department. I have two problems, (i) when I make the bar graph not all the names of the districts appear and (ii) is there a format so that it…

---

## [Makie marker as image](https://discourse.julialang.org/t/makie-marker-as-image/63091)

<div class="topic-metadata">

**Author:** [@miki\_berkovich](https://discourse.julialang.org/u/miki_berkovich)\
**Replies:** 3\
**Last updated:** [June 20, 2021, 8:35am UTC](https://discourse.julialang.org/t/makie-marker-as-image/63091 "2021-06-20T08:35:50Z")

</div>

Hello :slight\_smile: I got an error, which wasn’t there at the previous versions of Makie.jl. When I plot a scatter with marker set to an image as follow: # I load the following Pkg: using Makie using CairoMakie impor…

---

## [Designing a parametric type for storing bits](https://discourse.julialang.org/t/designing-a-parametric-type-for-storing-bits/63142)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 7\
**Last updated:** [June 20, 2021, 8:31am UTC](https://discourse.julialang.org/t/designing-a-parametric-type-for-storing-bits/63142 "2021-06-20T08:31:06Z")

</div>

So I want to build a barebones static BitArray and I can’t seem to use the type system properly. Here’s my first attempt at a definition: struct SBitVector{N} \<: AbstractVector{Bool} chunks::SVector{M,UInt64} l…

---

## [How to Interpolate and Extrapolate with unevenly spaced data?](https://discourse.julialang.org/t/how-to-interpolate-and-extrapolate-with-unevenly-spaced-data/62812)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 6\
**Last updated:** [June 20, 2021, 3:33am UTC](https://discourse.julialang.org/t/how-to-interpolate-and-extrapolate-with-unevenly-spaced-data/62812 "2021-06-20T03:33:23Z")

</div>

Hi, I’ve been using BSplineKit to interpolate within my data that is unevenly sampled. But now I need to extrapolate somewhat past the edges of the data on either side, and that package sets the interpolation exactly to…

---

## [Creating a Table from Regex](https://discourse.julialang.org/t/creating-a-table-from-regex/63201)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 11:36pm UTC](https://discourse.julialang.org/t/creating-a-table-from-regex/63201 "2021-06-19T23:36:14Z")

</div>

It occurred to me that it would be nice to be able to create a table from a string by providing a regex that uses named groups. nushell’s parse function (docs, example) does this. A RegexMatch has all the right things …

---

## [Manual section on plotting from script incomplete?](https://discourse.julialang.org/t/manual-section-on-plotting-from-script-incomplete/62807)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 3\
**Last updated:** [June 19, 2021, 11:21pm UTC](https://discourse.julialang.org/t/manual-section-on-plotting-from-script-incomplete/62807 "2021-06-19T23:21:16Z")

</div>

Tutorial · Plots says In a script, Julia does not do automatic displays (which is why ; is not necessary). However, if we would like to display our plots in a script, this means we just need to add the display call. Fo…

---

## [More effective function parameter?](https://discourse.julialang.org/t/more-effective-function-parameter/63160)

<div class="topic-metadata">

**Author:** [@Jojo\_Dad](https://discourse.julialang.org/u/Jojo_Dad)\
**Replies:** 9\
**Last updated:** [June 19, 2021, 10:38pm UTC](https://discourse.julialang.org/t/more-effective-function-parameter/63160 "2021-06-19T22:38:31Z")

</div>

I have a function that I frequently use function expectation(f::Function; μ=0.0, σ=1.0) and it works great for expectation(x -\> (x-1)^2) as well as a many other examples. However, when I have a variable, e.g., avg=…

---

## [Reading fixed-width files: a preliminary solution](https://discourse.julialang.org/t/reading-fixed-width-files-a-preliminary-solution/60525)

<div class="topic-metadata">

**Author:** [@jbshannon](https://discourse.julialang.org/u/jbshannon)\
**Replies:** 5\
**Last updated:** [June 19, 2021, 9:16pm UTC](https://discourse.julialang.org/t/reading-fixed-width-files-a-preliminary-solution/60525 "2021-06-19T21:16:01Z")

</div>

After browsing through the discussions about reading fixed-width files in Julia (e.g. here and here) I still hadn’t found a solution that was general enough for my case. I wrote a quick one I’d like to share here. Suppo…

---

## [Dot notation / vectorized code syntax](https://discourse.julialang.org/t/dot-notation-vectorized-code-syntax/63194)

<div class="topic-metadata">

**Author:** [@406700](https://discourse.julialang.org/u/406700)\
**Replies:** 5\
**Last updated:** [June 19, 2021, 8:38pm UTC](https://discourse.julialang.org/t/dot-notation-vectorized-code-syntax/63194 "2021-06-19T20:38:44Z")

</div>

Hi all, I’m having trouble with dot notation. Can someone show me how to write the below code without expanding the square? I included a working example below, and then the code I would like to write that’s throwing an …

---

## [Mmap Symmetric Matricies](https://discourse.julialang.org/t/mmap-symmetric-matricies/63158)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 3\
**Last updated:** [June 19, 2021, 8:30pm UTC](https://discourse.julialang.org/t/mmap-symmetric-matricies/63158 "2021-06-19T20:30:48Z")

</div>

I have a matrix that is too large to fit into memory, so I’ve decided to use Mmap to store it on disk which works perfectly. However, the matrix I’m storing is symmetric and it seems like a waste to use twice the amount …

---

## [\[ANN-RFC\] DFMacros.jl](https://discourse.julialang.org/t/ann-rfc-dfmacros-jl/62770)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 30\
**Last updated:** [June 19, 2021, 6:02pm UTC](https://discourse.julialang.org/t/ann-rfc-dfmacros-jl/62770 "2021-06-19T18:02:08Z")

</div>

Hi there, I really like using DataFrames, but what I don’t like so much is redundant syntax and creating all these anonymous functions by hand. I’ve used DataFramesMeta for a while and it’s great, but it’s not quite the…

---

## [\[ANN\] FlagSets.jl v0.3 - represent sets contained in a finite universe](https://discourse.julialang.org/t/ann-flagsets-jl-v0-3-represent-sets-contained-in-a-finite-universe/63188)

<div class="topic-metadata">

**Author:** [@jessymilare](https://discourse.julialang.org/u/jessymilare)\
**Replies:** 0\
**Last updated:** [June 19, 2021, 5:12pm UTC](https://discourse.julialang.org/t/ann-flagsets-jl-v0-3-represent-sets-contained-in-a-finite-universe/63188 "2021-06-19T17:12:13Z")

</div>

FlagSets is based on BitFlags.jl, but with a different concept: FlagSet is a subtype of AbstractSet and implement both set and bitwise operations (each bit is associated with a flag, and so a sequence of bits is associat…

---

## [\[ANN\] SparkSQL.jl release 1.0.0](https://discourse.julialang.org/t/ann-sparksql-jl-release-1-0-0/63156)

<div class="topic-metadata">

**Author:** [@propelledanalytics](https://discourse.julialang.org/u/propelledanalytics)\
**Replies:** 2\
**Last updated:** [June 19, 2021, 4:52pm UTC](https://discourse.julialang.org/t/ann-sparksql-jl-release-1-0-0/63156 "2021-06-19T16:52:43Z")

</div>

This post is announcing the availability of the SparkSQL.jl package. SparkSQL.jl is an open-source software package that enables the Julia programming language to work with Apache Spark using just SQL and Julia. Apache…

---

## [Do-while loop in Julia](https://discourse.julialang.org/t/do-while-loop-in-julia/49014)

<div class="topic-metadata">

**Author:** [@Haolun\_Li](https://discourse.julialang.org/u/Haolun_Li)\
**Replies:** 2\
**Last updated:** [June 19, 2021, 3:33pm UTC](https://discourse.julialang.org/t/do-while-loop-in-julia/49014 "2021-06-19T15:33:11Z")

</div>

Is there a way for Julia to run the content first and check the condition next? Like the do-while loop in C++? Thanks

---

## [JuliaGtk failure when called from Timer callback](https://discourse.julialang.org/t/juliagtk-failure-when-called-from-timer-callback/63183)

<div class="topic-metadata">

**Author:** [@rverdier](https://discourse.julialang.org/u/rverdier)\
**Replies:** 0\
**Last updated:** [June 19, 2021, 2:25pm UTC](https://discourse.julialang.org/t/juliagtk-failure-when-called-from-timer-callback/63183 "2021-06-19T14:25:39Z")

</div>

For a course I’m writing on Julia + Gtk, I want to include an alert function that waits for a user-specified time and then displays a message, converted from my working Python version. The Julia version fails, and I’ve …

---

## [ODE solvers - why is Matlab ode45 uncannily stable?](https://discourse.julialang.org/t/ode-solvers-why-is-matlab-ode45-uncannily-stable/63052)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 33\
**Last updated:** [June 19, 2021, 1:19pm UTC](https://discourse.julialang.org/t/ode-solvers-why-is-matlab-ode45-uncannily-stable/63052 "2021-06-19T13:19:02Z")

</div>

EDIT: Turns out I was being stupid and the reason for the discrepancies in this case was indeed a trivial tolerance setting. However, I learned a lot in this thread, so thank you to all the contributors and especially to…

---

## [Eval/quote symbol](https://discourse.julialang.org/t/eval-quote-symbol/63175)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 9:28am UTC](https://discourse.julialang.org/t/eval-quote-symbol/63175 "2021-06-19T09:28:42Z")

</div>

Why doesn’t this work on symbols, and how can I fix it? function q(x) quote y = $x end end function f(x) eval(q(x)) y end f(5) == 5 # ok f(:baz) == :baz # error

---

## [How to set a reversed colormap in a heatmap definition](https://discourse.julialang.org/t/how-to-set-a-reversed-colormap-in-a-heatmap-definition/63155)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [June 19, 2021, 3:01am UTC](https://discourse.julialang.org/t/how-to-set-a-reversed-colormap-in-a-heatmap-definition/63155 "2021-06-19T03:01:32Z")

</div>

For older Plots versions I found out that it was posssible to set the reversed colormap by c=:viridis\_r, but now it generates the error Unknown color: viridis\_r: using Plots h=0.05 y, x = range(-5, stop=5+h, step=h), …

---

## [Is SparseArrays solver parallel?](https://discourse.julialang.org/t/is-sparsearrays-solver-parallel/63163)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 0\
**Last updated:** [June 19, 2021, 12:06am UTC](https://discourse.julialang.org/t/is-sparsearrays-solver-parallel/63163 "2021-06-19T00:06:35Z")

</div>

Is the sparse solver (AX=B) from SparseArrays parallel? If yes, is it multithreaded or multiprocess?

---

## [Efficient way to simulate large system of ODEs](https://discourse.julialang.org/t/efficient-way-to-simulate-large-system-of-odes/63057)

<div class="topic-metadata">

**Author:** [@colebrookson](https://discourse.julialang.org/u/colebrookson)\
**Replies:** 5\
**Last updated:** [June 18, 2021, 10:18pm UTC](https://discourse.julialang.org/t/efficient-way-to-simulate-large-system-of-odes/63057 "2021-06-18T22:18:49Z")

</div>

Edit: So the way I proposed doing it here does work, I just made a mistake that @Oscar\_Smith pointed out, so using the functions this way is fine. Original Q: Hi there! I’m still a bit new to Julia and trying to figure…

---

## [Package precompilation fails after updating to 1.6.0](https://discourse.julialang.org/t/package-precompilation-fails-after-updating-to-1-6-0/58004)

<div class="topic-metadata">

**Author:** [@Geometh](https://discourse.julialang.org/u/Geometh)\
**Replies:** 5\
**Last updated:** [June 18, 2021, 8:21pm UTC](https://discourse.julialang.org/t/package-precompilation-fails-after-updating-to-1-6-0/58004 "2021-06-18T20:21:36Z")

</div>

Hi everyone, I am a package Developer (WavesAndEigenvalues.jl) and just updated my local Julia installation to v1.6.0. Unfortunately this leads to my local development branch failing precompilation and eventually render…

---

## [Slow hierarchical ODE model with Turing](https://discourse.julialang.org/t/slow-hierarchical-ode-model-with-turing/63145)

<div class="topic-metadata">

**Author:** [@PavanChaggar](https://discourse.julialang.org/u/PavanChaggar)\
**Replies:** 4\
**Last updated:** [June 18, 2021, 8:03pm UTC](https://discourse.julialang.org/t/slow-hierarchical-ode-model-with-turing/63145 "2021-06-18T20:03:51Z")

</div>

Hello, I’m having a great deal of trouble with the current model I’m working on. I’ve talked about it in slack but still struggling so apologies for cross posting. It’s an hierarchical model with 30 subjects, each of w…

---

## [How to automatically determine number of cores provided by cluster?](https://discourse.julialang.org/t/how-to-automatically-determine-number-of-cores-provided-by-cluster/62544)

<div class="topic-metadata">

**Author:** [@DenisTitov](https://discourse.julialang.org/u/DenisTitov)\
**Replies:** 9\
**Last updated:** [June 18, 2021, 8:00pm UTC](https://discourse.julialang.org/t/how-to-automatically-determine-number-of-cores-provided-by-cluster/62544 "2021-06-18T20:00:19Z")

</div>

I often run parallel jobs on many nodes of HPC. My university cluster uses slurm and I use ClusterManagers.jl to submit jobs to many nodes. I love that it’s so easy to modify my code to run on 100s of cores! For examp…

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

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