# Latest

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

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

**Page:** 1899

---

## [Pin dependency at current state](https://discourse.julialang.org/t/pin-dependency-at-current-state/30128)

<div class="topic-metadata">

**Author:** [@krcools](https://discourse.julialang.org/u/krcools)\
**Replies:** 3\
**Last updated:** [October 21, 2019, 1:03pm UTC](https://discourse.julialang.org/t/pin-dependency-at-current-state/30128 "2019-10-21T13:03:54Z")

</div>

I want my project Project to depend on an unregistered and untagged version of a registered package ToolBox. Is this a valid way to accomplish this? pkg\>add ToolBox#master pkg\>pin ToolBox When I would at a later time i…

---

## [JuliaPro install packages - stuck at please authenticate](https://discourse.julialang.org/t/juliapro-install-packages-stuck-at-please-authenticate/30132)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 1\
**Last updated:** [October 21, 2019, 12:58pm UTC](https://discourse.julialang.org/t/juliapro-install-packages-stuck-at-please-authenticate/30132 "2019-10-21T12:58:05Z")

</div>

I deleted the existing installation of Julia and installed JuliaPro. When I try to install a package, it gets stuck at Please Authenticate.. add DataFrames Updating registry at \`~/.juliapro/JuliaPro\_v1.2.0-1/registrie…

---

## [Equivalent to Perl Use Strict](https://discourse.julialang.org/t/equivalent-to-perl-use-strict/30129)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [October 21, 2019, 11:15am UTC](https://discourse.julialang.org/t/equivalent-to-perl-use-strict/30129 "2019-10-21T11:15:04Z")

</div>

Is there an equivalent in Julia of the Perl Use Strict compiler flag? This means that all variables must be declared. Very useful for the case I just had where I mistyped a variable name when assigning a string value (i…

---

## [Is this bitcast function sane and safe?](https://discourse.julialang.org/t/is-this-bitcast-function-sane-and-safe/30045)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 9\
**Last updated:** [October 21, 2019, 7:45am UTC](https://discourse.julialang.org/t/is-this-bitcast-function-sane-and-safe/30045 "2019-10-21T07:45:22Z")

</div>

I would like to take the bits of one struct and reinterpret them as the bits of another type. Semantically the following does the desired job: function check\_bitcast(T, s) S = typeof(s) isbitstype(T) || throw(Ar…

---

## [Print formatting](https://discourse.julialang.org/t/print-formatting/29580)

<div class="topic-metadata">

**Author:** [@ASF](https://discourse.julialang.org/u/ASF)\
**Replies:** 4\
**Last updated:** [October 21, 2019, 6:31am UTC](https://discourse.julialang.org/t/print-formatting/29580 "2019-10-21T06:31:58Z")

</div>

Python has options to reset the cursor position and flush output to prevent output from scrolling in the console e.g. print("\\r this will be over written by the next line",flush=true) Is there something similar in jul…

---

## [Right location/repo for RL algorithms](https://discourse.julialang.org/t/right-location-repo-for-rl-algorithms/30122)

<div class="topic-metadata">

**Author:** [@Sarvjeet](https://discourse.julialang.org/u/Sarvjeet)\
**Replies:** 1\
**Last updated:** [October 21, 2019, 6:05am UTC](https://discourse.julialang.org/t/right-location-repo-for-rl-algorithms/30122 "2019-10-21T06:05:33Z")

</div>

Hi there, I am taking a Deep RL course; would like to implement some deep RL algorithms for practice. I am not sure if I should contribute to Flux.jl, Reinforce.jl, Knet.jl or some other place. Can someone please tell t…

---

## [Cannot open Julia Observer](https://discourse.julialang.org/t/cannot-open-julia-observer/30053)

<div class="topic-metadata">

**Author:** [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Replies:** 3\
**Last updated:** [October 20, 2019, 9:32pm UTC](https://discourse.julialang.org/t/cannot-open-julia-observer/30053 "2019-10-20T21:32:59Z")

</div>

Cannot open Julia Observer from within https://julialang.org/ page. Get always: 504 ERROR The request could not be satisfied. Also trying to open Julia Observer using Chrome fails, too. Any suggestions?

---

## [WIN10, HOW TO switch (keyshort) from editor to REPL?](https://discourse.julialang.org/t/win10-how-to-switch-keyshort-from-editor-to-repl/22911)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 9\
**Last updated:** [October 20, 2019, 8:51pm UTC](https://discourse.julialang.org/t/win10-how-to-switch-keyshort-from-editor-to-repl/22911 "2019-10-20T20:51:07Z")

</div>

I am starting Julia with ATOM in WIN10, HOW TO switch (keyshort) from editor to REPL window ? CTRL+j, CTRL+s , NOT WORKS :confused:

---

## [Array containing references?](https://discourse.julialang.org/t/array-containing-references/30091)

<div class="topic-metadata">

**Author:** [@nmatzke](https://discourse.julialang.org/u/nmatzke)\
**Replies:** 7\
**Last updated:** [October 20, 2019, 8:39pm UTC](https://discourse.julialang.org/t/array-containing-references/30091 "2019-10-20T20:39:51Z")

</div>

Hi all, Is there a way to store references in an array? Basically, I would like to have a huge array of event rates (array A), however the rates are specified in just a few parameters (e.g. a,b,c,d,e) which are referre…

---

## [Abstract type functions](https://discourse.julialang.org/t/abstract-type-functions/30113)

<div class="topic-metadata">

**Author:** [@PeterD](https://discourse.julialang.org/u/PeterD)\
**Replies:** 2\
**Last updated:** [October 20, 2019, 7:39pm UTC](https://discourse.julialang.org/t/abstract-type-functions/30113 "2019-10-20T19:39:40Z")

</div>

With the new Julia 1.3 release candidates out, I’m trying to take advantage of defining a function on an abstract type. However struggling big time to figure out how to leverage it when also using modules. The below exa…

---

## [Unable to install Pyplot package](https://discourse.julialang.org/t/unable-to-install-pyplot-package/30090)

<div class="topic-metadata">

**Author:** [@luchino\_96](https://discourse.julialang.org/u/luchino_96)\
**Replies:** 4\
**Last updated:** [October 20, 2019, 4:01pm UTC](https://discourse.julialang.org/t/unable-to-install-pyplot-package/30090 "2019-10-20T16:01:03Z")

</div>

I am trying to install the pyplot on Julia from jupyterlab on Mac to do some plotting but I always get the following error message: Updating registry at ~/.julia/registries/General Updating git-repo https://github.com/…

---

## [MATLABDiffEq load error](https://discourse.julialang.org/t/matlabdiffeq-load-error/29992)

<div class="topic-metadata">

**Author:** [@Nirvik](https://discourse.julialang.org/u/Nirvik)\
**Replies:** 5\
**Last updated:** [October 20, 2019, 3:26pm UTC](https://discourse.julialang.org/t/matlabdiffeq-load-error/29992 "2019-10-20T15:26:33Z")

</div>

Hi, I was able to add MATLABDiffEq successfully including its dependencies, however while trying out the worked out example in this package i keep getting a ERROR: LoadError: UndefVarError: AlgType not defined Here is a …

---

## [Help me build a Flux.jl model and learn basic ML concepts](https://discourse.julialang.org/t/help-me-build-a-flux-jl-model-and-learn-basic-ml-concepts/30109)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 1\
**Last updated:** [October 20, 2019, 2:22pm UTC](https://discourse.julialang.org/t/help-me-build-a-flux-jl-model-and-learn-basic-ml-concepts/30109 "2019-10-20T14:22:25Z")

</div>

I am learning the basics of ML/Flux.jl and I’m trying to build a simple model to get started. I grabbed some data from the U.S. Census Bureau and went ahead and created a gist on GitHub that contains a small cut (3,000 r…

---

## [Is there a way overload a function, \`fn\`, in a \`Module Module1\` so that it can only be called using \`Module1.fn\`?](https://discourse.julialang.org/t/is-there-a-way-overload-a-function-fn-in-a-module-module1-so-that-it-can-only-be-called-using-module1-fn/30104)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 4\
**Last updated:** [October 20, 2019, 11:55am UTC](https://discourse.julialang.org/t/is-there-a-way-overload-a-function-fn-in-a-module-module1-so-that-it-can-only-be-called-using-module1-fn/30104 "2019-10-20T11:55:44Z")

</div>

I am defining size in my module JDF, but I only want it to ever be called using JDF.size. Can I do that? module JDF using Base:size JDF.size(df, val) = JDF.size(df, Val(val)) JDF.size(df, ::Val{1}) = 1 JDF.size(df, :…

---

## [RecipesBase: Text in plot recipe?](https://discourse.julialang.org/t/recipesbase-text-in-plot-recipe/30092)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 5\
**Last updated:** [October 20, 2019, 10:14am UTC](https://discourse.julialang.org/t/recipesbase-text-in-plot-recipe/30092 "2019-10-20T10:14:28Z")

</div>

Is there a way to add text to a plot recipe? I’ve tried @annotate and a variety of things without success. The docs don’t mention it - that I can find anyways : Recipes · Plots

---

## [What options can I tweak to make Juno feel less lethargic?](https://discourse.julialang.org/t/what-options-can-i-tweak-to-make-juno-feel-less-lethargic/30077)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 13\
**Last updated:** [October 20, 2019, 9:41am UTC](https://discourse.julialang.org/t/what-options-can-i-tweak-to-make-juno-feel-less-lethargic/30077 "2019-10-20T09:41:28Z")

</div>

I open up Juno and I try using CSV and it feels like 30s has passed before it can register the action. Normally, in Julia REPL it only takes about 3s. What options can I choose to helpo with this? I tried cycler, it did…

---

## [Why does Juno make my code run slower than in VScode?](https://discourse.julialang.org/t/why-does-juno-make-my-code-run-slower-than-in-vscode/7846)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 18\
**Last updated:** [October 20, 2019, 9:29am UTC](https://discourse.julialang.org/t/why-does-juno-make-my-code-run-slower-than-in-vscode/7846 "2019-10-20T09:29:56Z")

</div>

I have the below code and I run it in Juno it takes 3.7 seconds and I run it in VScode it’s 1.48 seconds. Is the issue Juno? Does Juno intercept the results in such a way to make it run slower? Both are running Julia 0…

---

## [Fastest way to draw on Gtk.jl 'canvas' with plots produced from Plots.jl?](https://discourse.julialang.org/t/fastest-way-to-draw-on-gtk-jl-canvas-with-plots-produced-from-plots-jl/29420)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 28\
**Last updated:** [October 20, 2019, 8:11am UTC](https://discourse.julialang.org/t/fastest-way-to-draw-on-gtk-jl-canvas-with-plots-produced-from-plots-jl/29420 "2019-10-20T08:11:28Z")

</div>

I am using Gtk to display on a canvas images which are plots/figures produced in Plots via GR. The workflow I use is to save the figure to a png, and then load it in the draw function for Gtk where the canvas surface is …

---

## [Do you wish you were running Sublime Text 3?](https://discourse.julialang.org/t/do-you-wish-you-were-running-sublime-text-3/30096)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [October 20, 2019, 6:32am UTC](https://discourse.julialang.org/t/do-you-wish-you-were-running-sublime-text-3/30096 "2019-10-20T06:32:13Z")

</div>

But the configuration seems like a hassle? If your environment is 64-bit Windows, you are in luck. I have posted HERE a configured portable Sublime Text 3. All one has to do is download the zip file, unpack, and run the …

---

## [\[ANN\] New CSV.jl 0.5 Release](https://discourse.julialang.org/t/ann-new-csv-jl-0-5-release/23848)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 18\
**Last updated:** [October 20, 2019, 2:44am UTC](https://discourse.julialang.org/t/ann-new-csv-jl-0-5-release/23848 "2019-10-20T02:44:32Z")

</div>

I’m pleased to announce a new release of the CSV.jl package. This release provides notable improvements in several areas, including performance, additional features, and enhanced flexibility. Notable improvements: “P…

---

## [Support for HTML data (not HTML strings)](https://discourse.julialang.org/t/support-for-html-data-not-html-strings/14142)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 11\
**Last updated:** [October 19, 2019, 10:34pm UTC](https://discourse.julialang.org/t/support-for-html-data-not-html-strings/14142 "2019-10-19T22:34:59Z")

</div>

Wondering if there’s any way of adding support for HTML data in Julia. Something like: dom = \<section\>\<h1\>Foo\</h1\>\<p\>Hello\</p\>\</section\> instead of dom = "\<section\>\<h1\>Foo\</h1\>\<p\>Hello\</p\>\</section\>" (extra quotes he…

---

## [Inaccurate sampling of profiler?](https://discourse.julialang.org/t/inaccurate-sampling-of-profiler/30030)

<div class="topic-metadata">

**Author:** [@Chong\_Wang](https://discourse.julialang.org/u/Chong_Wang)\
**Replies:** 4\
**Last updated:** [October 19, 2019, 10:02pm UTC](https://discourse.julialang.org/t/inaccurate-sampling-of-profiler/30030 "2019-10-19T22:02:54Z")

</div>

I try to benchmark multiplication between matrices and multilication between one matrix and one number. Here’s the code: using LinearAlgebra BLAS.set\_num\_threads(1) A = rand(ComplexF64, 1000, 1000) B = rand(ComplexF64…

---

## [Julia AArch64 builds are now available on Travis CI](https://discourse.julialang.org/t/julia-aarch64-builds-are-now-available-on-travis-ci/29970)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 5\
**Last updated:** [October 19, 2019, 7:35pm UTC](https://discourse.julialang.org/t/julia-aarch64-builds-are-now-available-on-travis-ci/29970 "2019-10-19T19:35:27Z")

</div>

More exciting news for people who love cross-platform CI: Travis CI has recently added support for 64-bit ARM builds, and I’m pleased to announce that Julia is available out of the box on Travis ARM builds! To get start…

---

## [Code loading with workers and modules](https://discourse.julialang.org/t/code-loading-with-workers-and-modules/30064)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 7\
**Last updated:** [October 19, 2019, 2:07pm UTC](https://discourse.julialang.org/t/code-loading-with-workers-and-modules/30064 "2019-10-19T14:07:10Z")

</div>

I’m a bit lost on how to load code into worker processes. I’m getting the error: KeyError: key \[mypackagename\] \[502b64d0-c436-11e9-3033-a3ceb19233e3\] not found This is resulting from a pmap call inside a function in an…

---

## [Why does this method signature turns 2 methods instead of 1?](https://discourse.julialang.org/t/why-does-this-method-signature-turns-2-methods-instead-of-1/30085)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 5\
**Last updated:** [October 19, 2019, 6:11pm UTC](https://discourse.julialang.org/t/why-does-this-method-signature-turns-2-methods-instead-of-1/30085 "2019-10-19T18:11:27Z")

</div>

julia\> f(x::Int) = "A" f (generic function with 2 methods) julia\> f(x::Union{Int,Float64}) = "B" f (generic function with 3 methods) julia\> methods(f,Tuple{Union{Int,Float64}}) # 2 methods for generic function "f": \[1\]…

---

## [Julia with Jupyterlab](https://discourse.julialang.org/t/julia-with-jupyterlab/30078)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 2\
**Last updated:** [October 19, 2019, 4:21pm UTC](https://discourse.julialang.org/t/julia-with-jupyterlab/30078 "2019-10-19T16:21:47Z")

</div>

Hi, I am confused about the preferred way of setting up Julia to be used with Jupyterlab when conda should also be used to manage python environements. I have set a link to the Julia binary and have installed IJulia. It…

---

## [Managing Single and Multithreaded Implementations](https://discourse.julialang.org/t/managing-single-and-multithreaded-implementations/30083)

<div class="topic-metadata">

**Author:** [@sjkelly](https://discourse.julialang.org/u/sjkelly)\
**Replies:** 1\
**Last updated:** [October 19, 2019, 4:07pm UTC](https://discourse.julialang.org/t/managing-single-and-multithreaded-implementations/30083 "2019-10-19T16:07:13Z")

</div>

As a library maintainer what are some good idioms for managing implementations of single threaded and multi threaded algorithm implementations? Yesterday I implemented an algorithm three ways, with channels, locks, and …

---

## [How to undershand the Objective goes greater while itering?](https://discourse.julialang.org/t/how-to-undershand-the-objective-goes-greater-while-itering/29721)

<div class="topic-metadata">

**Author:** [@kuro26](https://discourse.julialang.org/u/kuro26)\
**Replies:** 5\
**Last updated:** [October 19, 2019, 2:46pm UTC](https://discourse.julialang.org/t/how-to-undershand-the-objective-goes-greater-while-itering/29721 "2019-10-19T14:46:05Z")

</div>

This is the iteration process for a problem, the result in iter 19 still acceptable. In my understanding of optimization, this should not happen! Is anybody know why waa that? I am really puzzled

---

## [InexactError when trying to define in DynamicalSystems.jl](https://discourse.julialang.org/t/inexacterror-when-trying-to-define-in-dynamicalsystems-jl/30076)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 2\
**Last updated:** [October 19, 2019, 2:37pm UTC](https://discourse.julialang.org/t/inexacterror-when-trying-to-define-in-dynamicalsystems-jl/30076 "2019-10-19T14:37:42Z")

</div>

I am trying to create a dynamical system using the DynamicalSystems.jl package. However, I am encountering a very basic problem when trying to define a system. using DynamicalSystems; function L63\_eom!(du, u, p, t) …

---

## [Pkg.installed() in nightlies](https://discourse.julialang.org/t/pkg-installed-in-nightlies/30072)

<div class="topic-metadata">

**Author:** [@zgornel](https://discourse.julialang.org/u/zgornel)\
**Replies:** 2\
**Last updated:** [October 19, 2019, 11:28am UTC](https://discourse.julialang.org/t/pkg-installed-in-nightlies/30072 "2019-10-19T11:28:21Z")

</div>

Pkg.installed() seems to be missing from julia 1.4+. Was it moved or renamed?

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

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