2

Today I started learning Julia. I've tried the following on Juno, running Julia 0.3.8

VERSION < v"0.4-" && import Docile
using Docile

@doc doc"""
  Hello Hello ***world***
""" ->
function hello()
  print ("Not bad") 
end

With juno, the ctrl+D key-combo just yields the default:

hello (generic function with 1 method)

The same happens on the terminal with ?

I've tried out other varieties, for example @doc """ blah blah """ -> ..... or even @doc "blah blah" -> ......

I am not sure how to troubleshoot this.

edit ok, wrapping the function in a module which is then imported makes the docstring work in the repl but the ctrl+d key combination in juno does still not work as before.

NoIdeaHowToFixThis
  • 4,484
  • 2
  • 34
  • 69

1 Answers1

3

Since you have posted this question, docstrings have become standard throughout Julia Base and ?function will return the docstring in both Juno and the REPL.

Chris Rackauckas
  • 18,645
  • 3
  • 50
  • 81