# New to Julia

**URL:** https://discourse.julialang.org/c/first-steps/8.md?page=65

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

**Page:** 66

---

## [How to learn Julia for Bioinformatics?](https://discourse.julialang.org/t/how-to-learn-julia-for-bioinformatics/105870)

<div class="topic-metadata">

**Author:** [@Mohit](https://discourse.julialang.org/u/Mohit)\
**Replies:** 7\
**Last updated:** [November 8, 2023, 3:24pm UTC](https://discourse.julialang.org/t/how-to-learn-julia-for-bioinformatics/105870 "2023-11-08T15:24:10Z")

</div>

Hello ; I have did my masters in Bioinformatics but so moved to the experimental Neuroscience 12 years ago. I would like to return back to Bioinformatics and thought that it would be great to start learning modern Bioi…

---

## [Trying to pass a variable to @df df plot(variable,](https://discourse.julialang.org/t/trying-to-pass-a-variable-to-df-df-plot-variable/105906)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 8:55am UTC](https://discourse.julialang.org/t/trying-to-pass-a-variable-to-df-df-plot-variable/105906 "2023-11-08T08:55:04Z")

</div>

I’m trying to get the following code working but can’t figure out what I need to do. function plot\_type\_wealth(dataframe) type\_vector = \[:Supplier, :Consumer\] label\_vector = \["Supplier" "Consumer"\] @df data…

---

## [Deps.jl fie is missing when installing GMT julia package](https://discourse.julialang.org/t/deps-jl-fie-is-missing-when-installing-gmt-julia-package/105803)

<div class="topic-metadata">

**Author:** [@Chamika\_Kasun](https://discourse.julialang.org/u/Chamika_Kasun)\
**Replies:** 17\
**Last updated:** [November 8, 2023, 12:36am UTC](https://discourse.julialang.org/t/deps-jl-fie-is-missing-when-installing-gmt-julia-package/105803 "2023-11-08T00:36:37Z")

</div>

I’m getting following error, when I tried to install the GMT package into global packages. Failed to precompile GMT \[5752ebe1-31b9-557e-87aa-f909b540aa54\] to /Users/cbandara/.julia/compiled/v1.6/GMT/jl\_rcWYt7. ERROR: Lo…

---

## [How to plot a 2D array as in Python?](https://discourse.julialang.org/t/how-to-plot-a-2d-array-as-in-python/74324)

<div class="topic-metadata">

**Author:** [@Shivam\_Jha](https://discourse.julialang.org/u/Shivam_Jha)\
**Replies:** 2\
**Last updated:** [November 8, 2023, 12:26am UTC](https://discourse.julialang.org/t/how-to-plot-a-2d-array-as-in-python/74324 "2023-11-08T00:26:27Z")

</div>

import matplotlib.pyplot as plt import numpy as np N = 64 # resolution N x 3N boxsizeX = 0.5 boxsizeY = 1.5 dx = boxsizeX / N vol = dx\*\*2 xlin = np.linspace(0.5\*dx, boxs…

---

## [Constructing Markov Transition Frequency Matrix with DataFrames](https://discourse.julialang.org/t/constructing-markov-transition-frequency-matrix-with-dataframes/54890)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 7\
**Last updated:** [November 7, 2023, 9:47pm UTC](https://discourse.julialang.org/t/constructing-markov-transition-frequency-matrix-with-dataframes/54890 "2023-11-07T21:47:43Z")

</div>

I am cross-posting this question from StackOverflow since that seems a bit slow. I want to use Julia DataFrames to construct a 3x3 Markov transition matrix i.e. a frequency matrix that tells me the likelihood of transit…

---

## [How to efficiently find columns of the matrix which are the same?](https://discourse.julialang.org/t/how-to-efficiently-find-columns-of-the-matrix-which-are-the-same/105873)

<div class="topic-metadata">

**Author:** [@dgsob](https://discourse.julialang.org/u/dgsob)\
**Replies:** 10\
**Last updated:** [November 7, 2023, 9:39pm UTC](https://discourse.julialang.org/t/how-to-efficiently-find-columns-of-the-matrix-which-are-the-same/105873 "2023-11-07T21:39:24Z")

</div>

Hi all, I was trying to optimize my naive code I wrote for an algorithm I’m working on, and I’ve found this part takes up the most runtime: num\_of\_the\_same\_columns = 0 num\_of\_columns = size(matrix, 2) for column\_i…

---

## [Function inside struct allocates when referenced](https://discourse.julialang.org/t/function-inside-struct-allocates-when-referenced/105785)

<div class="topic-metadata">

**Author:** [@izod2](https://discourse.julialang.org/u/izod2)\
**Replies:** 25\
**Last updated:** [November 7, 2023, 4:41pm UTC](https://discourse.julialang.org/t/function-inside-struct-allocates-when-referenced/105785 "2023-11-07T16:41:16Z")

</div>

In the example below, if box1 is passed as an argument to calcA, then calling its function box1.func leads to allocation. However, if box1.func is passed as a direct argument to calcB, then there is no allocation. Can …

---

## [Error showing value of type TikzPicture: The latex command \`lualatex' failed](https://discourse.julialang.org/t/error-showing-value-of-type-tikzpicture-the-latex-command-lualatex-failed/105894)

<div class="topic-metadata">

**Author:** [@gonshem](https://discourse.julialang.org/u/gonshem)\
**Replies:** 1\
**Last updated:** [November 7, 2023, 4:19pm UTC](https://discourse.julialang.org/t/error-showing-value-of-type-tikzpicture-the-latex-command-lualatex-failed/105894 "2023-11-07T16:19:23Z")

</div>

Hello everyone, I am encountering an issue while using the PGFPlotsX package in Julia to generate a TikzPicture. I am getting an error message that says “The LaTeX command lualatex jl\_u5wvs7aPQN.tex failed.” The code: …

---

## [Solving type instabilities in simple classification model](https://discourse.julialang.org/t/solving-type-instabilities-in-simple-classification-model/105572)

<div class="topic-metadata">

**Author:** [@looking4stability](https://discourse.julialang.org/u/looking4stability)\
**Replies:** 7\
**Last updated:** [November 7, 2023, 9:21am UTC](https://discourse.julialang.org/t/solving-type-instabilities-in-simple-classification-model/105572 "2023-11-07T09:21:03Z")

</div>

Hi, I’m pretty new to Julia, so please be nice:) I wrote a simple script to identify mnist digits. So far it runs okay, and I like the language a lot. But what I can’t get my head wrapped around are the type instabil…

---

## [Importing Python Modules](https://discourse.julialang.org/t/importing-python-modules/105123)

<div class="topic-metadata">

**Author:** [@Hao\_Wang](https://discourse.julialang.org/u/Hao_Wang)\
**Replies:** 8\
**Last updated:** [November 5, 2023, 9:33pm UTC](https://discourse.julialang.org/t/importing-python-modules/105123 "2023-11-05T21:33:51Z")

</div>

Hello mates! This is a new Julia user. I was caught by a trouble to import a Py module “graphviz” to Julia. I’ve checked that I am referring to the correct path of Py ENV\["PYTHON"\]="/Users/whao/anaconda3/bin/python3.11…

---

## [Memory allocation when using permutedims](https://discourse.julialang.org/t/memory-allocation-when-using-permutedims/105806)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 1\
**Last updated:** [November 5, 2023, 6:28am UTC](https://discourse.julialang.org/t/memory-allocation-when-using-permutedims/105806 "2023-11-05T06:28:20Z")

</div>

Hi, I am trying to do some operations on some large tensor (roughly 2^(24)-2^(26) complex elements). I need to use reshape and permutedims frequently. Considering the large size of the tensor I consider, I am a little w…

---

## [Defining predetermined values on surface of domain](https://discourse.julialang.org/t/defining-predetermined-values-on-surface-of-domain/105799)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 0\
**Last updated:** [November 4, 2023, 6:47pm UTC](https://discourse.julialang.org/t/defining-predetermined-values-on-surface-of-domain/105799 "2023-11-04T18:47:23Z")

</div>

Hi, I am using gridap to evaluate 3 different variables density, displacement and phase field. my domain is a rectangle and there are 3 small rectangles around supports and load that i want to assign value of 1 to those …

---

## [Removing coefficients in GLM](https://discourse.julialang.org/t/removing-coefficients-in-glm/105772)

<div class="topic-metadata">

**Author:** [@dgagnon](https://discourse.julialang.org/u/dgagnon)\
**Replies:** 3\
**Last updated:** [November 4, 2023, 5:22pm UTC](https://discourse.julialang.org/t/removing-coefficients-in-glm/105772 "2023-11-04T17:22:03Z")

</div>

Hello I have the following result for my GLM analysis: julia\> gm1 = fit(GeneralizedLinearModel, @formula(compte ~ exp27 + exp26 + exp25+ exp24 + exp27\*exp26\*exp25\*exp24), viewbits, Poisson()) StatsModels.TableRegressio…

---

## [Plotting interaction from a fixed effects panel model](https://discourse.julialang.org/t/plotting-interaction-from-a-fixed-effects-panel-model/105792)

<div class="topic-metadata">

**Author:** [@mgmtprofessor](https://discourse.julialang.org/u/mgmtprofessor)\
**Replies:** 1\
**Last updated:** [November 4, 2023, 11:53am UTC](https://discourse.julialang.org/t/plotting-interaction-from-a-fixed-effects-panel-model/105792 "2023-11-04T11:53:45Z")

</div>

I just started using Julia yesterday (coming from Stata) and I am looking for a way of plotting interactions and creating graphs like the one I link below my code. I’m still newish to Python. Any resources would also be …

---

## [Registry.toml missing](https://discourse.julialang.org/t/registry-toml-missing/24152)

<div class="topic-metadata">

**Author:** [@pnotequalnp](https://discourse.julialang.org/u/pnotequalnp)\
**Replies:** 10\
**Last updated:** [November 3, 2023, 10:26pm UTC](https://discourse.julialang.org/t/registry-toml-missing/24152 "2023-11-03T22:26:08Z")

</div>

Julia 1.1, Windows 10 64-bit. Just installed, doing ‘add \[package\]’ in the package REPL gives Cloning default registries into \`C:\\Users\\User\\.julia\` Cloning registry from "https://github.com/JuliaRegistries/General.git…

---

## [HTTP Streamed Response BufferedInputStream(http::HTTP.Stream) Warning](https://discourse.julialang.org/t/http-streamed-response-bufferedinputstream-http-http-stream-warning/105777)

<div class="topic-metadata">

**Author:** [@JohnDuffy](https://discourse.julialang.org/u/JohnDuffy)\
**Replies:** 1\
**Last updated:** [November 3, 2023, 9:39pm UTC](https://discourse.julialang.org/t/http-streamed-response-bufferedinputstream-http-http-stream-warning/105777 "2023-11-03T21:39:06Z")

</div>

Hi I’m streaming JSON from a REST API successfully (it appears) using: HTTP.open(:GET, url, headers) do http for line in eachline(http) print(line) end end However, I getting this warning at the beginn…

---

## [Problem when adding up Function expressions](https://discourse.julialang.org/t/problem-when-adding-up-function-expressions/105710)

<div class="topic-metadata">

**Author:** [@Raunak12775](https://discourse.julialang.org/u/Raunak12775)\
**Replies:** 4\
**Last updated:** [November 3, 2023, 7:01pm UTC](https://discourse.julialang.org/t/problem-when-adding-up-function-expressions/105710 "2023-11-03T19:01:31Z")

</div>

I am trying to have a function that returns Function type in a vector, now I want to add all the elements of the vector to return again a Function type and then I want plot this Function. Here is my code snippet. functi…

---

## [Genie.jl, global session variables](https://discourse.julialang.org/t/genie-jl-global-session-variables/33260)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 1:33pm UTC](https://discourse.julialang.org/t/genie-jl-global-session-variables/33260 "2023-11-03T13:33:19Z")

</div>

I need to write a very easy web application, in which I need to use Julia’s function. So I try to use Genie. To be honest, I don’t find good documentation, even the official doc isn’t full. I wrote the simplest example.…

---

## [Threads, synchronization, consistency](https://discourse.julialang.org/t/threads-synchronization-consistency/105682)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 8\
**Last updated:** [November 2, 2023, 12:11pm UTC](https://discourse.julialang.org/t/threads-synchronization-consistency/105682 "2023-11-02T12:11:58Z")

</div>

I’m following the documentation here. I’ve run this code from the documentation: n = 10 a = zeros(n) Threads.@threads for i = 1:n a\[i\] = Threads.threadid() end a I’m aware of and also have used @spawn, I don’t thi…

---

## [Longitudinal data plotting](https://discourse.julialang.org/t/longitudinal-data-plotting/105629)

<div class="topic-metadata">

**Author:** [@Huputus](https://discourse.julialang.org/u/Huputus)\
**Replies:** 5\
**Last updated:** [October 31, 2023, 8:45pm UTC](https://discourse.julialang.org/t/longitudinal-data-plotting/105629 "2023-10-31T20:45:10Z")

</div>

Hello people, I’m trying to plot longitudinal data that includes columns “ID”, “Time” and “Weight”. When I try to plot it with command plot(df.Time, df.Weight) it creates one line that goes back and forth. So how I can …

---

## [MPI/Distributed linear system solver?](https://discourse.julialang.org/t/mpi-distributed-linear-system-solver/105355)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 20\
**Last updated:** [October 26, 2023, 9:00pm UTC](https://discourse.julialang.org/t/mpi-distributed-linear-system-solver/105355 "2023-10-26T21:00:11Z")

</div>

Hi, folks. Is there a well established way to solve a linear system (normal, fully populated, Ax=b) across several nodes with Julia? Using MPI or something. I looked around and couldn’t find anything. Thanks!

---

## [When should I \`activate\`?](https://discourse.julialang.org/t/when-should-i-activate/105581)

<div class="topic-metadata">

**Author:** [@kaimera](https://discourse.julialang.org/u/kaimera)\
**Replies:** 4\
**Last updated:** [October 30, 2023, 8:33pm UTC](https://discourse.julialang.org/t/when-should-i-activate/105581 "2023-10-30T20:33:29Z")

</div>

I understand this is a super basic question, but I don’t think I know the correct words to find similar questions that have already answered this. I’m attempting to make a package, using Revise.jl. I’m following the coo…

---

## [Transpose columns to rows](https://discourse.julialang.org/t/transpose-columns-to-rows/105508)

<div class="topic-metadata">

**Author:** [@davide445](https://discourse.julialang.org/u/davide445)\
**Replies:** 9\
**Last updated:** [October 30, 2023, 6:37pm UTC](https://discourse.julialang.org/t/transpose-columns-to-rows/105508 "2023-10-30T18:37:23Z")

</div>

To prepare the import into an ERP system of a list of customers (identified from an id) and their related 10 years historical usage data of a system, I needed to shift the data from customer1, y1:value1, y2:value2, … y…

---

## [Odd inlining behaviour with cglobal wrapper, IS THIS A BUG? What am I doing wrong?](https://discourse.julialang.org/t/odd-inlining-behaviour-with-cglobal-wrapper-is-this-a-bug-what-am-i-doing-wrong/104562)

<div class="topic-metadata">

**Author:** [@gmcardle](https://discourse.julialang.org/u/gmcardle)\
**Replies:** 5\
**Last updated:** [October 30, 2023, 3:42pm UTC](https://discourse.julialang.org/t/odd-inlining-behaviour-with-cglobal-wrapper-is-this-a-bug-what-am-i-doing-wrong/104562 "2023-10-30T15:42:44Z")

</div>

Hi, I’m trying to make a convenience wrapper for fetching global variables from a C library. The basic wrapper function works, but multiple-dispatch variants don’t work unless I add some specific lines of debugging outpu…

---

## [Help me with using GtkPaned in Gtk.jl](https://discourse.julialang.org/t/help-me-with-using-gtkpaned-in-gtk-jl/96424)

<div class="topic-metadata">

**Author:** [@samq](https://discourse.julialang.org/u/samq)\
**Replies:** 1\
**Last updated:** [October 29, 2023, 10:52pm UTC](https://discourse.julialang.org/t/help-me-with-using-gtkpaned-in-gtk-jl/96424 "2023-10-29T22:52:16Z")

</div>

OS = Ubuntu 18.04 Julia version = 1.8.5 I looked at the Gtk.jl web site, but could not discern how to resolve the ‘ERROR: LoadError: MethodError(GtkPanedLeaf, (0, 200), 0xffffffffffffffff)’. Using Google, I couldn’t fi…

---

## [Dates.Time Parsing a Time String with Nanosecond Resolution](https://discourse.julialang.org/t/dates-time-parsing-a-time-string-with-nanosecond-resolution/105540)

<div class="topic-metadata">

**Author:** [@JohnDuffy](https://discourse.julialang.org/u/JohnDuffy)\
**Replies:** 3\
**Last updated:** [October 29, 2023, 7:34pm UTC](https://discourse.julialang.org/t/dates-time-parsing-a-time-string-with-nanosecond-resolution/105540 "2023-10-29T19:34:55Z")

</div>

Hi Julia 1.9.3 MacOS x86\_64 As I understand the Dates documentation, the resolution for a DateTime object is milliseconds and for a Time object it is nanoseconds. So, I believe I should be able to parse a nanosecond t…

---

## [Unsatisfiable Requirements when installing PlotlyJS](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526)

<div class="topic-metadata">

**Author:** [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Replies:** 5\
**Last updated:** [October 29, 2023, 5:01pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-when-installing-plotlyjs/105526 "2023-10-29T17:01:44Z")

</div>

When I try to add the latest version of PlotlyJS, i get the error below: (@v1.9) pkg\> add PlotlyJS@v2.20.0 Resolving package versions… ERROR: Unsatisfiable requirements detected for package PlotlyJS \[f0f68f2c\]: Plotl…

---

## [How to do fast bulk copy from local Windows computer to SQL Server?](https://discourse.julialang.org/t/how-to-do-fast-bulk-copy-from-local-windows-computer-to-sql-server/105503)

<div class="topic-metadata">

**Author:** [@jwright11](https://discourse.julialang.org/u/jwright11)\
**Replies:** 2\
**Last updated:** [October 28, 2023, 4:47pm UTC](https://discourse.julialang.org/t/how-to-do-fast-bulk-copy-from-local-windows-computer-to-sql-server/105503 "2023-10-28T16:47:21Z")

</div>

I have a table with two string columns (about 30,000 rows) in an Excel file on Windows 10 and I’m trying to do a bulk copy into SQL Server. I have an Excel add-in which uses the C# SqlBulkCopy class to do a bulk copy fr…

---

## [Broadcasting power with integer literal issues](https://discourse.julialang.org/t/broadcasting-power-with-integer-literal-issues/105449)

<div class="topic-metadata">

**Author:** [@ybbat](https://discourse.julialang.org/u/ybbat)\
**Replies:** 2\
**Last updated:** [October 28, 2023, 11:31am UTC](https://discourse.julialang.org/t/broadcasting-power-with-integer-literal-issues/105449 "2023-10-28T11:31:46Z")

</div>

Hi, I am having some issues with custom broadcasting working with the power (^) operator when I am trying to use an integer literal as the exponent. My broadcast methods seem to work fine for other methods such as + or \*…

---

## [Package install](https://discourse.julialang.org/t/package-install/105470)

<div class="topic-metadata">

**Author:** [@Takelechanie](https://discourse.julialang.org/u/Takelechanie)\
**Replies:** 2\
**Last updated:** [October 27, 2023, 11:42am UTC](https://discourse.julialang.org/t/package-install/105470 "2023-10-27T11:42:45Z")

</div>

Dear all, I installed “PointSpreadFunctions, View5D, IndexFunArrays, Noise, FFTW, NDTools, FourierTools, DeconvOptim” packages but I have gotten these errors in my code during compiling. ERROR: UndefVarError: conv\_psf …

[Previous page](https://discourse.julialang.org/c/first-steps/8.md?page=64)

[Next page](https://discourse.julialang.org/c/first-steps/8.md?page=66)
