# Latest

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

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

**Page:** 1984

---

## [Problem with a variable](https://discourse.julialang.org/t/problem-with-a-variable/24954)

<div class="topic-metadata">

**Author:** [@opihor](https://discourse.julialang.org/u/opihor)\
**Replies:** 2\
**Last updated:** [June 5, 2019, 2:17pm UTC](https://discourse.julialang.org/t/problem-with-a-variable/24954 "2019-06-05T14:17:09Z")

</div>

Why this code doesn’t work ? I have the error : maxL not defined " maxL=0 for j in 1:size(jobs\_in\_file,1) if ((ordered\_jobs\[j\].start\_time + ordered\_jobs\[j\].proc) \> ordered\_jobs\[j\].due) maxl1 = maxL + 0 maxL = max(o…

---

## [How to test whether a function is dispatched correctly?](https://discourse.julialang.org/t/how-to-test-whether-a-function-is-dispatched-correctly/24959)

<div class="topic-metadata">

**Author:** [@1115](https://discourse.julialang.org/u/1115)\
**Replies:** 14\
**Last updated:** [June 5, 2019, 2:04pm UTC](https://discourse.julialang.org/t/how-to-test-whether-a-function-is-dispatched-correctly/24959 "2019-06-05T14:04:20Z")

</div>

e.g. foo(x::Int) = fpp(x) foo(x::Float64) = fqq(x) @test iscalled(foo, 1.0, fqq)

---

## [Error while building julia's documentation](https://discourse.julialang.org/t/error-while-building-julias-documentation/24951)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 9\
**Last updated:** [June 5, 2019, 1:50pm UTC](https://discourse.julialang.org/t/error-while-building-julias-documentation/24951 "2019-06-05T13:50:42Z")

</div>

I found a small formatting issue in the documentation that I would like to fix (and also learn from the process). Cloned my fork of julia and tried to run make docs (as described in the contribution guide and the documen…

---

## [How to take values from imgui inputs?](https://discourse.julialang.org/t/how-to-take-values-from-imgui-inputs/24938)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 1\
**Last updated:** [June 5, 2019, 8:13am UTC](https://discourse.julialang.org/t/how-to-take-values-from-imgui-inputs/24938 "2019-06-05T08:13:54Z")

</div>

Hi, I want to use some values from imgui inputs: CImGui.Begin("Pop-up menu") CImGui.Button("Stacked modals..") && CImGui.OpenPopup("Stacked 1") if CImGui.BeginPopupModal("Stacked 1", C\_NULL, CImGui.ImGuiWind…

---

## [ReadOnlyMemoryError with SubArray](https://discourse.julialang.org/t/readonlymemoryerror-with-subarray/24914)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 10\
**Last updated:** [June 5, 2019, 7:31am UTC](https://discourse.julialang.org/t/readonlymemoryerror-with-subarray/24914 "2019-06-05T07:31:59Z")

</div>

I’m getting a ReadOnlyMemoryError from: julia\> t .-= t\[1\] ERROR: ReadOnlyMemoryError() Stacktrace: \[1\] - at ./float.jl:397 \[inlined\] \[2\] \_broadcast\_getindex\_evalf at ./broadcast.jl:578 \[inlined\] \[3\] \_broadcast\_getind…

---

## [\`tempdir()\` differences in Windows and Linux](https://discourse.julialang.org/t/tempdir-differences-in-windows-and-linux/24930)

<div class="topic-metadata">

**Author:** [@mbaz](https://discourse.julialang.org/u/mbaz)\
**Replies:** 6\
**Last updated:** [June 5, 2019, 6:49am UTC](https://discourse.julialang.org/t/tempdir-differences-in-windows-and-linux/24930 "2019-06-05T06:49:23Z")

</div>

Using Julia v1.1.0 on Windows 10, tempdir() returns a path with a separator at the end: julia\> tempdir() “C:\\Users\\mxbiee\\AppData\\Local\\Temp\\” and on Linux, it doesn’t: julia\> tempdir() “/tmp” This caused some mild…

---

## [String substitution with interpolation](https://discourse.julialang.org/t/string-substitution-with-interpolation/24949)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 1\
**Last updated:** [June 5, 2019, 6:36am UTC](https://discourse.julialang.org/t/string-substitution-with-interpolation/24949 "2019-06-05T06:36:57Z")

</div>

Hello, I’d like to have something like: foo(rs::String, t::String) = replace(rs, r"(aa|bb)" =\> s"\\1$(t)") Note the replacement string uses both a substitution (\\1) and an interpolation ($t). This does not seem to be al…

---

## [Proposal: broadcast operator for primitive types](https://discourse.julialang.org/t/proposal-broadcast-operator-for-primitive-types/24917)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 8\
**Last updated:** [June 5, 2019, 6:36am UTC](https://discourse.julialang.org/t/proposal-broadcast-operator-for-primitive-types/24917 "2019-06-05T06:36:14Z")

</div>

Hi! I was coding something today, and I have a variable V which can be of many types (Int, Float32, Float64, and so on). However, I need to limit the value of this variable. What I did was: V \> +10 && (V = eltype(V)(+1…

---

## [\[ANN\] DoubleFloats.jl](https://discourse.julialang.org/t/ann-doublefloats-jl/12678)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 9\
**Last updated:** [June 5, 2019, 6:20am UTC](https://discourse.julialang.org/t/ann-doublefloats-jl/12678 "2019-06-05T06:20:18Z")

</div>

DoubleFloats.jl is available for v0.7. Arithmetic and elementary functions. Expect 85 bit accuracy using Double64. Double64 relative to BigFloat op speedup + 11x \* 18x \\ 7x trig 3x-6x results from tes…

---

## [Long-Term Stable Support](https://discourse.julialang.org/t/long-term-stable-support/24941)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 8\
**Last updated:** [June 5, 2019, 6:06am UTC](https://discourse.julialang.org/t/long-term-stable-support/24941 "2019-06-05T06:06:03Z")

</div>

Hi everyone! I’m quite new to Julia and programming in general, with enough experience in Matlab with OOP and can understand the flow of C++ code. So please forgive any demonstrated inability to express what my question …

---

## [Can you have Julia in console mode and Juno and be able to open them both at the same time?](https://discourse.julialang.org/t/can-you-have-julia-in-console-mode-and-juno-and-be-able-to-open-them-both-at-the-same-time/24867)

<div class="topic-metadata">

**Author:** [@GERSON\_EZEQUIEL\_HERN](https://discourse.julialang.org/u/GERSON_EZEQUIEL_HERN)\
**Replies:** 4\
**Last updated:** [June 5, 2019, 5:44am UTC](https://discourse.julialang.org/t/can-you-have-julia-in-console-mode-and-juno-and-be-able-to-open-them-both-at-the-same-time/24867 "2019-06-05T05:44:08Z")

</div>

Can you have Julia in console mode and Juno and be able to open them both at the same time? I require to use both 1.- Julia in cosola mode 2.- Juno (IDE) How can I do it because I only have Julia in console mode and …

---

## [Funny story at Sydney meetup](https://discourse.julialang.org/t/funny-story-at-sydney-meetup/23965)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [June 5, 2019, 12:05am UTC](https://discourse.julialang.org/t/funny-story-at-sydney-meetup/23965 "2019-06-05T00:05:41Z")

</div>

I run the Sydney Julia meetup, and my company sponsors the pizzas and drinks which are provided for free to the attendees. At the last meetup, I saw two new attendees chatting with each other. I walked towards them to gr…

---

## [How to mute the stacktrace information when Test fails](https://discourse.julialang.org/t/how-to-mute-the-stacktrace-information-when-test-fails/24942)

<div class="topic-metadata">

**Author:** [@yzcj105](https://discourse.julialang.org/u/yzcj105)\
**Replies:** 0\
**Last updated:** [June 4, 2019, 11:58pm UTC](https://discourse.julialang.org/t/how-to-mute-the-stacktrace-information-when-test-fails/24942 "2019-06-04T23:58:12Z")

</div>

I wrote some testsets. However, julia print out a lot of error information when test fails. I only want to know how many fails but not the detailed stacktrace information.

---

## [Spiking Neural Network](https://discourse.julialang.org/t/spiking-neural-network/24908)

<div class="topic-metadata">

**Author:** [@grero](https://discourse.julialang.org/u/grero)\
**Replies:** 5\
**Last updated:** [June 4, 2019, 11:36pm UTC](https://discourse.julialang.org/t/spiking-neural-network/24908 "2019-06-04T23:36:42Z")

</div>

Hi, I am trying to implement the spiking neural network model in this paper https://www.frontiersin.org/articles/10.3389/fninf.2018.00079/full and I wanted to use DifferentialEquations.jl Basically, the model consists o…

---

## [Debugging Julia](https://discourse.julialang.org/t/debugging-julia/22147)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 32\
**Last updated:** [June 4, 2019, 11:15pm UTC](https://discourse.julialang.org/t/debugging-julia/22147 "2019-06-04T23:15:57Z")

</div>

After two and half months of intense collaborative development, we (@kristoffer.carlsson, @pfitzseb, and myself, based on original work by @Keno) are pleased to announce a fully-featured debugging stack for Julia. You ca…

---

## [How do I re-activate the primary/default environment? (Pkg3)](https://discourse.julialang.org/t/how-do-i-re-activate-the-primary-default-environment-pkg3/24933)

<div class="topic-metadata">

**Author:** [@anon32405968](https://discourse.julialang.org/u/anon32405968)\
**Replies:** 1\
**Last updated:** [June 4, 2019, 6:44pm UTC](https://discourse.julialang.org/t/how-do-i-re-activate-the-primary-default-environment-pkg3/24933 "2019-06-04T18:44:32Z")

</div>

If I want to update my Julia module’s Manifest I can navigate to its root directory, press \] to go into package mode, then activate . to activate its directory, and finally I can add the package. Let’s say I don’t have …

---

## [Go from \`pkg\>\` prompt to \`julia\>\` prompt?](https://discourse.julialang.org/t/go-from-pkg-prompt-to-julia-prompt/24929)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 5\
**Last updated:** [June 4, 2019, 6:35pm UTC](https://discourse.julialang.org/t/go-from-pkg-prompt-to-julia-prompt/24929 "2019-06-04T18:35:05Z")

</div>

Very basic question. How does one go from pkg\> prompt to julia\> prompt in the Julia REPL? For example, if I just press enter at an empty shell\> prompt, it takes me back to julia\> prompt. Currently, to go from pkg\> to jul…

---

## [JULIA\_WORKER\_TIMEOUT error](https://discourse.julialang.org/t/julia-worker-timeout-error/24866)

<div class="topic-metadata">

**Author:** [@abx](https://discourse.julialang.org/u/abx)\
**Replies:** 7\
**Last updated:** [June 4, 2019, 6:22pm UTC](https://discourse.julialang.org/t/julia-worker-timeout-error/24866 "2019-06-04T18:22:48Z")

</div>

I am working on a fairly big code base written in Julia 1.1 and I am experiencing erratic issues with parallel processing. It is very annoying as most of the time everything works perfectly. The application is mainly co…

---

## [Possible bug in dropmissing!](https://discourse.julialang.org/t/possible-bug-in-dropmissing/24817)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 7\
**Last updated:** [June 4, 2019, 6:07pm UTC](https://discourse.julialang.org/t/possible-bug-in-dropmissing/24817 "2019-06-04T18:07:04Z")

</div>

I am dropping rows containing missing values from a dataframe. In 122607 rows, 29 rows contain at least one missing value. I can confirm this 2 ways. First, I wrote a function that counts rows containing 1 or more mis…

---

## [Weave: continue after error](https://discourse.julialang.org/t/weave-continue-after-error/24923)

<div class="topic-metadata">

**Author:** [@ksamtsak](https://discourse.julialang.org/u/ksamtsak)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 4:45pm UTC](https://discourse.julialang.org/t/weave-continue-after-error/24923 "2019-06-04T16:45:53Z")

</div>

I’m using Weave.jl to generate a walkthrough of a design process. It’s natural in a walkthrough to want to include code that produces an error and then say, X causes an error, let’s do Y. However, it doesn’t look like …

---

## [Unexpected map! behaviour](https://discourse.julialang.org/t/unexpected-map-behaviour/24920)

<div class="topic-metadata">

**Author:** [@hak](https://discourse.julialang.org/u/hak)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 3:35pm UTC](https://discourse.julialang.org/t/unexpected-map-behaviour/24920 "2019-06-04T15:35:27Z")

</div>

Frankly I do not understand this behaviour: julia\> a = zeros(2,3); julia\> map!(x -\>x\*2, a\[1,:\], \[1,2,3\]); julia\> a 2×3 Array{Float64,2}: 0.0 0.0 0.0 0.0 0.0 0.0 but julia\> a\[1,:\]=map(x -\>x\*2, \[1,2,3\]); juli…

---

## [Don't update ink (in Atom): it appears to be broken](https://discourse.julialang.org/t/dont-update-ink-in-atom-it-appears-to-be-broken/24896)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 6\
**Last updated:** [June 4, 2019, 3:31pm UTC](https://discourse.julialang.org/t/dont-update-ink-in-atom-it-appears-to-be-broken/24896 "2019-06-04T15:31:53Z")

</div>

Updating to ink 0.10.10 broke things in a bad way.

---

## [Proposal for ∈ isa type syntax](https://discourse.julialang.org/t/proposal-for-isa-type-syntax/24667)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 31\
**Last updated:** [June 4, 2019, 2:54pm UTC](https://discourse.julialang.org/t/proposal-for-isa-type-syntax/24667 "2019-06-04T14:54:51Z")

</div>

This is a proposal to extend Base.in with the isa method: julia\> Base.in(::T,t::DataType) where T = T\<:t julia\> 1 ∈ Int true julia\> 1 ∈ Float64 false or alternatively Base.in(v,t::DataType) = v isa t Would this be …

---

## [Cant push! JuliaInterpreter.compiled\_methods](https://discourse.julialang.org/t/cant-push-juliainterpreter-compiled-methods/24901)

<div class="topic-metadata">

**Author:** [@Bokken](https://discourse.julialang.org/u/Bokken)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 11:30am UTC](https://discourse.julialang.org/t/cant-push-juliainterpreter-compiled-methods/24901 "2019-06-04T11:30:07Z")

</div>

How can I add a function to JuliaInterpreter.compiled\_methods? function println\_(x) println(x) end push!(JuliaInterpreter.compiled\_methods,println\_) ----\> MethodError: Cannot convert an object of type typeof(println…

---

## [Julia create and populate empty dataframe with unsigned number value](https://discourse.julialang.org/t/julia-create-and-populate-empty-dataframe-with-unsigned-number-value/24913)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [June 4, 2019, 11:10am UTC](https://discourse.julialang.org/t/julia-create-and-populate-empty-dataframe-with-unsigned-number-value/24913 "2019-06-04T11:10:41Z")

</div>

Dear all, I am using Julia to populate an empty dataframe. I instantiated an empty dataframe with df = DataFrame( Sample = String\[\], Match\_len = UInt32\[\], Hit\_len = UInt16\[\]) I then extract subsets of data…

---

## [Julia-client pinned version](https://discourse.julialang.org/t/julia-client-pinned-version/24912)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 10:45am UTC](https://discourse.julialang.org/t/julia-client-pinned-version/24912 "2019-06-04T10:45:46Z")

</div>

Hi, I am using JuliaPro and the Settings says that some packages like julia-client and ink are not being checked for updates. If I type Pkg.free(“julia-client”), I get an error The following package names could not be…

---

## [Automatic differentiation of an objective, which already uses AD tools](https://discourse.julialang.org/t/automatic-differentiation-of-an-objective-which-already-uses-ad-tools/24864)

<div class="topic-metadata">

**Author:** [@ArnoStrouwen](https://discourse.julialang.org/u/ArnoStrouwen)\
**Replies:** 3\
**Last updated:** [June 4, 2019, 9:08am UTC](https://discourse.julialang.org/t/automatic-differentiation-of-an-objective-which-already-uses-ad-tools/24864 "2019-06-04T09:08:40Z")

</div>

I’m searching for parameters u to maximize a function obj(u). This objective function, however, depends on the derivatives of another function y(u,p), with regards to the parameters p. An example: abstract type S1 end …

---

## [Debug in remote julia mode](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870)

<div class="topic-metadata">

**Author:** [@mslichao](https://discourse.julialang.org/u/mslichao)\
**Replies:** 5\
**Last updated:** [June 4, 2019, 8:55am UTC](https://discourse.julialang.org/t/debug-in-remote-julia-mode/24870 "2019-06-04T08:55:00Z")

</div>

I tried to debug under remote julia mode, the operator and callstack seems normal but the juno can’t open the source file. I used ftp remote edit, I think it is not support this now, right? Do we have plan to support d…

---

## [Argument destructuring and anonymous functions](https://discourse.julialang.org/t/argument-destructuring-and-anonymous-functions/24893)

<div class="topic-metadata">

**Author:** [@tanders](https://discourse.julialang.org/u/tanders)\
**Replies:** 8\
**Last updated:** [June 4, 2019, 7:16am UTC](https://discourse.julialang.org/t/argument-destructuring-and-anonymous-functions/24893 "2019-06-04T07:16:15Z")

</div>

Dear all, It seems that argument destructuring (Functions · The Julia Language) works for named but not anonymous functions (see examples below). Is there a reason for that, or am I just missing something as a newbie? T…

---

## [Way to recreate OrderedDict under new sorting function?](https://discourse.julialang.org/t/way-to-recreate-ordereddict-under-new-sorting-function/24900)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 2\
**Last updated:** [June 4, 2019, 3:37am UTC](https://discourse.julialang.org/t/way-to-recreate-ordereddict-under-new-sorting-function/24900 "2019-06-04T03:37:43Z")

</div>

Lets say you have an ordered dict: using DataStructures cur\_dict = OrderedDict() And you then do two rounds of key inserts: foreach(cur\_value -\> cur\_dict\[cur\_value\] = cur\_value+rand()/2, 1:2:9) foreach(cur\_value -\> cu…

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

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