[Music]
this video shows you how to create a
jupiter notebook let's start by adding a
data asset to the project you can either
browse to select files or drag files
into the panel
great now the data file is uploaded to
object storage and available as a data
asset in this project
next create a notebook
provide a name and a description
and then select the runtime to use when
running this notebook here you see the
environments you could use you'll learn
more about environments later so for now
just select the default spark Python
environment and verify the language and
spark version when you ready create the
notebook
now wait while the runtime environment
is instantiated once the environment is
ready in the notebook access the data
sources and locate the file click insert
to code and choose how you want to
insert the data the choices in this
drop-down box are dependent upon the
language used in this notebook and the
file type notice that the inserted code
includes the credentials you'll need to
read the data file from the object
storage instance
when you run the code the first five
rows display
now let's take a closer look at
environments on the environments tab you
can define the hardware size and
software configuration for the runtime
associated with Watson studio tools such
as notebooks you can see that there is
one active environment runtime namely
the runtime being used by the notebook
you just created and here are the other
default environments you can view any of
the default environments to see a
summary of the configuration
and also create a new environment
definition
first provide a name in a description
if you select spark for the type you'll
see some additional configuration
options in this case just accept the
defaults and choose Scala for the
software version when you ready create
the new environment
the environment is ready for you to use
with a notebook
to switch a notebook to use a different
environment you need to first stop the
colonel
then you can change the environment
and select the custom environment you
just created and associate that with the
notebook
now open the notebook in edit mode and
wait for the new environment to be
instantiated
since this notebook was last saved using
a different kernel you need to set the
new kernel
let's delete the existing cell
locate the source data file and insert a
spark session data frame
when you run the code the first five
rows display
now you're ready to explore the
community and find sample notebooks and
datasets to get started analyzing data
[Music]