AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Jupyter notebook tutorial9/1/2023 ![]() ![]() Figure ( data = data, layout = layout ) py. Surface ( x = x, y = y, z = z ) data = layout = go. cos ( tGrid ) # z = r*cos(t) surface = go. sin ( tGrid ) # y = r*sin(s)*sin(t) z = r * np. sin ( tGrid ) # x = r*cos(s)*sin(t) y = r * np. sin ( 7 * sGrid + 5 * tGrid ) # r = 2 + sin(7s+5t) x = r * np. Import chart_otly as py import aph_objects as go import numpy as np s = np. The name Jupyter is an indirect acronyum of the three core languages it was designed for: JU lia, PYT hon, and R and is inspired by the planet Jupiter. iplot ( fig, filename = 'jupyter-Nuclear Waste Sites on American Campuses' ) Project Jupyter was born out of the IPython project as the project evolved to become a notebook that could support multiple languages hence its historical name as the IPython notebook. Layout ( title = 'Nuclear Waste Sites on Campus', autosize = True, hovermode = 'closest', showlegend = False, mapbox = dict ( accesstoken = mapbox_access_token, bearing = 0, center = dict ( lat = 38, lon =- 94 ), pitch = 0, zoom = 3, style = 'light' ), ) fig = dict ( data = data, layout = layout ) py. read_csv ( ' %20o n%20American%20Campuses.csv' ) site_lat = df. Import chart_otly as py import aph_objects as go import pandas as pd # mapbox_access_token = 'ADD YOUR TOKEN HERE' df = pd. See examples of statistic, scientific, 3D charts, and more here. Plotly: a graphing library for making interactive, publication-quality graphs. ![]() SciPy: a Python-based ecosystem of packages for math, science, and engineering.Colab notebooks are Jupyter notebooks that are hosted by. To create a new Colab notebook you can use the File menu above, or use the following link: create a new Colab notebook. NumPy: a package for scientific computing with tools for algebra, random number generation, integrating with databases, and managing data. You can easily share your Colab notebooks with co-workers or friends, allowing them to comment on your notebooks or even edit them.Pandas: import data via a url and create a dataframe to easily handle data for analysis and graphing.Some useful packages that we'll use in this tutorial include: You can reload all changed modules before executing a new line. IPython comes with automatic reloading magic. You may want to reload submodules if you've edited the code in one. When installing packages in Jupyter, you either need to install the package in your actual shell, or run the ! prefix, e.g.: !pip install packagename Skip down to the for more information on using IRkernel with Jupyter notebooks and graphing examples. To launch a Jupyter notebook, open your terminal and navigate to the directory where you would like to save your notebook. You can also use Jupyter notebooks to execute R code. The bulk of this tutorial discusses executing python code in Jupyter notebooks. ![]()
0 Comments
Read More
Leave a Reply. |