Comments (13)
This should be fixed by dotnet/try#600.
from interactive.
Autocomplete support is not complete so this isn't indicative of a loading failure. Does code compile successfully against the imported library?
from interactive.
I've updated the link: https://github.com/dotnet/interactive/blob/master/docs/NotebooksLocalExperience.md.
Note that the Jupyter kernel is now in a new tool, Microsoft.dotnet-interactive
, and no longer part of Microsoft.dotnet-try
.
from interactive.
Thank you @jonsequitur. Do you have any clue which release / when the contents of that PR will be available on a feed?
from interactive.
Every PR that merges produces a new package in this feed: https://dotnet.myget.org/F/dotnet-try/api/v3/index.json. You can grab the latest by running this in your console:
> dotnet tool update -g dotnet-try --add-source https://dotnet.myget.org/F/dotnet-try/api/v3/index.json
from interactive.
The fix for this is now available in MyGet feed. Please give it a try and let us know if you see any issues.
from interactive.
It looks like the error is no longer displayed with absolute paths but behavior is same as before (i.e. autocompletion doesn't work for types from the imported library)
Relative paths still don't seem to be working. (tried referencing from both jupyter's workspace root and kernel's working directory)
from interactive.
Gotcha. Yes, code compiles great when importing libraries with absolute paths.
How about relative paths? I see them working fine in csi but with .NET Kernel and Jupyter, it complains that the path is wrong. (same on both Win10 and Ubuntu 18.04)
from interactive.
I don't see why a relative path shouldn't work but maybe the working directory is wrong or unclear. I'll give it a look.
from interactive.
I'm seeing this error in version 1.0.19553.4:
#r "C:\Dev\Projects\CafModelingRegionalSoilConditioningIndex\Csip\src\dotnet\Csip.Common\bin\Debug\netstandard2.1\Csip.Common.dll"
Invalid: Command: #r C:\Dev\Projects\CafModelingRegionalSoilConditioningIndex\Csip\src\dotnet\Csip.Common\bin\Debug\netstandard2.1\Csip.Common.dll
When I update to 1.0.19620.2 via:
> dotnet tool update -g dotnet-try --add-source https://dotnet.myget.org/F/dotnet-try/api/v3/index.json
Tool 'dotnet-try' was successfully updated from version '1.0.19553.4' to version '1.0.19620.2'.
The error goes away, but only because the kernel crashes.
[W 09:22:55.774 LabApp] KernelRestarter: restart failed
[W 09:22:55.774 LabApp] Kernel bb768025-c107-4a3e-b5fa-84856efe62da died, removing from map.
[W 09:23:40.784 LabApp] Timeout waiting for kernel_info reply from bb768025-c107-4a3e-b5fa-84856efe62da
[E 09:23:40.784 LabApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: bb768025-c107-4a3e-b5fa-84856efe62da)
[E 09:23:40.785 LabApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: bb768025-c107-4a3e-b5fa-84856efe62da)
from interactive.
@bryanrcarlson This bug was fixed in dotnet/try#609 but the fix is only available in the new dotnet-interactive
, which is in the same MyGet feed as dotnet-try
. I've updated the install instructions here: https://github.com/dotnet/interactive/blob/master/docs/NotebooksLocalExperience.md.
Give that a try.
from interactive.
@jonsequitur That seemed to have fixed it! Thanks!
from interactive.
@jonsequitur Could you copy your updated install instructions here ? Looks like the linked page doesn't exist and I'm experiencing the same issue as @bryanrcarlson. Thanks !
I've tried installing microsoft.dotnet-try using the following command
dotnet tool install -g --add-source "https://dotnet.myget.org/F/dotnet-try/api/v3/index.json" Microsoft.dotnet-try
I'm getting the following output when trying to open a C# Jupyter notebook.
[I 14:31:06.741 NotebookApp] Creating new notebook in
[I 14:31:08.111 NotebookApp] Kernel started: 09cd8fef-9d77-45b8-8859-298b9836062a
Directory does not exist: jupyter
Unrecognized command or argument '--default-kernel'
Unrecognized command or argument 'csharp'
Unrecognized command or argument 'C:\Users\xxx\AppData\Roaming\jupyter\runtime\kernel-09cd8fef-9d77-45b8-8859-298b9836062a.json'
dotnet-try:
Interactive documentation in your browser
Usage:
dotnet-try [options] [<RootDirectory>] [command]
Arguments:
<RootDirectory> Specify the path to the root directory for your documentation
Options:
--add-package-source <NuGet source> Specify an additional NuGet package source
--package <name or .csproj> Specify a Try .NET package or path to a .csproj to run code samples with
--package-version <version> Specify a Try .NET package version to use with the --package option
--uri <uri> Specify a URL or a relative path to a Markdown file
--enable-preview-features Enable preview features
--log-path <dir> Enable file logging to the specified directory
--verbose Enable verbose logging to the console
--port <port> Specify the port for dotnet try to listen on
--version Show version information
-?, -h, --help Show help and usage information
Commands:
demo Learn how to create Try .NET content with an interactive demo
verify <RootDirectory> Verify Markdown files in the target directory and its children.
publish <RootDirectory> Publish code from sample projects to Markdown files in the target directory and its
children.
from interactive.
Related Issues (20)
- render chart in kql kernel
- Read-Host returns 'Input request cancelled' when hitting Enter key without typing any input
- Try.NET x vscode.dev/VS Code Edu spike
- How to render HTML contained in a C# string HOT 2
- ScheduledOperationRunLoop blocks on thread pool tread HOT 1
- Wider output for PowerShell table view
- Opening dib file never loads HOT 5
- April rough plan of work (2024)
- Cannot output HTML from PowerShell HOT 1
- Add support for Go, using GoNB kernel HOT 2
- Restoring interactive notebooks functionality in VSCode (currently not working) HOT 1
- Add the option to select the tables/schemas used by --create-dbcontext
- unable to use Console.WriteLine again, after an exception occurred inside
- Charting Samples Do Not Work
- should #r install a pre-release, instead of a unlisted and deprecated "stable" release?
- HTTP kernel variables are not persistent HOT 2
- Running from Neovim? HOT 1
- Subscribe to an Observable.Timer, No output at all HOT 3
- default kernel selection is being changed after save
- Raw value storage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from interactive.