committed by
GitHub
parent
6a4febb33a
commit
78ed2a67a2
13
tutorials/tutorial7/tutorial.ipynb
vendored
13
tutorials/tutorial7/tutorial.ipynb
vendored
@@ -5,7 +5,9 @@
|
||||
"id": "dbbb73cb-a632-4056-bbca-b483b2ad5f9c",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Tutorial: Resolution of an inverse problem"
|
||||
"# Tutorial: Resolution of an inverse problem\n",
|
||||
"\n",
|
||||
"[](https://colab.research.google.com/github/mathLab/PINA/blob/master/tutorials/tutorial7/tutorial.ipynb)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -53,6 +55,15 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"## routine needed to run the notebook on Google Colab\n",
|
||||
"try:\n",
|
||||
" import google.colab\n",
|
||||
" IN_COLAB = True\n",
|
||||
"except:\n",
|
||||
" IN_COLAB = False\n",
|
||||
"if IN_COLAB:\n",
|
||||
" !pip install \"pina-mathlab\"\n",
|
||||
" \n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"import torch\n",
|
||||
"from pytorch_lightning.callbacks import Callback\n",
|
||||
|
||||
11
tutorials/tutorial7/tutorial.py
vendored
11
tutorials/tutorial7/tutorial.py
vendored
@@ -2,6 +2,8 @@
|
||||
# coding: utf-8
|
||||
|
||||
# # Tutorial: Resolution of an inverse problem
|
||||
#
|
||||
# [](https://colab.research.google.com/github/mathLab/PINA/blob/master/tutorials/tutorial7/tutorial.ipynb)
|
||||
|
||||
# ### Introduction to the inverse problem
|
||||
|
||||
@@ -26,6 +28,15 @@
|
||||
# In[1]:
|
||||
|
||||
|
||||
## routine needed to run the notebook on Google Colab
|
||||
try:
|
||||
import google.colab
|
||||
IN_COLAB = True
|
||||
except:
|
||||
IN_COLAB = False
|
||||
if IN_COLAB:
|
||||
get_ipython().system('pip install "pina-mathlab"')
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import torch
|
||||
from pytorch_lightning.callbacks import Callback
|
||||
|
||||
Reference in New Issue
Block a user