# Latest

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

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

**Page:** 1857

---

## [Understanding/fixing delayed trigger of Revise.revise in manual mode](https://discourse.julialang.org/t/understanding-fixing-delayed-trigger-of-revise-revise-in-manual-mode/32661)

<div class="topic-metadata">

**Author:** [@garborg](https://discourse.julialang.org/u/garborg)\
**Replies:** 2\
**Last updated:** [December 24, 2019, 6:56pm UTC](https://discourse.julialang.org/t/understanding-fixing-delayed-trigger-of-revise-revise-in-manual-mode/32661 "2019-12-24T18:56:26Z")

</div>

I’m having trouble getting Revise.revise() to take effect (right away) when either called in a loop, a script, or a wrapper function that also calls the (non-inlined) function that needs revising. I put together a self-…

---

## [Wanting to organize a Chicago meeting NOT meetup!](https://discourse.julialang.org/t/wanting-to-organize-a-chicago-meeting-not-meetup/32662)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 0\
**Last updated:** [December 24, 2019, 4:30pm UTC](https://discourse.julialang.org/t/wanting-to-organize-a-chicago-meeting-not-meetup/32662 "2019-12-24T16:30:55Z")

</div>

Hi all am in the loop in Chicago and want to meet other people with an interest in Julia. I have NO interest in running or participating in a meetup group. If anyone is interested in an adhoc meeting in early 2020 I c…

---

## [How to deal with Zygote sometimes "pirating" its own adjoints with worse ones?](https://discourse.julialang.org/t/how-to-deal-with-zygote-sometimes-pirating-its-own-adjoints-with-worse-ones/32579)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [December 24, 2019, 3:14pm UTC](https://discourse.julialang.org/t/how-to-deal-with-zygote-sometimes-pirating-its-own-adjoints-with-worse-ones/32579 "2019-12-24T15:14:33Z")

</div>

The situation I’m in is that I have some custom arrays and some custom implementation of multiplication, e.g. function (A::CustomMatrix \* b::CustomVector) some\_specialized\_code() end Now if I use Zygote to derivati…

---

## [R and Python together in RStudio](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458)

<div class="topic-metadata">

**Author:** [@Gunter\_Faes](https://discourse.julialang.org/u/Gunter_Faes)\
**Replies:** 31\
**Last updated:** [December 24, 2019, 2:40pm UTC](https://discourse.julialang.org/t/r-and-python-together-in-rstudio/32458 "2019-12-24T14:40:37Z")

</div>

Is it going to be more difficult for Julia to become a tool for the data analyst? R and Python together in RStudio … :thinking:

---

## [How to make a function defined from getindex type safe?](https://discourse.julialang.org/t/how-to-make-a-function-defined-from-getindex-type-safe/32647)

<div class="topic-metadata">

**Author:** [@zwwi](https://discourse.julialang.org/u/zwwi)\
**Replies:** 4\
**Last updated:** [December 24, 2019, 1:17pm UTC](https://discourse.julialang.org/t/how-to-make-a-function-defined-from-getindex-type-safe/32647 "2019-12-24T13:17:29Z")

</div>

testv = \[1,2,3,4,5\] testf(n) = testv\[n+1\] @code\_warntype testf(4) This gives me Variables #self#::Core.Compiler.Const(testf, false) n::Int64 Body::Any 1 ─ %1 = (n + 1)::Int64 │ %2 = Base.getindex(Main.testv, %1)…

---

## [Change in local package does not take effect unless Julia restart](https://discourse.julialang.org/t/change-in-local-package-does-not-take-effect-unless-julia-restart/32612)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 6\
**Last updated:** [December 24, 2019, 1:16pm UTC](https://discourse.julialang.org/t/change-in-local-package-does-not-take-effect-unless-julia-restart/32612 "2019-12-24T13:16:44Z")

</div>

Suppose I am in a primary environment say, environment/v1.3. Now I take the following steps to create a package as a local git repo and do some tests: 1) \] generate TestPkg 2) git init/add -A/commit in TestPkg director…

---

## [Clearing a variable?](https://discourse.julialang.org/t/clearing-a-variable/32618)

<div class="topic-metadata">

**Author:** [@amca01](https://discourse.julialang.org/u/amca01)\
**Replies:** 7\
**Last updated:** [December 24, 2019, 12:13pm UTC](https://discourse.julialang.org/t/clearing-a-variable/32618 "2019-12-24T12:13:46Z")

</div>

I believe this has been asked and answered before; however I’ve gone through many of the related posts and I still can’t find how to do it. In my case, I had an array called T, which after a while I didn’t need. What I…

---

## [Versioning with Pkg](https://discourse.julialang.org/t/versioning-with-pkg/32604)

<div class="topic-metadata">

**Author:** [@dfioravanti](https://discourse.julialang.org/u/dfioravanti)\
**Replies:** 6\
**Last updated:** [December 24, 2019, 11:23am UTC](https://discourse.julialang.org/t/versioning-with-pkg/32604 "2019-12-24T11:23:39Z")

</div>

Hi everyone, I wanted to help with the development of a Julia package. To do so I wanted to use Pkg.dev(Package) command but it does not work. I think that the reason is that the authors of that package append -DEV to t…

---

## [What is the splatting penalty?](https://discourse.julialang.org/t/what-is-the-splatting-penalty/32646)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 1\
**Last updated:** [December 24, 2019, 6:58am UTC](https://discourse.julialang.org/t/what-is-the-splatting-penalty/32646 "2019-12-24T06:58:06Z")

</div>

I know what “splatting” is, but what is the “splatting penalty”, as seen here?

---

## [Debugger.jl, @bp does not work](https://discourse.julialang.org/t/debugger-jl-bp-does-not-work/22154)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 8\
**Last updated:** [March 21, 2019, 6:13pm UTC](https://discourse.julialang.org/t/debugger-jl-bp-does-not-work/22154 "2019-03-21T18:13:49Z")

</div>

I get an error when I try to debug a Julia file from REPL as follows. The source file main.jl # main.jl using Debugger function my\_add(a::Int, b::Int) @bp # want to stop here c = a + b return c…

---

## [\[ANN\] Juno 0.8](https://discourse.julialang.org/t/ann-juno-0-8/22157)

<div class="topic-metadata">

**Author:** [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Replies:** 73\
**Last updated:** [December 24, 2019, 3:18am UTC](https://discourse.julialang.org/t/ann-juno-0-8/22157 "2019-12-24T03:18:52Z")

</div>

Hey folks, Juno 0.8 is out – get it while it’s fresh! While there of course have been loads of small bugfixes, the three stand-out features of this release are: Debugger Integration Juno now provides a fairly compl…

---

## [Contributing Wayland Support to CImGui.jl - help wanted](https://discourse.julialang.org/t/contributing-wayland-support-to-cimgui-jl-help-wanted/32576)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 3\
**Last updated:** [December 24, 2019, 3:05am UTC](https://discourse.julialang.org/t/contributing-wayland-support-to-cimgui-jl-help-wanted/32576 "2019-12-24T03:05:10Z")

</div>

So I am a redhat fan - specifically a fedora linux fan. Lot’s of people are! Anyways, I am exploring UI options in Julia for front ends right now. One keenly caught my eye(GitHub - Gnimuc/CImGui.jl: Julia wrapper for cim…

---

## [String to function and vice versa](https://discourse.julialang.org/t/string-to-function-and-vice-versa/32606)

<div class="topic-metadata">

**Author:** [@leiteiro](https://discourse.julialang.org/u/leiteiro)\
**Replies:** 4\
**Last updated:** [December 23, 2019, 11:59pm UTC](https://discourse.julialang.org/t/string-to-function-and-vice-versa/32606 "2019-12-23T23:59:35Z")

</div>

How can a string like “x^3 + 6x^2 + 6x” be turned into a function p(x) = x^3 + 6\*x^2 + 6\*x and conversely, given the function p, how to extract the body of the function as a string?

---

## [Announcement: automatic merging for the General registry](https://discourse.julialang.org/t/announcement-automatic-merging-for-the-general-registry/29961)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 64\
**Last updated:** [December 23, 2019, 7:20pm UTC](https://discourse.julialang.org/t/announcement-automatic-merging-for-the-general-registry/29961 "2019-12-23T19:20:07Z")

</div>

I’m pleased to announce that we are rolling out the first iteration of automatic merging for the General registry. In order for your pull request to be automerged, it needs to meet the automerge guidelines: New package…

---

## [Multithreading and fetch() type stability](https://discourse.julialang.org/t/multithreading-and-fetch-type-stability/32465)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 11\
**Last updated:** [December 23, 2019, 8:30pm UTC](https://discourse.julialang.org/t/multithreading-and-fetch-type-stability/32465 "2019-12-23T20:30:42Z")

</div>

Hello, I was poking around at the new @spawn macro and multithreading in general. I did a @code\_warntype on a function were i’d set up some task with t = @spawn fun(args). The signature of fun is (n::Int)::Int in the …

---

## [Question regarding Julia's planned approach to composable, safe, and easy multithreading](https://discourse.julialang.org/t/question-regarding-julias-planned-approach-to-composable-safe-and-easy-multithreading/17692)

<div class="topic-metadata">

**Author:** [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Replies:** 14\
**Last updated:** [December 23, 2019, 6:10pm UTC](https://discourse.julialang.org/t/question-regarding-julias-planned-approach-to-composable-safe-and-easy-multithreading/17692 "2019-12-23T18:10:58Z")

</div>

After reading the post by @StefanKarpinski about compiler work priorities here, where multithreading (via PARTR) is now planned as priority #2, I figured it was a good time to ask a question that’s been on my mind for a…

---

## [Implementing FashionMNIST in Flux ! Help needed](https://discourse.julialang.org/t/implementing-fashionmnist-in-flux-help-needed/32627)

<div class="topic-metadata">

**Author:** [@PseudoCodeNerd](https://discourse.julialang.org/u/PseudoCodeNerd)\
**Replies:** 0\
**Last updated:** [December 23, 2019, 6:03pm UTC](https://discourse.julialang.org/t/implementing-fashionmnist-in-flux-help-needed/32627 "2019-12-23T18:03:31Z")

</div>

Hello there People at Julia ! I was recently able to successfully run a MNIST ml program using Flux. I wanna move towards using FashionMNIST data-set (which is considered to be a tougher MNIST to benchmark on). Can anyb…

---

## [When i click on the Debugger pane in Juno menu nothing happens](https://discourse.julialang.org/t/when-i-click-on-the-debugger-pane-in-juno-menu-nothing-happens/32613)

<div class="topic-metadata">

**Author:** [@Richard\_M](https://discourse.julialang.org/u/Richard_M)\
**Replies:** 1\
**Last updated:** [December 23, 2019, 5:50pm UTC](https://discourse.julialang.org/t/when-i-click-on-the-debugger-pane-in-juno-menu-nothing-happens/32613 "2019-12-23T17:50:35Z")

</div>

When i click on the Debugger pane in Juno menu nothing happens, no pane opens.

---

## [Sublime Text 3 for Linux: portable and preconfigured for Julia](https://discourse.julialang.org/t/sublime-text-3-for-linux-portable-and-preconfigured-for-julia/30306)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 6\
**Last updated:** [December 23, 2019, 4:14pm UTC](https://discourse.julialang.org/t/sublime-text-3-for-linux-portable-and-preconfigured-for-julia/30306 "2019-12-23T16:14:28Z")

</div>

https://github.com/PetrKryslUCSD/HowToUseJuliaWithSublimeText3 Feedback will be appreciated.

---

## [ForwardDiff and Array of Arrays](https://discourse.julialang.org/t/forwarddiff-and-array-of-arrays/32602)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 4\
**Last updated:** [December 23, 2019, 3:59pm UTC](https://discourse.julialang.org/t/forwarddiff-and-array-of-arrays/32602 "2019-12-23T15:59:07Z")

</div>

Is it possible to get ForwardDiff to work with arrays of arrays? I’m thinking about something like this: using LinearAlgebra using ForwardDiff using Random function f(X) return X\[1\]⋅cross(X\[2\],X\[3\]) end Random.se…

---

## [How to use the output of log\_fit in abline plotted in a loglog plot in Julia](https://discourse.julialang.org/t/how-to-use-the-output-of-log-fit-in-abline-plotted-in-a-loglog-plot-in-julia/32562)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 4\
**Last updated:** [December 23, 2019, 12:58pm UTC](https://discourse.julialang.org/t/how-to-use-the-output-of-log-fit-in-abline-plotted-in-a-loglog-plot-in-julia/32562 "2019-12-23T12:58:27Z")

</div>

Dear community, For log\_fit, the equation is log y=a+b\*log x, whose output coefficients are ‘a’ and ‘b’. Slope ‘b’ is applied in view of log x, so how can I plot the non-linear regression in a loglog plot on scale of x? …

---

## [Subtyping of Tuple's with abstract types and type variables](https://discourse.julialang.org/t/subtyping-of-tuples-with-abstract-types-and-type-variables/32596)

<div class="topic-metadata">

**Author:** [@bug-brain](https://discourse.julialang.org/u/bug-brain)\
**Replies:** 2\
**Last updated:** [December 23, 2019, 10:45am UTC](https://discourse.julialang.org/t/subtyping-of-tuples-with-abstract-types-and-type-variables/32596 "2019-12-23T10:45:42Z")

</div>

When checking for subtype relations of tuples with 2 or elements Julia does not find a match for a type variable on the right side if the types on the left side are abstract or have a common super type. The below example…

---

## [Null stream implementation](https://discourse.julialang.org/t/null-stream-implementation/32610)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 2\
**Last updated:** [December 23, 2019, 8:33am UTC](https://discourse.julialang.org/t/null-stream-implementation/32610 "2019-12-23T08:33:25Z")

</div>

Hello, I’m looking for a Julia implementation of a stream (inheriting from IO) that acts like /dev/null (but usable for any OS). It would just ignore anything that is streamed to it (ie it should redirect file IO to no…

---

## [Why isn't Flux Descent learning?](https://discourse.julialang.org/t/why-isnt-flux-descent-learning/32605)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 1\
**Last updated:** [December 23, 2019, 6:17am UTC](https://discourse.julialang.org/t/why-isnt-flux-descent-learning/32605 "2019-12-23T06:17:29Z")

</div>

The following code doesn’t cause nearly as much learning as it should. Basically, I create two groups 0 and 1, each having two points, and want them separated by a sigmoid function, using mean square error as loss. Dur…

---

## [2 dimensional array to one dimensional](https://discourse.julialang.org/t/2-dimensional-array-to-one-dimensional/32574)

<div class="topic-metadata">

**Author:** [@imrankhan\_juliaLang](https://discourse.julialang.org/u/imrankhan_juliaLang)\
**Replies:** 6\
**Last updated:** [December 23, 2019, 2:56am UTC](https://discourse.julialang.org/t/2-dimensional-array-to-one-dimensional/32574 "2019-12-23T02:56:28Z")

</div>

how can i make 2 dimensional array to one dimensional Like arr = \[\[1,2\], \[3,4\]\] To one, two, three, four = something to transport NB: Is like numpy ravel method

---

## [Julia cannot update package?](https://discourse.julialang.org/t/julia-cannot-update-package/32599)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 1\
**Last updated:** [December 23, 2019, 2:28am UTC](https://discourse.julialang.org/t/julia-cannot-update-package/32599 "2019-12-23T02:28:40Z")

</div>

I’m trying to update Flux to v0.10.0 but my Julia is stuck at v"0.8.3". Typing \]update Flux does not change it. Before that, my Flux was in v0.10.0 but I tried model zoo https://github.com/FluxML/model-zoo and ran usin…

---

## [Researcher / senior power systems researcher at CISRO in Newcastle, Australia](https://discourse.julialang.org/t/researcher-senior-power-systems-researcher-at-cisro-in-newcastle-australia/32600)

<div class="topic-metadata">

**Author:** [@frederikgeth](https://discourse.julialang.org/u/frederikgeth)\
**Replies:** 0\
**Last updated:** [December 23, 2019, 2:24am UTC](https://discourse.julialang.org/t/researcher-senior-power-systems-researcher-at-cisro-in-newcastle-australia/32600 "2019-12-23T02:24:46Z")

</div>

We are looking for talented candidates for two new power system researcher positions at CSIRO energy in Newcastle Australia. Senior Electrical Power Systems Researcher Senior Electrical Power Systems Researcher & Posit…

---

## [Zygote cannot take gradient of a sum when the sum has negative number raised to integer powers?](https://discourse.julialang.org/t/zygote-cannot-take-gradient-of-a-sum-when-the-sum-has-negative-number-raised-to-integer-powers/32597)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 3\
**Last updated:** [December 23, 2019, 2:05am UTC](https://discourse.julialang.org/t/zygote-cannot-take-gradient-of-a-sum-when-the-sum-has-negative-number-raised-to-integer-powers/32597 "2019-12-23T02:05:50Z")

</div>

using Zygote f(x) = sum((-1)^k\*x for k in 0:5) gradient(f, 0) gives ERROR: DomainError with -1.0: log will only return a complex result if called with a complex argument. Try log(Complex(x)).

---

## [Compiler performance tips](https://discourse.julialang.org/t/compiler-performance-tips/32559)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 3\
**Last updated:** [December 23, 2019, 1:11am UTC](https://discourse.julialang.org/t/compiler-performance-tips/32559 "2019-12-23T01:11:53Z")

</div>

Hi! I find the julia performance tips page very useful. I am wondering if there is a similar document with some tips in order to reduce compiler latency and start up times. E.g., which patterns to use, which to avoid, e…

---

## [Strange behavior of differentiating constant functions in Zygote](https://discourse.julialang.org/t/strange-behavior-of-differentiating-constant-functions-in-zygote/32593)

<div class="topic-metadata">

**Author:** [@yuxi.liu](https://discourse.julialang.org/u/yuxi.liu)\
**Replies:** 1\
**Last updated:** [December 23, 2019, 12:40am UTC](https://discourse.julialang.org/t/strange-behavior-of-differentiating-constant-functions-in-zygote/32593 "2019-12-23T00:40:49Z")

</div>

Why is using Zygote: gradient gradient((x -\> 0.0), 1) giving (nothing, ) ?

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

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