# Latest

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

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

**Page:** 1961

---

## [Test if a module is a child of another module](https://discourse.julialang.org/t/test-if-a-module-is-a-child-of-another-module/26346)

<div class="topic-metadata">

**Author:** [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Replies:** 2\
**Last updated:** [July 14, 2019, 3:53pm UTC](https://discourse.julialang.org/t/test-if-a-module-is-a-child-of-another-module/26346 "2019-07-14T15:53:36Z")

</div>

Hello, On the following example, how would you test if a module has another module as a parent or grand parent? module MyModule module MySubModule module MySubSubModule end end end NOTE: I would p…

---

## [Will field extraction be recognized as a loop invariant?](https://discourse.julialang.org/t/will-field-extraction-be-recognized-as-a-loop-invariant/26345)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 3\
**Last updated:** [July 14, 2019, 3:26pm UTC](https://discourse.julialang.org/t/will-field-extraction-be-recognized-as-a-loop-invariant/26345 "2019-07-14T15:26:14Z")

</div>

In the following example struct Foo colind::Int A::Matrix{Float64} v::Vector{Float64} end function copycol!(foo::Foo) for i in eachindex(foo.v) foo.v\[i\] = foo.A\[i, foo.colind\] end foo en…

---

## [Vector comprehension example](https://discourse.julialang.org/t/vector-comprehension-example/26344)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 2\
**Last updated:** [July 14, 2019, 2:38pm UTC](https://discourse.julialang.org/t/vector-comprehension-example/26344 "2019-07-14T14:38:31Z")

</div>

The following is the code. v=\[2,3,4\] v\[\[true for i in v\]\] It would return a 3-element Array{Int64,1}, \[2,3,4\]. It looks a bit strange to me. Originally, I thought it would return a matrix. I was wondering, how do you u…

---

## [Can't \`\]dev\` my own package](https://discourse.julialang.org/t/cant-dev-my-own-package/26340)

<div class="topic-metadata">

**Author:** [@yha](https://discourse.julialang.org/u/yha)\
**Replies:** 8\
**Last updated:** [July 14, 2019, 1:24pm UTC](https://discourse.julialang.org/t/cant-dev-my-own-package/26340 "2019-07-14T13:24:13Z")

</div>

I’m trying to share an unregistered package that’s hosted as a private github repository. After \]adding the package from the github URL on a machine where it was not previously developed, I try to \]dev it, I get the fol…

---

## [VariablePrimalStart() is not supported by the model and LazyBridgeOptimizer](https://discourse.julialang.org/t/variableprimalstart-is-not-supported-by-the-model-and-lazybridgeoptimizer/25447)

<div class="topic-metadata">

**Author:** [@Alxg](https://discourse.julialang.org/u/Alxg)\
**Replies:** 3\
**Last updated:** [July 14, 2019, 11:14am UTC](https://discourse.julialang.org/t/variableprimalstart-is-not-supported-by-the-model-and-lazybridgeoptimizer/25447 "2019-07-14T11:14:31Z")

</div>

I’m trying to do a MIP-start on a multicommodity capacitated fixed-charge network design problem using JuMP 0.19 and CPLEX 12.8 with the set\_start\_value function, but I keep getting the following error : MathOptInterfac…

---

## [Julia PyPlot control parameters in multiple plot](https://discourse.julialang.org/t/julia-pyplot-control-parameters-in-multiple-plot/26323)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 5\
**Last updated:** [July 14, 2019, 6:34am UTC](https://discourse.julialang.org/t/julia-pyplot-control-parameters-in-multiple-plot/26323 "2019-07-14T06:34:09Z")

</div>

Hello, I am creating some plot in Julia using PyPlot. How can I how can I combine plots with PyPlot? For instance, I would like one line in solid red the other in dotted green: julia\> x = range(0; stop=2\*pi, length=10…

---

## [Can a function tell if an argument is in an enum or otherwise get the base type?](https://discourse.julialang.org/t/can-a-function-tell-if-an-argument-is-in-an-enum-or-otherwise-get-the-base-type/26332)

<div class="topic-metadata">

**Author:** [@tuckermcclure](https://discourse.julialang.org/u/tuckermcclure)\
**Replies:** 1\
**Last updated:** [July 14, 2019, 4:51am UTC](https://discourse.julialang.org/t/can-a-function-tell-if-an-argument-is-in-an-enum-or-otherwise-get-the-base-type/26332 "2019-07-14T04:51:19Z")

</div>

I have a generic function that logs some data into a binary file for a user. Naturally, I need to know how many bits the type needs. This is easy to do for most types. However, I’m unclear on what to do when the user pas…

---

## [Argument order for setindex! and setproperty! not consistent](https://discourse.julialang.org/t/argument-order-for-setindex-and-setproperty-not-consistent/26293)

<div class="topic-metadata">

**Author:** [@dstarerstor](https://discourse.julialang.org/u/dstarerstor)\
**Replies:** 6\
**Last updated:** [July 14, 2019, 3:04am UTC](https://discourse.julialang.org/t/argument-order-for-setindex-and-setproperty-not-consistent/26293 "2019-07-14T03:04:18Z")

</div>

This is really minor, but I happened to notice that the argument order is not consistent between setindex! and setproperty!. For example, the methods setindex!(A::Array{Any,N} where N, x, i::Int64) in Base at essentials…

---

## [Remote Julia Dev need](https://discourse.julialang.org/t/remote-julia-dev-need/26331)

<div class="topic-metadata">

**Author:** [@cwiese](https://discourse.julialang.org/u/cwiese)\
**Replies:** 0\
**Last updated:** [July 13, 2019, 10:29pm UTC](https://discourse.julialang.org/t/remote-julia-dev-need/26331 "2019-07-13T22:29:08Z")

</div>

Looking for a remote (or local to Michigan) Julia developer … someone that knows LightQuery, JuliaDB, Query.jl or similar … huge data wrangling and some forecasting / simulation. Also python/Airflow would be good. cw…

---

## [UserWarning: Legend does not support Line2D object](https://discourse.julialang.org/t/userwarning-legend-does-not-support-line2d-object/970)

<div class="topic-metadata">

**Author:** [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Replies:** 11\
**Last updated:** [July 13, 2019, 10:00pm UTC](https://discourse.julialang.org/t/userwarning-legend-does-not-support-line2d-object/970 "2019-07-13T22:00:52Z")

</div>

When plotting with legends using PyPlot, I got the following error. What may this error be caused by? /usr/lib/pymodules/python2.7/matplotlib/legend.py:613: UserWarning: Legend does not support \[\<matplotlib.lines.Line2D…

---

## [Statistics on Julia and its ecosystem](https://discourse.julialang.org/t/statistics-on-julia-and-its-ecosystem/26228)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 6\
**Last updated:** [July 13, 2019, 8:29pm UTC](https://discourse.julialang.org/t/statistics-on-julia-and-its-ecosystem/26228 "2019-07-13T20:29:33Z")

</div>

Hi all, I’m looking for some background statistics on Julia and its ecosystem for a talk I’m preparing. In particular, I’d be interested in the evolution of number of downloads and the amount of code sharing in the ecos…

---

## [Changing the binding of a variable in a closure](https://discourse.julialang.org/t/changing-the-binding-of-a-variable-in-a-closure/26297)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 5\
**Last updated:** [July 13, 2019, 6:22pm UTC](https://discourse.julialang.org/t/changing-the-binding-of-a-variable-in-a-closure/26297 "2019-07-13T18:22:32Z")

</div>

I am labeling this question as “statistics” because the motivation comes from a statistical application. The tl: dr version is that I want to change the binding of a variable in a closure within a loop. The function it…

---

## [Customizing Broadcasting Recursively for Collections of Arrays](https://discourse.julialang.org/t/customizing-broadcasting-recursively-for-collections-of-arrays/25724)

<div class="topic-metadata">

**Author:** [@SEA](https://discourse.julialang.org/u/SEA)\
**Replies:** 9\
**Last updated:** [July 13, 2019, 5:16pm UTC](https://discourse.julialang.org/t/customizing-broadcasting-recursively-for-collections-of-arrays/25724 "2019-07-13T17:16:45Z")

</div>

I previously asked this question and am aware of the section in the manual about customizing broadcasting. However, rather than defining a new type which behaves like a single array, I would like to define broadcasting …

---

## [Julia plot on REPL and save](https://discourse.julialang.org/t/julia-plot-on-repl-and-save/26288)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 4\
**Last updated:** [July 13, 2019, 3:59pm UTC](https://discourse.julialang.org/t/julia-plot-on-repl-and-save/26288 "2019-07-13T15:59:34Z")

</div>

Hello, is there a simple way to plot on REPL and save the plot? There different methods on the Internet, but none worked with me. Is there a native Julia plot function or do I need packages like pyplot and gadfly? I t…

---

## [Discourse Activity Summary - Daily Summary irrespective of my visit](https://discourse.julialang.org/t/discourse-activity-summary-daily-summary-irrespective-of-my-visit/26322)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 0\
**Last updated:** [July 13, 2019, 2:41pm UTC](https://discourse.julialang.org/t/discourse-activity-summary-daily-summary-irrespective-of-my-visit/26322 "2019-07-13T14:41:45Z")

</div>

How can I get a daily summary if discourse topics, irrespective of whether visit discourse or not? My main problem is I get an activity summary only if I don’t visit the discourse for last one day. But I visit some topi…

---

## [CPU utilization in parallel computing](https://discourse.julialang.org/t/cpu-utilization-in-parallel-computing/26320)

<div class="topic-metadata">

**Author:** [@FujiwaraTakumiEH](https://discourse.julialang.org/u/FujiwaraTakumiEH)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 2:32pm UTC](https://discourse.julialang.org/t/cpu-utilization-in-parallel-computing/26320 "2019-07-13T14:32:07Z")

</div>

When using @distributed parallel code, if the amount of data needed to be manipulated is large, will CPU utilization reach 100%, which can be used as a basis for successful parallel？ (of course, direct test runtime is mo…

---

## [Problems with Plot](https://discourse.julialang.org/t/problems-with-plot/26319)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 12:50pm UTC](https://discourse.julialang.org/t/problems-with-plot/26319 "2019-07-13T12:50:07Z")

</div>

Dear all, I have a problem with Julia 1.0.4 When I run this command to plot a simple figure and I have already installed the package “Plots”. using Plots x=0:0.1:1 y=sin.(x) plot(x,y) appear a huge error below. Anyo…

---

## [Automatic conversion of ^ to repeated \* without applying promotion rule](https://discourse.julialang.org/t/automatic-conversion-of-to-repeated-without-applying-promotion-rule/26261)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 7\
**Last updated:** [July 13, 2019, 12:41pm UTC](https://discourse.julialang.org/t/automatic-conversion-of-to-repeated-without-applying-promotion-rule/26261 "2019-07-13T12:41:36Z")

</div>

I’m writing a symbolic differentiation library for Julia (see https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/main-65.pdf if you are interested) and ran into a problem with promote rules and ^. In an …

---

## [Use another function in the same module](https://discourse.julialang.org/t/use-another-function-in-the-same-module/26318)

<div class="topic-metadata">

**Author:** [@POKIN\_CHAN](https://discourse.julialang.org/u/POKIN_CHAN)\
**Replies:** 4\
**Last updated:** [July 13, 2019, 11:27am UTC](https://discourse.julialang.org/t/use-another-function-in-the-same-module/26318 "2019-07-13T11:27:01Z")

</div>

module ABC function F\_1(a:Int,b:Int) return a + b end function F\_2(c:Int, d:Int) result = F\_1(c+3,d+c) return result end end e.g. Main.ABC.F\_2(3,4) will have an error because F\_1 cannot be called…

---

## [Julia Row-wise operation of DataFrames](https://discourse.julialang.org/t/julia-row-wise-operation-of-dataframes/26315)

<div class="topic-metadata">

**Author:** [@POKIN\_CHAN](https://discourse.julialang.org/u/POKIN_CHAN)\
**Replies:** 2\
**Last updated:** [July 13, 2019, 9:36am UTC](https://discourse.julialang.org/t/julia-row-wise-operation-of-dataframes/26315 "2019-07-13T09:36:37Z")

</div>

function substring\_(x::String,i::Int32) if i==1 return string(x\[1\]) elseif i==2 return x\[2:end\] else return "NA" end end I would like to apply …

---

## [Issue building Cairo linked to glib: undefined method \`uses\_from\_macos'](https://discourse.julialang.org/t/issue-building-cairo-linked-to-glib-undefined-method-uses-from-macos/26311)

<div class="topic-metadata">

**Author:** [@Mouki-Kimou](https://discourse.julialang.org/u/Mouki-Kimou)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 7:11am UTC](https://discourse.julialang.org/t/issue-building-cairo-linked-to-glib-undefined-method-uses-from-macos/26311 "2019-07-13T07:11:08Z")

</div>

Hi ! I wanted to reinstall Gtk because I got an issue with empty windows. But now Cairo does not want to build. I tried to update,upgrade, update-reset, rm, … Homebrew. There is a topic on brew "forum"about that brew …

---

## [Raising a Polynomial to the Nth Power?](https://discourse.julialang.org/t/raising-a-polynomial-to-the-nth-power/26309)

<div class="topic-metadata">

**Author:** [@alulushi](https://discourse.julialang.org/u/alulushi)\
**Replies:** 2\
**Last updated:** [July 13, 2019, 5:58am UTC](https://discourse.julialang.org/t/raising-a-polynomial-to-the-nth-power/26309 "2019-07-13T05:58:59Z")

</div>

Hi all, I’m currently using Julia to perform utility optimization on an n-period model with one stock implementing a buy-and-hold strategy. I want to generalize my program to find the optimal number of shares for any ge…

---

## [Jupyter notebook capture stdout and stderr like python capture magic?](https://discourse.julialang.org/t/jupyter-notebook-capture-stdout-and-stderr-like-python-capture-magic/26253)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 10\
**Last updated:** [July 13, 2019, 5:02am UTC](https://discourse.julialang.org/t/jupyter-notebook-capture-stdout-and-stderr-like-python-capture-magic/26253 "2019-07-13T05:02:04Z")

</div>

Hi, in Jupyter one can use the python %%capture magic to redirect stdout, stderr into a variable. How do you do that in Julia with Juypter? I, most of the times, only have a pure Julia kernel running. Maybe as a bonus:…

---

## [Is there a discrepancy betweeen use of :: and \<: in function versus struct definitions](https://discourse.julialang.org/t/is-there-a-discrepancy-betweeen-use-of-and-in-function-versus-struct-definitions/26304)

<div class="topic-metadata">

**Author:** [@robot-uprising](https://discourse.julialang.org/u/robot-uprising)\
**Replies:** 2\
**Last updated:** [July 13, 2019, 12:04am UTC](https://discourse.julialang.org/t/is-there-a-discrepancy-betweeen-use-of-and-in-function-versus-struct-definitions/26304 "2019-07-13T00:04:54Z")

</div>

for example: function foo(x::Real) … end struct bar{N\<:Real} x::N end Why use :: for function, and \<: for struct? I get an error with: struct bar{N::Real} x::N end

---

## [Issues install Coluna.jl oj Julia 1.1](https://discourse.julialang.org/t/issues-install-coluna-jl-oj-julia-1-1/26298)

<div class="topic-metadata">

**Author:** [@rakesh\_gupta](https://discourse.julialang.org/u/rakesh_gupta)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 10:59pm UTC](https://discourse.julialang.org/t/issues-install-coluna-jl-oj-julia-1-1/26298 "2019-07-12T22:59:59Z")

</div>

Hi - I am having a lot of trouble installing Coluna.jl on the 1.04 version of Julia. The command I am using is: add GitHub - atoptima/Coluna.jl: Branch-and-Price-and-Cut in Julia Which should ostensibly work out of the…

---

## [Crash when creating a GtkFontChooserDialog](https://discourse.julialang.org/t/crash-when-creating-a-gtkfontchooserdialog/26307)

<div class="topic-metadata">

**Author:** [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 10:56pm UTC](https://discourse.julialang.org/t/crash-when-creating-a-gtkfontchooserdialog/26307 "2019-07-12T22:56:27Z")

</div>

I’m trying to create a (default) GtkFontChooserDialog: using Gtk GtkBuilder(buffer="""\<?xml version="1.0" encoding="UTF-8"?\> \<!-- Generated with glade 3.22.1 --\> \<interface\> \<requires lib="gtk+" version="3.20"/\> \<o…

---

## [Use Cbc with Parametron? (ERROR: MathOptInterface.SetAttributeNotAllowed)](https://discourse.julialang.org/t/use-cbc-with-parametron-error-mathoptinterface-setattributenotallowed/26263)

<div class="topic-metadata">

**Author:** [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Replies:** 6\
**Last updated:** [July 12, 2019, 10:31pm UTC](https://discourse.julialang.org/t/use-cbc-with-parametron-error-mathoptinterface-setattributenotallowed/26263 "2019-07-12T22:31:21Z")

</div>

I am trying to adapt the first Parametron README.md example to use Cbc because I’ll need binary variables. However, the example does not work out of the box with Cbc.Optimizer(). I’ve worked through some of the errors …

---

## [ODBC.jl and Stored Procedures](https://discourse.julialang.org/t/odbc-jl-and-stored-procedures/26305)

<div class="topic-metadata">

**Author:** [@MarkovChains](https://discourse.julialang.org/u/MarkovChains)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 10:13pm UTC](https://discourse.julialang.org/t/odbc-jl-and-stored-procedures/26305 "2019-07-12T22:13:53Z")

</div>

I couldn’t find anything about this elsewhere, but is it possible to return data from a SQL Server stored procedure through ODBC.jl? I have a SP that returns data via a “select \* from #temp” line at the end, but when I t…

---

## [Issetequal behavior with duplicate elements](https://discourse.julialang.org/t/issetequal-behavior-with-duplicate-elements/26238)

<div class="topic-metadata">

**Author:** [@pearlzli](https://discourse.julialang.org/u/pearlzli)\
**Replies:** 9\
**Last updated:** [July 12, 2019, 7:12pm UTC](https://discourse.julialang.org/t/issetequal-behavior-with-duplicate-elements/26238 "2019-07-12T19:12:54Z")

</div>

The issetequal docstring says that issetequal(a, b) is equivalent to a ⊆ b && b ⊆ a, but I found this isn’t the case when there are duplicate elements. In v1.0.0: julia\> a = \[1,2,3\]; julia\> b = \[1,1,2,3\]; julia\> a ⊆ b…

---

## [JuliaDB loading data](https://discourse.julialang.org/t/juliadb-loading-data/26281)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 15\
**Last updated:** [July 12, 2019, 6:03pm UTC](https://discourse.julialang.org/t/juliadb-loading-data/26281 "2019-07-12T18:03:03Z")

</div>

I am trying out Julia DB, but am unable to read data. Any ideas what is going wrong here? loadndsparse is running into an error (the error also happens when I sue Float64 for all types). using JuliaDB using CSV #using…

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

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