[PYTHON] How to see the contents of the Jupyter notebook ipynb file

2020.09.20 Post

necessity

I often write code on a Jupyter notebook and say, "I want to copy the Jupyter code I made at that time!". It would be nice if the ipynb file happened to be under the directory of the Jupyter that is currently open, but if not, quit / restart the Jupyter notebook, open the required ipynb file, copy it to the editor, and copy it to the original I had to take the trouble of restarting the Jupyter notebook to get back to work. When I was wondering if something could be done, I found that there are three ways to efficiently check the contents of other ipynb files, so I will introduce them. I don't know if any inconvenience is caused by using the method described here. Please try at your own risk.

Use VS code

The method is described on this site.

I chose and tried using VS Cod.

If you set VS code to the default in Open with: of Get info on Mac, you can open it by double-clicking the ipynb file.

Use Jupyter lab

With Jupyter Lab you can open multiple tabs! So I'm just installing it and checking the condition. It feels like the movement is sluggish on my machine.

Open Jupyter in multiple browsers

Even with Jupyter notebook, if you put this (`http: // localhost: 8888 /? Token = xxxxxx ......`) in the url, you can open Jupyter notebook with a different browser. For example, in my case, default is Safari, but this (`http: // localhost: 8888 /? Token = xxxxxx ......`) that appears in terminal is used in Firefox and Chrome. You can open the notebook in each browser by putting it in the url.

that's all

Recommended Posts

How to see the contents of the Jupyter notebook ipynb file
Jupyter Notebook Basics of how to use
How to use Jupyter Notebook
Template of python script to read the contents of the file
How to instantly launch Jupyter Notebook from the terminal
How to view progress bar on Jupyter Notebook to see progress
A memorandum of how to execute the! Sudo magic command in Jupyter Notebook
How to make the font width of jupyter notebook put in pyenv equal width
[Ubuntu] How to delete the entire contents of a directory
Simply view the Jupyter notebook file
See the contents of Kumantic Segumantion
How to connect the contents of a list into a string
[EC2] How to install chrome and the contents of each command
[TensorFlow 2] How to check the contents of Tensor in graph mode
[Linux] How to disable the automatic update of the /etc/resolv.conf file (AmazonLinux2)
How to output the output result of the Linux man command to a file
How to use Jupyter on the front end of supercomputer ITO
How to check the version of Django
How to execute commands in jupyter notebook
How to use jupyter notebook with ABCI
How to use Jupyter notebook [Super Basic]
[Introduction to Python] How to sort the contents of a list efficiently with list sort
How to compare if the contents of the objects in scipy.sparse.csr_matrix are the same
How to put a line number at the beginning of a CSV file
How to calculate the volatility of a brand
How to find the area of the Voronoi diagram
How to debug with Jupyter or iPython Notebook
Fill the browser with the width of Jupyter Notebook
Recursively search the specified directory to see the file
[Bash] While read, pass the contents of the file to variables for each column
To output a value even in the middle of a cell with Jupyter Notebook
How to access the contents of a Linux disk on a Mac (but read-only)
Convert jupyter notebook .ipynb files to python executable .py files
I want to see the file name from DataLoader
How to know the port number of the xinetd service
How to get the number of digits in Python
The kernel of jupyter notebook can no longer connect
How to visualize the decision tree model of scikit-learn
Mac application for double-clicking to open Jupyter Notebook (* .ipynb)
Try to get the contents of Word with Golang
[Blender] How to dynamically set the selection of EnumProperty
Next to Excel, for the time being, jupyter notebook
[Python] Summary of how to specify the color of the figure
How to hit the document of Magic Function (Line Magic)
How to access the global variable of the imported module
How to (force) pdf conversion of IPython Notebook slides
[Selenium] How to specify the relative path of chromedriver?
How to display the modification date of a file in C language up to nanoseconds
Read the csv file with jupyter notebook and write the graph on top of it
How to deal with the phenomenon that Python (Jupyter notebook) executed on WSL becomes Aborted
How to increase the processing speed of vertex position acquisition
How to find the optimal number of clusters in k-means
[IPython] How to Share IPython Notebook
Introduced Jupyter Notebook to CentOS 7
How to switch the configuration file to be read by Python
Django returns the contents of the file as an HTTP response
How to use the generator
How to import NoteBook as a module in Jupyter (IPython)
How to change Jupyter layout
About the garbled Japanese part of pandas-profiling in Jupyter notebook
How to use IPython Notebook