{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "# NBVAL_IGNORE_OUTPUT\n", "import numpy as np\n", "from pysr import PySRRegressor, jl" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "3\n" ] } ], "source": [ "%%julia\n", "\n", "# Automatically activates Julia magic\n", "\n", "x = 1\n", "println(x + 2)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "4\n" ] } ], "source": [ "%julia println(x + 3)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
PySRRegressor.equations_ = NoneIn a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
PySRRegressor.equations_ = None