# Latest

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

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

**Page:** 1694

---

## [Can not input a hundredth in Jupyter code cell](https://discourse.julialang.org/t/can-not-input-a-hundredth-in-jupyter-code-cell/42848)

<div class="topic-metadata">

**Author:** [@zazizoma](https://discourse.julialang.org/u/zazizoma)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 2:29pm UTC](https://discourse.julialang.org/t/can-not-input-a-hundredth-in-jupyter-code-cell/42848 "2020-07-10T14:29:03Z")

</div>

Hello, I’m skipping along nicely in Julia with Jupyter until I need to type a decimal with a 0, such as .01, .001, etc. I can get as far as .0 and then the kernel crashes. This problem persists regardless of restarting k…

---

## [Comparation with Flux leads to odd results in Flux](https://discourse.julialang.org/t/comparation-with-flux-leads-to-odd-results-in-flux/42839)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [July 10, 2020, 1:39pm UTC](https://discourse.julialang.org/t/comparation-with-flux-leads-to-odd-results-in-flux/42839 "2020-07-10T13:39:23Z")

</div>

Hello, I’m developing a toy ML library (BetaML) to learn a bit about ML algorithms (I’m pretty a newbie). I tested BetaML with a bike sharing demand forecast example and compared it with Flux: https://github.com/sylva…

---

## [Taking Complex Autodiff Seriously in ChainRules](https://discourse.julialang.org/t/taking-complex-autodiff-seriously-in-chainrules/39317)

<div class="topic-metadata">

**Author:** [@Mason](https://discourse.julialang.org/u/Mason)\
**Replies:** 65\
**Last updated:** [July 10, 2020, 1:45pm UTC](https://discourse.julialang.org/t/taking-complex-autodiff-seriously-in-chainrules/39317 "2020-07-10T13:45:07Z")

</div>

So these conversations have been starting up recently again on the Slack autodiff channel and in places like Complex numbers · Issue #159 · JuliaDiff/ChainRulesCore.jl · GitHub. I think there’s a lot of misconceptions o…

---

## [Can you prevent Julia from erroring out when solving ODE problem, if Domain Error arises?](https://discourse.julialang.org/t/can-you-prevent-julia-from-erroring-out-when-solving-ode-problem-if-domain-error-arises/42842)

<div class="topic-metadata">

**Author:** [@cbasile21](https://discourse.julialang.org/u/cbasile21)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 1:41pm UTC](https://discourse.julialang.org/t/can-you-prevent-julia-from-erroring-out-when-solving-ode-problem-if-domain-error-arises/42842 "2020-07-10T13:41:33Z")

</div>

say you have a parameter in a ODE system of equations. x = (u\[1\]) ^ 0.8 du\[1\] = x - k\_elim (Downstream effects are unaffected ( lets pretend) – So is Good output I dont want to waste. du\[2\]= (…) As an example. Let…

---

## [Flux.jl: Initializing Parameters in Specified Range](https://discourse.julialang.org/t/flux-jl-initializing-parameters-in-specified-range/42621)

<div class="topic-metadata">

**Author:** [@astroboy](https://discourse.julialang.org/u/astroboy)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 12:45pm UTC](https://discourse.julialang.org/t/flux-jl-initializing-parameters-in-specified-range/42621 "2020-07-10T12:45:07Z")

</div>

Hello! I hope you’re all doing well. I’m trying to figure out how to initialize the parameters of a simple Dense layer object uniformly in a range that I specify. I know that I can access how the layer parameters are in…

---

## [Convert Dates.DateTime to int64 since epoch](https://discourse.julialang.org/t/convert-dates-datetime-to-int64-since-epoch/42802)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 13\
**Last updated:** [July 10, 2020, 9:23am UTC](https://discourse.julialang.org/t/convert-dates-datetime-to-int64-since-epoch/42802 "2020-07-10T09:23:25Z")

</div>

What’s the correct way of converting DateTime to number of milliseconds since epoch? The function datetime2unix returns float.

---

## [How to merge docstrings of constructors with and without type parameters?](https://discourse.julialang.org/t/how-to-merge-docstrings-of-constructors-with-and-without-type-parameters/42830)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [July 10, 2020, 10:28am UTC](https://discourse.julialang.org/t/how-to-merge-docstrings-of-constructors-with-and-without-type-parameters/42830 "2020-07-10T10:28:04Z")

</div>

I have a struct struct HalfIntArray{T,N,A\<:AbstractArray} \<: AbstractHalfIntegerArray{T,N} parent :: A offsets :: NTuple{N,HalfInt} end for which I have two different sets of constructors: """ docstring 1 """ …

---

## [Syntactic sugar for dispatch on a single type parameter](https://discourse.julialang.org/t/syntactic-sugar-for-dispatch-on-a-single-type-parameter/42719)

<div class="topic-metadata">

**Author:** [@michakraus](https://discourse.julialang.org/u/michakraus)\
**Replies:** 8\
**Last updated:** [July 10, 2020, 8:37am UTC](https://discourse.julialang.org/t/syntactic-sugar-for-dispatch-on-a-single-type-parameter/42719 "2020-07-10T08:37:29Z")

</div>

I have some code using traits, where I want to dispatch on a specific type parameter of a function argument. Is there a shortcut for omitting the other parameters, if the one I want to dispatch on is not the first parame…

---

## [Gradient of fields in data structure](https://discourse.julialang.org/t/gradient-of-fields-in-data-structure/42820)

<div class="topic-metadata">

**Author:** [@mopg](https://discourse.julialang.org/u/mopg)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 6:40am UTC](https://discourse.julialang.org/t/gradient-of-fields-in-data-structure/42820 "2020-07-10T06:40:11Z")

</div>

I am trying to do some design optimization using a gradient-based method. For that I have written an analysis code that has a ton of parameters (some of which I want to optimize), that are stored in data structures (stru…

---

## [Multithreading shuffle](https://discourse.julialang.org/t/multithreading-shuffle/42699)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 7\
**Last updated:** [July 10, 2020, 6:31am UTC](https://discourse.julialang.org/t/multithreading-shuffle/42699 "2020-07-10T06:31:32Z")

</div>

I wanted to port a parallel in-place shuffle algorithm, mergeshuffle: paper, repo it basically works by splitting the array into k subarrays, shuffling them in parallel. Followed by merging neighboring subarrays (in a …

---

## [Using Blink for web scraping à la Selenium?](https://discourse.julialang.org/t/using-blink-for-web-scraping-a-la-selenium/30094)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 7\
**Last updated:** [July 10, 2020, 5:24am UTC](https://discourse.julialang.org/t/using-blink-for-web-scraping-a-la-selenium/30094 "2020-07-10T05:24:10Z")

</div>

I have been a user of RSelenium for web scraping websites which make use of JavaScript. I am considering implementing a Julia binding for Selenium, but I wanted to first check whether Blink would work as a web-driver to …

---

## [Juno REPL on Windows](https://discourse.julialang.org/t/juno-repl-on-windows/42823)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 0\
**Last updated:** [July 10, 2020, 5:17am UTC](https://discourse.julialang.org/t/juno-repl-on-windows/42823 "2020-07-10T05:17:18Z")

</div>

I normally use Linux, but today I’m trying to run Juno on Windows 10 and the REPL is proving to be pain. I have uber-juno installed in Atom, and I’ve even manually run: pkg\> add Juno pkg\> add Atom pkg\> add LanguageServe…

---

## [Difficulty with cookies and setting login information](https://discourse.julialang.org/t/difficulty-with-cookies-and-setting-login-information/42804)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 0\
**Last updated:** [July 9, 2020, 9:14pm UTC](https://discourse.julialang.org/t/difficulty-with-cookies-and-setting-login-information/42804 "2020-07-09T21:14:51Z")

</div>

I am having difficulty using HTTP.jl to login to a page by passing the username and the password. This is the site’s HTML for the login form: \<form id="login\_form" name="login\_form" class="form-horizontal" method="post"…

---

## [Reducing package loading time](https://discourse.julialang.org/t/reducing-package-loading-time/42774)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 4\
**Last updated:** [July 10, 2020, 12:43am UTC](https://discourse.julialang.org/t/reducing-package-loading-time/42774 "2020-07-10T00:43:08Z")

</div>

I run my Julia application as: julia st.jl The st.jl file starts with: t0 = time\_ns() using StaticArrays, LoopVectorization using SIMD, Formatting using BSON: @save, @load t1 = time\_ns() It takes over 3s for this p…

---

## [Finite smallest float in Julia](https://discourse.julialang.org/t/finite-smallest-float-in-julia/42805)

<div class="topic-metadata">

**Author:** [@rogeriog](https://discourse.julialang.org/u/rogeriog)\
**Replies:** 5\
**Last updated:** [July 10, 2020, 12:02am UTC](https://discourse.julialang.org/t/finite-smallest-float-in-julia/42805 "2020-07-10T00:02:51Z")

</div>

I have a program in C++ which uses the definition of smallest finite double double FPMIN = std::numeric\_limits\<double\>::min() / EPS; From reference: std::numeric\_limits\<T\>::min - cppreference.com I’m trying to transla…

---

## [Aggregate deprecated use combine](https://discourse.julialang.org/t/aggregate-deprecated-use-combine/42809)

<div class="topic-metadata">

**Author:** [@jguo](https://discourse.julialang.org/u/jguo)\
**Replies:** 6\
**Last updated:** [July 9, 2020, 11:25pm UTC](https://discourse.julialang.org/t/aggregate-deprecated-use-combine/42809 "2020-07-09T23:25:28Z")

</div>

dear Julia Community, I am new to Julia. Here is my problem using aggregate function. using DataFrames df6 = DataFrame(Group = rand(\["A", "B", "C"\], 15), Variable1 = randn(15), Variable2 = rand(15)); aggregate(df6, :G…

---

## [Julia Syntax highlighting on websites](https://discourse.julialang.org/t/julia-syntax-highlighting-on-websites/42666)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 16\
**Last updated:** [July 9, 2020, 10:45pm UTC](https://discourse.julialang.org/t/julia-syntax-highlighting-on-websites/42666 "2020-07-09T22:45:01Z")

</div>

I recently encountered an issue when trying to do syntax highlighting Julia code on my blog. An example: A C++ example: Both are done with Franklin.jl using highlightjs. I recon that Documenter has the same pro…

---

## [A call for Julia Articles on freeCodeCamp.org](https://discourse.julialang.org/t/a-call-for-julia-articles-on-freecodecamp-org/42807)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 1\
**Last updated:** [July 9, 2020, 9:53pm UTC](https://discourse.julialang.org/t/a-call-for-julia-articles-on-freecodecamp-org/42807 "2020-07-09T21:53:53Z")

</div>

Hey all, the Julia Language has the opportunity to develop some beginner Julia articles for freeCodeCamp’s website. In case you are not familiar, freeCodeCamp provides educational resources for those interested in learni…

---

## [Memory allocation: funny counting](https://discourse.julialang.org/t/memory-allocation-funny-counting/32027)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 9\
**Last updated:** [July 9, 2020, 9:44pm UTC](https://discourse.julialang.org/t/memory-allocation-funny-counting/32027 "2020-07-09T21:44:42Z")

</div>

With Julia 1.3, julia --track-allocation=user. 0 lambda = E \* nu / (1 + nu) / (1 - 2\*(nu)); 0 mu = E / 2. / (1+nu); 860578 mI = diagm(0=\>\[1, 1, 1, 0.5, 0.5, 0.5\]); 768 m1m1 = \_m1…

---

## [Setdiff along a dimension](https://discourse.julialang.org/t/setdiff-along-a-dimension/42801)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 9:25pm UTC](https://discourse.julialang.org/t/setdiff-along-a-dimension/42801 "2020-07-09T21:25:30Z")

</div>

Hello, I am transferring some code from Matlab. In Matlab, the function setdiff can take as input two 2D-arrays A and B, and returns the rows of A that are not in B. In Julia, setdiff is working on collection of iterab…

---

## [How to maintain environment variable set in Shell?](https://discourse.julialang.org/t/how-to-maintain-environment-variable-set-in-shell/42763)

<div class="topic-metadata">

**Author:** [@Norman](https://discourse.julialang.org/u/Norman)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 9:06pm UTC](https://discourse.julialang.org/t/how-to-maintain-environment-variable-set-in-shell/42763 "2020-07-09T21:06:12Z")

</div>

I was trying to execute files that load Pardiso.jl which requires an environment variable MKLROOT. I have set MKLROOT in shell (zsh) by having source /opt/intel/mkl/bin/mklvars.sh intel64 in .zshrc. The package works nor…

---

## [How to completely remove a local package?](https://discourse.julialang.org/t/how-to-completely-remove-a-local-package/42799)

<div class="topic-metadata">

**Author:** [@sunjin](https://discourse.julialang.org/u/sunjin)\
**Replies:** 21\
**Last updated:** [July 9, 2020, 9:01pm UTC](https://discourse.julialang.org/t/how-to-completely-remove-a-local-package/42799 "2020-07-09T21:01:26Z")

</div>

I am new to julia and I recently developed an experimental package using these procedures: generate mypackge, entered the directory, followed by activate . and dev ., and add mypackage to be able to do using mypackage an…

---

## [Multigrid solver prototype (GMG) and simple Lid Cavity solver](https://discourse.julialang.org/t/multigrid-solver-prototype-gmg-and-simple-lid-cavity-solver/41969)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 37\
**Last updated:** [July 9, 2020, 1:48pm UTC](https://discourse.julialang.org/t/multigrid-solver-prototype-gmg-and-simple-lid-cavity-solver/41969 "2020-07-09T13:48:21Z")

</div>

The following GitHub - triscale-innov/LidJul.jl: GMG, Poisson solver and Lid cavity repo contains a simple Julia implementation of a Geometric Multi-Grid (GMG) solver. This solver is compared with available Julia linear …

---

## [Using VSCode and its linter on my project](https://discourse.julialang.org/t/using-vscode-and-its-linter-on-my-project/42800)

<div class="topic-metadata">

**Author:** [@jonathan-laurent](https://discourse.julialang.org/u/jonathan-laurent)\
**Replies:** 0\
**Last updated:** [July 9, 2020, 7:46pm UTC](https://discourse.julialang.org/t/using-vscode-and-its-linter-on-my-project/42800 "2020-07-09T19:46:24Z")

</div>

Hi, I am trying to use Julia’s vscode plugin to develop my AlphaZero.jl package but I am running into a few bumps. My repo is organized in a pretty standard way: I have a src folder that defines the AlphaZero module an…

---

## [Pre-runtime](https://discourse.julialang.org/t/pre-runtime/42622)

<div class="topic-metadata">

**Author:** [@Kiuhnm\_Mnhuik](https://discourse.julialang.org/u/Kiuhnm_Mnhuik)\
**Replies:** 11\
**Last updated:** [July 9, 2020, 7:53pm UTC](https://discourse.julialang.org/t/pre-runtime/42622 "2020-07-09T19:53:41Z")

</div>

Since Julia blurs the line between compile time and runtime, shouldn’t we talk about pre-runtime and runtime instead? For instance, can Julia catch type errors at pre-runtime? I hate when my Python code crashes for stu…

---

## [View all functions exported in a package](https://discourse.julialang.org/t/view-all-functions-exported-in-a-package/42794)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 6:54pm UTC](https://discourse.julialang.org/t/view-all-functions-exported-in-a-package/42794 "2020-07-09T18:54:52Z")

</div>

Suppose I want to see all functions exported (& not exported) in a package, how can I do this? Suppose I load two packages which include a function train w/ the same, how can I compare all functions side by side to quic…

---

## [Calculating all possible combinations](https://discourse.julialang.org/t/calculating-all-possible-combinations/42789)

<div class="topic-metadata">

**Author:** [@Alex\_Z](https://discourse.julialang.org/u/Alex_Z)\
**Replies:** 8\
**Last updated:** [July 9, 2020, 6:52pm UTC](https://discourse.julialang.org/t/calculating-all-possible-combinations/42789 "2020-07-09T18:52:04Z")

</div>

Hello. I’m having trouble finding an efficient way to calculate all possible combinations from a set of vectors. When they are small using kron\[a,b,c\] where a,b and c are vectors yields good results but the problem occ…

---

## [In Plots.jl, how does one control the space between ylabel and yaxis?](https://discourse.julialang.org/t/in-plots-jl-how-does-one-control-the-space-between-ylabel-and-yaxis/5717)

<div class="topic-metadata">

**Author:** [@mwsohn](https://discourse.julialang.org/u/mwsohn)\
**Replies:** 14\
**Last updated:** [July 9, 2020, 6:44pm UTC](https://discourse.julialang.org/t/in-plots-jl-how-does-one-control-the-space-between-ylabel-and-yaxis/5717 "2020-07-09T18:44:46Z")

</div>

I don’t seem to find any example or documentation about this.

---

## [How to use Gurobi variable hints in JuMP 0.21](https://discourse.julialang.org/t/how-to-use-gurobi-variable-hints-in-jump-0-21/42764)

<div class="topic-metadata">

**Author:** [@ryancorywright](https://discourse.julialang.org/u/ryancorywright)\
**Replies:** 3\
**Last updated:** [July 9, 2020, 4:33pm UTC](https://discourse.julialang.org/t/how-to-use-gurobi-variable-hints-in-jump-0-21/42764 "2020-07-09T16:33:27Z")

</div>

Hi, I was wondering whether it was possible to access the Gurobi variable hint attributes VarHintVal using JuMP, or failing that by accessing a lower level model. As a concrete working example, suppose that I’m solving…

---

## [Installing Julia 1.4.2 in Ubuntu. Invalid Instruction?](https://discourse.julialang.org/t/installing-julia-1-4-2-in-ubuntu-invalid-instruction/42791)

<div class="topic-metadata">

**Author:** [@Ramiro\_Bravo](https://discourse.julialang.org/u/Ramiro_Bravo)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 4:12pm UTC](https://discourse.julialang.org/t/installing-julia-1-4-2-in-ubuntu-invalid-instruction/42791 "2020-07-09T16:12:22Z")

</div>

I downloaded and extracted Julia-1.4.2 for Linux in an Ubuntu 20 computer following the instructions on the download page. I tried to run the Julia command inside the bin directory and I receive a long message starting w…

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

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