Skip to content

Week2_4-SimplePlots.ipynb shows warning in cell 1 #2

Description

@gaballench

In cell 1 the following warning is reported:

# Setting up a custom stylesheet in IJulia
file = open("style.css") # A .css file in the same folder as this notebook file
styl = readall(file) # Read the file
HTML("$styl") # Output as HTML
WARNING: readall is deprecated, use readstring instead.
 in depwarn(::String, ::Symbol) at ./deprecated.jl:64
 in readall(::IOStream, ::Vararg{IOStream,N}) at ./deprecated.jl:30
 in include_string(::String, ::String) at ./loading.jl:441
 in execute_request(::ZMQ.Socket, ::IJulia.Msg) at /home/balleng/.julia/v0.5/IJulia/src/execute_request.jl:169
 in eventloop(::ZMQ.Socket) at /home/balleng/.julia/v0.5/IJulia/src/eventloop.jl:8
 in (::IJulia.##9#15)() at ./task.jl:360
while loading In[1], in expression starting on line 3

Using the function readstring instead of readall in line 3 solves the problem.

Cheers,

Gustavo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions